document function - help

duzy

Usenet Archive
Joined
Dec 14, 2004
Messages
6
Reaction score
0
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
 

David Carlisle

Usenet Archive
Joined
Jan 5, 2000
Messages
609
Reaction score
0
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

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,799
Members
249,594
Latest member
henrywalsh

Latest Threads

Top