Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Tricky XSL xinclude question

From: age85@---.-- (----)
To: NULL
Date: 5/2/2005 12:09:00 AM
Hi David,

> <?xml version="1.0" encoding="UTF-8"?>
> <root>
> <root>
>   <element>1</element>
>   <element>2</element>
> </root>
>   <element>A</element>
>   <element>B</element>
> </root>

your xml tree is right i can access the /root/root/element/, which
give me the "1". The problem is, i will do something like that:

<xsl:for-each select="root/element">
 <tr>
  <td><xsl:value-of select="."/></td> <!-- give me A and so on --> 

  <!-- Thats the big question: access the 1 and so on in the same loop
  <td><xsl:value-of select="../../element"/></td>
  --> 
 
</tr>
</xsl:for-each>

I've try /root/root[position()]/element in the for-each loop, but this
wont work.

Best regards

Rene


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent