copy-of vs value-of

Baldo

Usenet Archive
Joined
Dec 3, 2003
Messages
12
Reaction score
0
i've got:

<root>
<text>123<br/>ASD
</text>
</root>

copy-of select="root/text" :

<text>123<br/>ASD</text>
value-of select="root/text" :

123 ASD

but I wanna

123 <br/> ASD

as result.

The source is blocked (I cannot change it creating CDATA o something else)
 

Philippe Poulard

Usenet Archive
Joined
Dec 20, 2001
Messages
412
Reaction score
0
Baldo said:
i've got:

<root>
<text>123<br/>ASD
</text>
</root>

copy-of select="root/text" :

<text>123<br/>ASD</text>
value-of select="root/text" :

123 ASD

but I wanna

123 <br/> ASD

as result.

The source is blocked (I cannot change it creating CDATA o something else)

try this :
copy-of select="root/text/node"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,799
Members
249,594
Latest member
henrywalsh

Latest Threads

Top