How can an XML fragment be returned with XSL?

Thomas BROYER

What you need is xsl:copy-of.

<xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/Numbers">
  <xsl:copy-of select="Number[1]">
</xsl:template>
</xsl:stylesheet>
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact