Subject: RE: Filters headache... From: David Schach <davidsch@xxxxxxxxxxxxx> Date: Tue, 26 Jan 1999 10:06:58 -0800 |
Try using templates. <xsl:stylesheet ...> <xsl:apply-templates /> <xsl:template> <!-- all other elements come here --> <!-- do your processing --> <!-- now recursively process the rest of the doc --> <xsl:apply-templates /> </xsl:template> <xsl:template match = "infosort"> <!-- do nothing --> </xsl:template> </xsl:stylesheet> > -----Original Message----- > From: Guy_Murphy@xxxxxxxxxx [SMTP:Guy_Murphy@xxxxxxxxxx] > Sent: Tuesday, January 26, 1999 9:05 AM > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: Filters headache... > > Hi. > > Most of the stuff I've been doing with XSL has allowed be to be pretty > certain of my conext, I now find myself needing to "pluck" data out of an > XML dataset using an XSL query, and my head's starting to hurt. > > Given... > > <doc> > <infosort> > <ms id='y'>ms</ms> > <cb id='y'>cb</cb> > </infosort> > <tt id='y'>tt</tt> > </doc> > > ...how can I pluck all data from within DOC apart from INFOSORT or any of > it's children > > I tried... match="//doc/*[$not$ infosort]" > ...but in IE5b2 this returns INFOSORTs children along with TT. (I wont > list > the other examples I tried as from that point on it rapidly became > an exercise in Voodoo). > > Note there will be extra data items apart from TT, so I can't simply pluck > that single item. > > Thanks for any advice > Guy. > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Filters headache..., Guy_Murphy | Thread | Observation, Didier PH Martin |
Filters headache..., Guy_Murphy | Date | Observation, Didier PH Martin |
Month |