[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] xsl value-of
Subject: [xsl] xsl value-of From: "Matias Woloski" <woloski@xxxxxxxx> Date: Sun, 31 Mar 2002 17:01:11 -0300 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Re: Identity transformati, Dimitre Novatchev | Thread | |
Re: [xsl] Transforming XHTML to XHT, Mike Brown | Date | [xsl] XML string copying w/o d-o-e , Mike Brown |
Month |