cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: Document function
Date Mon, 09 Jun 2003 13:09:31 GMT
Hello Ali,

what Cocoon version do you use - or if you know, do you use XSLTC or 
Xalan? There seems to be a bug for top level xsl:variable and document() 
when using XSLTC: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381.

XSLTC is the default processor in 2.1, while it is Xalan in 2.0. You can 
switch between both.

Joerg

Ali Mesbah wrote:
> Hi all,
> I'm getting a strange "XML Parsing Error: syntax error" from Cocoon while I try
> to transform an XML document with an XSLT which uses the Document function. 
> 
> XSLT (metaoutput.xsl):
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>   <xsl:output method="xml" indent="yes"/>
>   <xsl:strip-space elements="*"/>
> 
>   <xsl:variable name='fileurl' select='"mapping/vorm.xml"'/>
>   <xsl:variable name='mapping' select='document($fileurl)/mapping'/>
> 
>  ...
> 
> Error:
> XML Parsing Error: syntax error
> Location: http://localhost:8888/metaoutput
> Line Number 2, Column 1:
> 
> There is no Error message logged. This is what I get on the browser. 
> Does it have something to do with Xalan? Any ideas?
> 
> Thanks,
> Ali


---------------------------------------------------------------------
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