xsl-list
[Top] [All Lists]

[xsl] Creating a new element and renaming (was issue 793)

2006-06-02 16:22:11
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--