[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Filters headache...

Subject: RE: Filters headache...
From: David Schach <davidsch@xxxxxxxxxxxxx>
Date: Tue, 26 Jan 1999 10:06:58 -0800
re filters
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.