[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: Jarno.Elovirta@xxxxxxxxx
Date: Mon, 2 Sep 2002 16:25:00 +0300
RE:  copy-of / value-of
Hi,

> In my XML for that, I want to be able to add a tag <special> like:
> 
> <special>
>   Some text here as line 1<br/>
>   Some text here as line 2
> </special>
> 
> But when I use this with value-of, the result is:
> 
> Some text here as line 1 Some text here as line 2
> (without the tag in the middle.)
> 
> I also tried copy-of which is better, but copies also the XML tags.
> 
> All I want to do is to be able to add a tag to my XML file 
> which may include
> HTML tags. How can I do this?

You probably want

  <xsl:copy-of select="special/node()" />

And if not, you should show us your stylesheet and wholeish input and desired output documents.

> (I didn't find this in the docs and the FAQ is not reachable 
> at the moment.
> :-(  )

It's in the specs, believe me.

Cheers,

Jarno

 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.