Menu

#8 document function pathing

open
Build (3)
5
2002-01-15
2002-01-15
Anonymous
No

In my XSL sheet, I use the document function to start
processing another XML file. According to what I have
read, if you use

<xsl:apply-templates
select="document('d:\equipment.xml')" />

The path the function uses should be relative to the
style sheet used.

If you use
<xsl:apply-templates
select="document('d:\equipment.xml'), /" />

then the path should be relative to the source XML (the
original input XML).

Neither of these work properly in Pyana. When I run
Xalan C from the command line, it works fine.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Work around: calculate path in Python and pass as a
    parameter to XSL.

     
  • Brian Quinlan

    Brian Quinlan - 2002-05-07

    Logged In: YES
    user_id=108973

    I can't believe that I am just getting this bug report now.
    I'll look into it.

     

Log in to post a comment.

Monday.com Logo