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

Re: R: [text nodes] Unmatching text nodes wrongl

Subject: Re: R: [text nodes] Unmatching text nodes wrongly inserted
From: "Anton Triest" <anton@xxxxxxxx>
Date: Thu, 23 Sep 2004 19:33:23 +0200
Re:  R:  [text nodes] Unmatching text nodes wrongl
> <xsl:template match="xdm:field"/> <!-- this is the empty template -->
> 
> But how can I extend this concept to exclude not just the unwanted <field>
> elements, but ANY element OTHER THAN those I need to render?

<xsl:apply-templates/> selects all the children. If you only need 
one particular element, it's easier to select it in apply-templates:

<xsl:apply-templates select="xdm:field[@name='CSBFT242']"/>

and then the matching template will only be called for that element.

<xsl:template match="xdm:fields">
   <xsl:apply-templates select="xdm:field[@name='CSBFT242']"/>
</xsl:template>
<xsl:template match="xdm:field">
   ... process that one field ...
</xsl:template>

HTH,
Anton

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.