Hmm... xinclude is supposed to be included in libxslt and in XML::LibXSLT (i've never tried it). you should get the same result with <xsl:copy-of select="document('menu.xml')"/> I think. (there are some tricks about what it's relative too, see the archives or the XSLT FAQ for info)

simon

On Monday, July 14, 2003, at 08:35 PM, Robert Ferney wrote:

I've tried to include file b.xml in an xslt stage in the application I'm
writing for what should be some relatively static content that I want in
it's own file out for maintainability reasons.


however... the following didn't work.
can anybody help me with a method that would work here?
thanks.
-Rob

<?xml version="1.0"?>
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:xi="http://www.w3.org/2001/XInclude";
    version="1.0">

<xsl:template match="/page">
    <div class="menu">
      <xi:include href="menu.xml" />
    </div>
    <div class="content">
      <xsl:apply-templates select="body"/>
    </div>
</xsl:template>

</xsl:stylesheet>


-- www.simonwoodside.com -- 99% Devil, 1% Angel


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to