Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Selectively applying Identity transform to multiple inputs (Multiplexer Style Sheet)

From: Abel Braaksma <abel.online@--------->
To:
Date: 1/5/2007 10:08:00 PM
Abel Braaksma wrote:

<!-- XSLT 1: internal document handling -->
<xsl:template match="node() | @*" mode="internal">
   <xsl:apply-templates select="node() | @*" mode="internal" />
</xsl:template>


My mistake, I left out the <xsl:copy> here. Add it to these and equal 
identity template rules:



<!-- XSLT 1: internal document handling -->
<xsl:template match="node() | @*" mode="internal">
   <xsl:copy>
      <xsl:apply-templates select="node() | @*" mode="internal" />
   </xsl:copy>
</xsl:template>


I saw you had some more questions, about how to apply Charles Knell's 
solution to the identity template. Just take his solution and replace 
<xsl:copy-of> and change it to <xsl:apply-templates>. In addition, you 
will have to add at least one generic catch-all identity template rule, 
like the one above.



Cheers,
-- Abel Braaksma
  http://www.nuntia.nl


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent