This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Trying to match ...


>  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]