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

RE: How to make a child a sibling

Subject: RE: How to make a child a sibling
From: "Rakesh Ajmera" <rakesh_ajmera@xxxxxxxxxx>
Date: Wed, 26 Jan 2000 17:58:02 -0600
how to make a child
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


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.