> I use IE5.5+XML3.0.
> According to xsl:if test and expr, I'm puzzled.
> While I use
> <xsl:if test=".<3 and parent::done='N' ">
> I got following message in IE5.5:
> Expected token 'eof' found '<'. .--><<--3 and parent::done='N'
> Mine is
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
Ah, well, see -- that's the tip-off. The namespacec declaration for the
*current* (and only "official") version of XSLT is:
The one you show in your own xsl:stylesheet element is the one for the
version of XSL"T" that only Microsoft supports.
MSXML 3.0 actually supports *either* namespace declaration. If you use
the old one, though, the XSLT processor won't recognize language
features from XSLT 1.0; and if you use the new one, the processor won't
recognize those from the old version (which was a working draft, hence
the "WD" in that declaration).
So change the namespace declaration, first.
Second, although it shouldn't be causing problems, I'd add a space on
either side of your Boolean operators (< and =). Like this:
<xsl:if test=". < 3 and parent::done = 'N' ">
If you want, you can also use a shortcut for the parent:: axis:
<xsl:if test=". < 3 and ../done = 'N' ">
John E. Simpson | "When I was a little kid we had a sand
http://www.flixml.org | box. It was a quicksand box. I was an
XML Q&A: www.xml.com | only child... eventually." (Steven Wright)