[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: XInclude as an XSLT transformation?
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Thu, 30 Dec 2004 08:33:55 -0500
On Dec 30, 2004, at 1:48 AM, Colin Paul Adams wrote:

Since it is essentially a tranformation on the XML Information Set, it
occurs to me it ought to be possible to write a generic XInclude
processor in XSLT.

I've done this simple thing with my XSLT 2.0 stylesheets to handle my docs:


  <xsl:template match="xi:include" mode="resolve-linked-docs">
    <xsl:copy-of select="document(@href)" />
  </xsl:template>

Bruce

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member