xsl-list
[Top] [All Lists]

RE: [xsl] Questions regarding match

2006-09-01 05:37:07
 

fields[field[contains(@id,'Metadata')] and
field[contains(@id,'.subject.')]]

Or if you're one of those people with an aversion to nested square brackets,
you can write this as

fields[contains(field/@id, 'Metadata') and contains(field/@id, 'subject.')]

I wonder also if you're using contains() where you really want to test for
"=" - it's a common mistake.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>