Mode name {#all} is not a valid QName

Here should go questions about transforming XML with XSLT and FOP.
srhancock
Posts: 1
Joined: Thu Apr 21, 2011 9:03 pm

Mode name {#all} is not a valid QName

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

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

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