|
Subject: [xsl] add new elements using xsl From: Nishi Bhonsle <nishi.bhonsle@xxxxxxxxxx> Date: Tue, 15 Apr 2008 10:54:19 -0700 |
I have File A:
<?xml version="1.0"?>
<sch>
<si>
</si>
</sch>I need to convert it to File B:
<?xml version="1.0"?>
<sch>
<si>
<default>My text1</default>
<default2>My text2</default2>
</si>
</sch>Will the following xsl help?
<xsl:template match="sch">
<xsl:copy-of select="si/@default"/>
<xsl:copy-of select="si/@default2"/>
<xsl:apply-templates />
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] xsl:for-each with dynamic, Przemek Urbanski | Thread | Re: [xsl] add new elements using xs, Felix Geller |
| Re: [xsl] Sorting using helper stru, Michael Ludwig | Date | Re: [xsl] add new elements using xs, Felix Geller |
| Month |