This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Trying to match ...
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Trying to match ...
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 16 Oct 2001 13:22:04 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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