|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl value-of
Hi! I'm kindo of new to xslt
I have this xml
<?xml ...>
<group description="Description 1" ...>
<questionAnswered>
<label id="05">Level</label>
<label id="06">Degree</label>
<label id="07">Begin</label>
<label id="08">End</label>
<label id="03"/>
<row order="1" color="0">
<z:row id="05" value="3"/>
<z:row id="06" value="Human Resources"/>
<z:row id="07" value="01/01/1992"/>
<z:row id="08" value="01/01/1997"/>
<z:row id="03" value="{4A8ED116-7AA1-4DF3-B21B-14A622200B26}"/>
</row>
</questionAnswered>
</group>
<group description="Description 2" ...>
<questionAnswered>
.....
...
</questionAnswered>
</group>
I want to ouput this:
Level: 3
Description 1
Degree: Human Resources
Begin: 01/01/1992
End: 01/01/1997
Description 2
Degree: blah
Begin: ...
End: ...
So I have this xsl
<xsl:for-each select="xml/group">
<xsl:value-of select="@description"/>
<br/>
<xsl:for-each select="questionAnswered/row">
<xsl:sort select="@order" order="ascending"/>
<tr>
<td class="normalb8pt">
<xsl:for-each select="z:row">
<xsl:sort select="@id" order="ascending"/> <xsl:value-of
select="."/>
<xsl:value-of
select="../questionAnswered/label/text[../questionAnswered/label/@id = @id]"
/>
<br/> </xsl:for-each>
</td>
</tr>
</xsl:for-each>
</xsl:for-each>
So how can i reach the text attribute of the label element according the id
of the label and the id of the z:row?
thanks in advance,
Matias
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








