xsl-list
[Top] [All Lists]

Re: XInclude as an XSLT transformation?

2004-12-30 06:33:55

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


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



<Prev in Thread] Current Thread [Next in Thread>