On Tue, 14 Jul 2003, 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" />
Use:
<xsl:apply-templates select="document('menu.xml')"/>
> </div>
> <div class="content">
> <xsl:apply-templates select="body"/>
> </div>
> </xsl:template>
>
> </xsl:stylesheet>
--
<!-- Matt -->
<:->get a SMart net</:->
Spam trap - do not mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]