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

Re: copy-of / value-of

Subject: Re: copy-of / value-of
From: Steve Rosenberry <Steve.Rosenberry@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 02 Sep 2002 15:33:38 -0400
xsl copy of value of
Jan Theofel wrote:
> 
> Jarno.Elovirta@xxxxxxxxx schrieb:
> >
> >
> > You probably want
> >
> >   <xsl:copy-of select="special/node()" />
> >
> 

Jan Theofel wrote:

> The problem with the copy-of is, that the <xsl:copy-of
> select="some/node/special"> will result in


Jan,

As you know <xsl:copy-of select="special" /> returns:

  <special>
    Some text here as line 1<br/>
    Some text here as line 2
  </special>


But <xsl:copy-of select="special/node()" /> (not the appended "/node()")
returns just the node contents -- not the enclosing tags:

  Some text here as line 1<br/>
  Some text here as line 2


Subtle, but important...

-- 
Steve Rosenberry
Sr. Partner

Electronic Solutions Company -- For the Home of Integration
http://ElectronicSolutionsCo.com

http://BetterGoBids.com -- The Premier Overture (formerly GoTo) 
                           Bid Management Tool

(610) 670-1710

 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.