document function - help

D

duzy

This line gets corect information,
<xsl:value-of
select="document('park1.xml')/episode_guide/season[last()]/@no"/>
but i need to get this information from 47 files (park1, park2, park3,
........ , park47).
Have I to write 47 lines of code?
I cant find any loop able to work here.

Thanks
Duzy
 
D

David Carlisle

so long as your source doc has at least 47 nodes

<xsl:for-each select="(//node())[position()&lt;f8]">
<xsl:value-of
select="document(concat('park',position(),'.xml'))"/zzzzz"/>
....

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top