cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paint...@mc.duke.edu
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.

-Christopher




Please respond to cocoon-users@xml.apache.org

To:   cocoon-users@xml.apache.org
cc:

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
Xalan
> 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
document.

> Thanks in advance.
>

You're welcome.

> Ciao Matteo
>

Christian Parpart
http://www.surakware.net







---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message