|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to make a child a sibling
Hope this would help
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/XSL/Transform/1.0'>
<xsl:template match="/a" >
<xsl:apply-templates />
</xsl:template>
<xsl:template match="x" >
<xsl:copy />
</xsl:template>
<xsl:template match="*" >
<a>
<xsl:copy />
</a>
</xsl:template>
</xsl:stylesheet>
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Peter Stark
Sent: Saturday, January 22, 2000 2:32 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: How to make a child a sibling
I hope someone can help me solve this XSLT probem.
I want to transform the following elements:
<a><b/><x/><d/></a>
into this:
<a><b/></a><x/><a><d/></a>
That is, the <x> should be moved up from its child position in <a>. The
content before the <x> should be in a new <a>, and the content after <x>
should be in another <a>.
Any help is appreciated.
Thanks,
Peter S.
(Phone.com)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








