document function - help

Discussion in 'XML' started by duzy, Dec 15, 2004.

  1. duzy

    duzy Guest

    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
     
    duzy, Dec 15, 2004
    #1
    1. Advertising

  2. 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
     
    David Carlisle, Dec 15, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Carrow
    Replies:
    0
    Views:
    571
    Steve Carrow
    Jul 28, 2003
  2. Wendy S
    Replies:
    1
    Views:
    6,459
    Darren Davison
    Aug 5, 2003
  3. Mike
    Replies:
    0
    Views:
    8,288
  4. Steve Carrow
    Replies:
    0
    Views:
    631
    Steve Carrow
    Jul 28, 2003
  5. Tony Prichard
    Replies:
    0
    Views:
    788
    Tony Prichard
    Dec 12, 2003
Loading...

Share This Page