Topic: XSLT Copy-of (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=25609" title="Pages that link to Topic: XSLT Copy-of (Page 1 of 1)" rel="nofollow" >Topic: XSLT Copy-of <span class="small">(Page 1 of 1)</span>\

 
ub3r_n00b
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2005

posted posted 04-25-2005 19:49

For some reason Copy-of selects spits out the root node aswell as all of its children, however I dont want the root node to spit out

for example for one of my xml files i have <content> <p>Just Text</p> </content>

then i do a <xsl:copy-of select="content" /> but I dont want content to appear when it is transformed.

Any clue how to get rid of the parent node?

I have tried using content/. but no avail


Thanks

Preet

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 04-25-2005 20:27

I'm probably misunderstanding you, but

code:
<xsl:copy-of select="content/p" />

?
Otherwise, you'll have to elaborate a little.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 04-25-2005 21:09

Or content/*


 

ub3r_n00b
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2005

posted posted 04-25-2005 21:53

Meh i just put everything in a div and did <xsl:copy-of select="content/div" />

Kinda cheap but whatever it works.

Preet



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu