This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xalan-tomcat: Could not find variable with the name of fg2bg_colorizer
- From: "Jiang, Peiyun" <Peiyun dot Jiang at nrc dot ca>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 13 Jun 2002 13:05:48 -0400
- Subject: [xsl] xalan-tomcat: Could not find variable with the name of fg2bg_colorizer
- Reply-to: xsl-list at lists dot mulberrytech dot com
I'm using xerces 2.0.1/xalan 2.3.1 and tomcat 4.0.3. Can anybody tell me
what happened? Thanks.
Peiyun
------------------------------------
** Transformer Factory error
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
org.apache.xml.utils.WrappedRuntimeException: Could not find variable with
the name of fg2bg_colorizer
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
org.apache.xml.utils.WrappedRuntimeException: Could not find variable with
the name of fg2bg_colorizer at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa
ctoryImpl.java:995) at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
FactoryImpl.java:799) at XSLTServlet.doPost(XSLTServlet.java:101) at
XSLTServlet.doGet(XSLTServlet.java:53) at .....
--------------------------------------
-----Original Message-----
From: Michael Kay [mailto:michael.h.kay@ntlworld.com]
Sent: Thursday, June 13, 2002 11:54 AM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Conditional xsl:sort
> I have the following:
>
> ...
> <xsl:for-each select="Transaction">
> <xsl:sort select="*[local-name() = string($sortby)]"
> data-type="{$datatype}" order="{$order}"/>
>
> <xsl:if test="$sortby = 'Description'">
> <xsl:sort select="Code" data-type="number" order="{$order}"/>
> </xsl:if>
> ...
>
> and I'm getting this:
>
> ...
> Keyword xsl:sort may not be used here.
> ...
>
> for the second, conditional, xsl:sort. Why?
Because <xsl:sort> may not be used inside <xsl:if>. You're trying to
make the language up as you go along.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list