Subject: RE: How to make a child a sibling From: "Rakesh Ajmera" <rakesh_ajmera@xxxxxxxxxx> Date: Wed, 26 Jan 2000 17:58:02 -0600 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
How to make a child a sibling, Peter Stark | Thread | CURRENT NODE - Is it only determine, Jonathan Asbell |
MS XML Parser update released, Mike Brown | Date | Re: MS XML Parser update released, Steve Muench |
Month |