cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Document() function
Date Wed, 30 May 2001 14:47:31 GMT

Also, be sure there are no errors in your Users.xml file.  I have found out
the hard way that Cocoon silently returns nothing from document() if the
XML file has any errors (e.g., is not well formed.)  This can be very
frustrating, since you can spend a lot of time trying to figure out whether
your document() syntax is correct.


Please respond to


Subject:  Re: Document() function

On Tuesday 29 May 2001 20:37, you wrote:
> I tried to use something like that <xsl:variable name="profilixml"
> select="document(Users.xml)"/> but It dosen't work.
you should write it in that way:

<xsl:variable name="profilixml" select="document('Users.xml')"/>

because you need to set Users.xml in ' ', too.

> Is it Cocoon that ignore document() function?

No, it's the part of Xalan.

> I'm asking that because it's a little bit strange, infact Cocoon use
> as XSLT processor, and with Xalan document() function works well. So
> where's the problem?

Perhaps, he can't find the users.xml, the path to the file for the document
function needs to be relative to the XSL-stylesheet document, NOT the XML

> Thanks in advance.

You're welcome.

> Ciao Matteo

Christian Parpart

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message