Re: XSLT in Mozilla 3.5.7

Martin Honnen <[email protected]> Wed, 03 Feb 2010 15:26:02 +0100
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Liberty Development
Message-ID <[email protected]>
Ralph Vigne wrote:

> Error during XSL transformation:
> [Exception... "Component returned failure code: 0x80600001
> [nsIXSLTProcessor.importStylesheet]"  nsresult: "0x80600001
> (<unknown>)"  location: "JS frame :: http://www.pri.univie.ac.at/~ralph/xslt-test.html
> :: anonymous :: line 40"  data: no]
> 
> I've no idea what FireFox is trying to tell with this. Using FireBug
> shows me that this error is thrown at importStylsheet() what bring up
> the assumption that the xsl is wrong, but I cant figure out where or
> what.
> 
> Link to xml: http://www.pri.univie.ac.at/~ralph/workflow.xml
> Link to xsl: http://www.pri.univie.ac.at/~ralph/wee.xsl

The allowed attributes on xsl:output are defined here:
   http://www.w3.org/TR/xslt#output

You have
   <xsl:output method="text" disable-output-escaping="yes"/>
where the disable-output-escaping attribute is not allowed.

That attribute belongs on xsl:value-of or xsl:text elements but it is 
not meaningful to use it within a stylesheet with output method="text" 
as the text output method does not do any escaping anyway.


-- 

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/