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

Creating a new element and renaming (was issue 793)

Subject: Creating a new element and renaming (was issue 793)
From: Chad Chelius <cchelius@xxxxxxxxxxxxxxx>
Date: Fri, 2 Jun 2006 19:21:44 -0400
making a new element
David,
I understand what you are saying, however when I change that first template from story to <D>, it removes the structure that I'm creating in the first template. This is what I have at this point which is working. What is needed in this style sheet to change the <Story> element to <D> ? Thanks for your patience!


chad


<xsl:template match="Story">
<xsl:copy>
<BB><TG>
<xsl:apply-templates select="articleTitle| articleSubTitle"/>
</TG></BB>
<xsl:apply-templates select="*[not(self::articleTitle or self::articleSubTitle)]"/>
</xsl:copy>
</xsl:template>
<xsl:template match="Root">
<DG>
<xsl:apply-templates select="@*|node()"/>
</DG>
</xsl:template>




chad

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.