Subject: RE: Searching within a text From: Kay Michael <Michael.Kay@xxxxxxx> Date: Mon, 5 Jul 1999 16:50:09 +0100 |
It would be easier if your XML document used XML tagging for all its structure, rather than using a comma-delimited syntax internally. But if you must use this syntax, you can select the relevant elements using, say: <xsl:variable name="v" expr="normalize(animal/text())"/> <xsl:if test="starts-with($v,'cat,') or contains($v,',cat,') or ends-with($v,',cat')"> This assumes there are no embedded spaces. Mike Kay > > In my XML-file I have an enumeration of keywords in the animal-tag: > <person> > <animal> > cat,dog,bird,... > </animal> > </person> > <person> > <animal> > monkey,cat,mouse,... > </animal> > </person> > > Now I want to select those persons that have a certain > keyword, for example > cat,with an xsl-statement. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Searching within a text, Christian Suykens | Thread | AW: External processing., Bernhard Keil |
AW: Searching within a text, Bernhard Keil | Date | RE: Two Hard Questions (at least fo, Ross Cormier |
Month |