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

RE: Are nodes atomic values?

Subject: RE: Are nodes atomic values?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 9 Sep 2005 23:24:23 +0100
RE:  Are nodes atomic values?
> My question is, is there a XPath that selects a node such as i get the
> same as if i did a
> 
> <xsl:copy>
>    <xsl:apply-templates select="*[not(SomeNode)]"/>
> </xsl:copy>
> 
> or with a example, giving this node
> 
> <Menu>
>    <Name>aaa</Name>
>    <SomeNode>xxx</SomeNode>
> </Menu>
> 
> is there a XPath expr that selects only
> 
> <Menu>
>    <Name>aaa</Name>
> </Menu>
> 

Your source document doesn't have a Menu element with one child, so the only
way the result can contain a Menu element with one child is by creating a
new node or modifying an existing one. XPath never creates or modifies
nodes, so the answer is no.

Michael Kay
http://www.saxonica.com/

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.