xsl-list
[Top] [All Lists]

RE: [xsl] Unmatched Element need to retain

2008-08-30 02:45:53

I'm doing XSLT (2.0) Transformation XML 2 XML using saxon9. 
Unmatched element name (input) should be retained in 
Transformed/output XML file.
Please suggest.

Use the identity template:

<xsl:template match="*">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
  </xsl:copy>
</xsl:template>

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>
--~--