Hi Rafe
I recommend that you look at the XSLT document() function, which - from my
understanding of your requirements - sounds exactly what you need. The most
likely way that you would use this is to create a 'master document' to
reference all the page elements - e.g.
<page_content>
<include filename = "topbar.xml"/>
<include filename = "menu.xml"/>
<include filename = "footer.xml"/>
</page_content>
Then you could tell your stylesheet to look at each of these XML documents
in turn:
<xsl:for-each select = "/page_content/include">
<xsl:apply-templates select = "document(@filename)"/>
</xsl:for-each>
Alternatively, you can specify the XML file to be processed with a URI:
<xsl:apply-templates select = "document('http://torchbox.com/foo.xml')"/>
There's a whole chapter on this function in Doug Tidwell's excellent 'XSLT'
book for O'Reilly:
http://www.oreilly.com/catalog/xslt/
Brian's XML/XSL content management system sounds like an interesting
approach... perhaps you could show us an example of the way you generate
your XSL stylesheet, Brian?
Best wishes
Tom
-----------------+
tom dyson
t: +44 (0)1608 811870
m: +44 (0)7958 752657
http://torchbox.com
> I'm building a content management system where various standard page elements
> are described as xml documents i.e. topbar.xml, menu.xml enabling me to allow
> users to add further menu items etc. therefore for each page I need to merge
> these documents using an xsl stylesheet. I'm interested in canvassing opinion
> on which merge technique people think is best.
>
> Rafe Fitzpatrick
> Web Developer
-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml