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

RE: XPath: excluding a descendant

Subject: RE: XPath: excluding a descendant
From: "Hahn, Andrea" <a.hahn@xxxxxxxx>
Date: Tue, 2 Sep 2003 14:57:57 +0200
andrea hahn
> why not? It appears to do exactly what you want. Did you try it?

Well, I did, but probably I am doing it wrong... In your earlier message, you wrote: 

> just have
> <xsl:apply-templates select="abcd:Gathering"/>
> together with a template 
> <xsl:template match="LongitudeDecimal"/>
> that does nothing on thse elements.
> then when you do want to process the elements do (according to taste)
> 
> <xsl:apply-templates
> abcd:Gathering/GatheringSite/SiteCoordinates/LongitudeDecimal"
> mode="somemode"/>
> 
> together with some templates in somemode to do whatever needs doing or
> if you don't want a new mode do
> 
> <xsl:apply-templates
> abcd:Gathering/GatheringSite/SiteCoordinates/LongitudeDecimal/node()"
> />
> 
> so you process the children of LongitudeDecimal.


So I do have something very simple like
<xsl:template match="/">
(...)
    <xsl:apply-templates select="abcd:Gathering"/>
(...)
<xsl:template>

<xsl:template match="LongitudeDecimal">
    <!-- do nothing -->
</xsl:template>

There are no children to LongitudeDecimal, so I would not have to process them. But what I still don't understand is the rest of it: how do I apply the LongitudeDecimal-template to Gathering, so that the "empty" template rule overrules the output I get from just calling the Gathering node? 



-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Dienstag, 2. September 2003 13:43
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  XPath: excluding a descendant
(...)

 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.