This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

catch from another node with the same id (NEWBIE)


Hello
First let me say thank you for all the great help you are to me.

again I have a nifty problem (nifty for me) peace of cake for you!?


I have a for-each where I select the <produkt>'s id attribute
<xsl:for-each select="/page/info/massnahmen/ratierliche/entnahmen/massnahme">
.....
<fo:table>
.....
<xsl:for-each select="*/produkt">
<fo:table-row>
<fo:table-cell>
<fo:block>
<xsl:value-of select="@id"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
....
</fo:table>
....
</xsl:for-each>


the xml looks like:
<page>
<info>
.....
<massnahme datum="Januar 2008" betrag="3000">
<produkte>
<produkt id="1" betrag="3000" prz="100"/>
</produkte>
</massnahme>
<massnahme datum="Januar 2013" betrag="5000">
<produkte>
<produkt id="1" betrag="2500" prz="50"/>
<produkt id="2" betrag="2500" prz="50"/>
</produkte>
</massnahme>
.....
</info>
</page>

instead of the "id" i need the product name (bezeichnung) which is stored in a completly different node "/page/info/produkte/" but with the correspondending "id"
<page>
<info>
<produkte>
<produkt id="1" bezeichnung="Produkt A">
<text>Produktebeschrieb A</text>
</produkt>
<produkt id="2" bezeichnung="Produkt B">
<text>Produktebeschrieb B</text>
</produkt>
<produkt id="3" bezeichnung="Produkt C">
<text>Produktebeschrieb C</text>
</produkt>
........
</produkte
</info>
</page>

can I use some kind of variable to do it? Or how do I get the correspondending "bezeichnung" attribute from the other node?
Any hints?

Thank you!
thomas


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]