Subject: [xsl] problem adding a new element to an XML document using xsl:element... From: Garry Cronin <garry.cronin@xxxxxxxxxx> Date: Thu, 23 Sep 2004 15:22:07 +0100 |
<?xml version = '1.0'?> <ROWSET> <ROW num="1"> <PARTNO>1735</PARTNO> <PARTNAME>Gizmo</PARTNAME> </ROW> <ROW num="2"> <PARTNO>7364</PARTNO> <PARTNAME>Bowl</PARTNAME> </ROW> </ROWSET>
<?xml version = '1.0'?> <ROWSET> *<TABLE>mytable</TABLE>* <ROW num="1"> <PARTNO>1735</PARTNO> <PARTNAME>Gizmo</PARTNAME> </ROW> <ROW num="2"> <PARTNO>7364</PARTNO> <PARTNAME>Bowl</PARTNAME> </ROW> </ROWSET>
<xsl:template match="/"> <xsl:apply-templates/> </xsl:template>
<xsl:template match="ROWSET"> <xsl:element name="TABLE"> <xsl:text>mytable</xsl:text> <xsl:apply-templates/> </xsl:element> </xsl:template>
thanks in advance - Garry
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL Beginner Resources [w, xptm | Thread | Re: [xsl] problem adding a new elem, David Carlisle |
RE: [xsl] XSL Beginner Resources [w, xptm | Date | Re: [xsl] problem adding a new elem, David Carlisle |
Month |