RE: [xsl] <xsl:template match="and"> does not work

Subject: RE: [xsl] <xsl:template match="and"> does not work
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Wed, 16 Aug 2006 11:17:11 +0100
Use the unabbreviated syntax: child:and

From: Ralf Schumann <schumann@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>


I have to process an XML document that contains elements of the form

    <and id="1">
        <expression first="aa" second="bb"/>

Unfortunately, Xalan 1.4 complains if I use an XSLT stylesheet with lines like
<xsl:apply-templates select="and"/>
<xsl:template match="and">
because "and" has a special meaning as an XPath function.

Does anybody has an idea how to deal with such a case?

Thanks in advance,

Be the first to hear what's new at MSN - sign up to our free newsletters!

Current Thread