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

RE: Problem with Checking for a node.

Subject: RE: Problem with Checking for a node.
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Mon, 11 Jul 2005 12:14:14 +0000
dyd aron
Lakshmi Narayana,

If you want to specially process C nodes (or non-C nodes), the "XSL way" would probably be to have a null template that explicitly matches C nodes. This was illustrated by a prior respondent:

<xsl:template match="C"/>

This gives you the option of affecting C nodes in a specific template, and of processing non-C nodes elsewhere (in a different template), without an explicit "switch".

If you just want to ignore non-C nodes you could also do:

<xsl:template match="node()[not (self:C)]|@*">
...
</xsl:template>

Regards,

--A

From: "Lakshmi narayana" <lchintala@xxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: "XSL (E-mail)" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  Problem with Checking for a node.
Date: Mon, 11 Jul 2005 15:07:39 +0500


Hi <A name="A"> <B name="dyd> <C name = "ttt> <D name = "ggg> </A>

I want an xslt for this psuedo code.
<xsl:template-match="/">
	<xsl:apply-template />
</xsl:template>
<xsl:template match="node()|@*">
    If(the current node is not C){
	----some action
    }
< xsl:apply-template />
</xsl:template>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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.