Hello Wes,

did you solve your problem? I also have my problem with this function, 
equal to relative/absolute path and so on, it seems to me, that the 
document()-function doesn't work.

Best proof:
<class>
   <a href="{$from-path}"><xsl:value-of select="$from-path"/></a>
   <xsl:variable name="test" select="document('Object.xml')/test/@test"/>
   <b><xsl:value-of select="$test"/></b>
</class>

I won't get my <a href="..">..</a> in the output-document, if it is 
written after the <xsl:variable .. />. And I don't get neither the <b> 
nor the value of $test.

I work with C2b2, Tomcat 3.2.3 and Sun JDK 1.3.

What could be the problem or a workaround?

Joerg


 > Subject:
 > [C2b2] document() function not working?
 > From:
 > Wes Morgan <[EMAIL PROTECTED]>
 > Date:
 > Thu, 02 Aug 2001 10:08:36 -0400
 > To:
 > [EMAIL PROTECTED]
 >
 > Has anyone successfully used the document('otherfile.xml') function 
to > access nodes in a different XML file from within an XSLT stylesheet 
   > under Cocoon2 beta1 or 2? It seems to be unimplemented right now, 
but > I can't tell for sure if it's just because I'm using it 
incorrectly.  > If you have gotten it to work, could you post your 
working code?      > Thanks.
 >
 > Wes Morgan
 >
 >
 >
 > Subject:
 > Re: [C2b2] document() function not working?
 > From:
 > [EMAIL PROTECTED] (Rajkumar, Joseph)
 > Date:
 > Thu, 02 Aug 2001 11:31:23 -0400
 > To:
 > [EMAIL PROTECTED]
 >
 > Hi Wes
 >
 > Yes, I have used the document('otherfile.xml') and it works under 
  > cocoon2.
 >
 > Put the file 'otherfile.xml' in the same directory in which you have 
  > your xsl file or give the relative path to 'otherfile.xml' relative
 > to the directory where you have your 'xsl' file.
 >
 > Regards
 > Joseph Rajkumar
 >
 >
 > Wes Morgan wrote:
 >
 >
 > > Has anyone successfully used the document('otherfile.xml') function
 > > to access nodes in a different XML file from within an XSLT
 > > stylesheet under Cocoon2 beta1 or 2? It seems to be unimplemented
 > > right now, but I can't tell for sure if it's just because I'm using
 > > it incorrectly. If you have gotten it to work, could you post your
 > > working code? Thanks.
 > >
 > > Wes Morgan


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to