Page 1 of 1

Mode name {#all} is not a valid QName

Posted: Thu Apr 21, 2011 9:17 pm
by srhancock
I get the following error when applying an XSL transformation to an XML file:
Mode name {#all} is not a valid QName

Here is the line with the error:
<xsl:apply-templates mode="#all"/>

Everything I've read says this should work. It's a 2.0 XSL file. I've tried all the processors and they all give an error.

What's wrong?

Thanks,
Scott

Re: Mode name {#all} is not a valid QName

Posted: Fri Apr 22, 2011 9:45 am
by sorin_ristache
Hello,

The XSLT processors are right because the #all mode can be used only in template rules, not in the xsl:apply-templates element.


Regards,
Sorin