| Refresh | Home EGTry.com

copy a xml substree


<?xml version="1.0" encoding="UTF-8"?>
<table type="database">

  <column type="string"/>
  <column type="long"/>
  <column type="date"/>
    

</table>


<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/table">

    <row>

      <xsl:copy/>

      ----

      <xsl:copy-of select="." />

    </row>
	</xsl:template>
	


</xsl:stylesheet>


<?xml version="1.0" encoding="UTF-8"?>
<row>

<table/>

      ----

<table type="database">

  <column type="string"/>
  <column type="long"/>
  <column type="date"/>

</table>

</row>