RE: [xsl] Trying to match ...

Subject: RE: [xsl] Trying to match ...
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 16 Oct 2001 13:22:04 +0100
>  I am trying to match all <LI> elements which have a <UL> or 
> and <OL> as
> their first child. I am trying with something like
> 
> <xsl:template match="LI[*[1][UL or OL]]">

That means LI[child::*[1][child::UL or child::OL]]

which should explain what's wrong.

Try LI[*[1][self::UL or self::OL]]

Mike Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread