[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XPath problem

Subject: RE: [xsl] XPath problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 27 Jan 2005 08:53:36 -0000

> The second problem is that it does not like:
> xqx:opType = '&lt;='
> Is there a problem with this?  The element text
> contains the string "&lt;=".  But the match does not
> work.

&lt; is converted to < by an XML parser. Your source document has been
parsed and this conversion has been done. But since you are submitting the
XPath expression to DOM4J from a Java application, the XPath expression
doesn't go through an XML parser, so it isn't converted to <. Write
xqx:opType = '<='.

Michael Kay

Current Thread