Re: Includes through XSL

Subject: Re: Includes through XSL
From: "Sebastian Rahtz" <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 31 Jul 1999 15:52:03 +0100 (BST)
Mattias Konradsson writes:
> <document>
 >     <heading>blablahblah</heading>
 >     <content file=""/>
 > </document>
 > and want xsl to process it and insert the file at some point,
 > what would be the best way to go?

that what the document() function is for, except that not all XSL
processors implement it so far

 <xsl:template match="content">
  <xsl:apply-templates select="document({@file})"/>

 >  oh and MSXML serverside of course.
oh dang you just shot yourself in the foot. go straight to jail, do
not pass go, do not collect 200 pounds. escape into DOM and XXXscript, 
and non-standard extension tags, stagger through unreadable badly
designed Microsoft web pages to find partial answers.

if you want a portable solution how about recoding the source to use
entity references instead, so that you put <!ENTITY cc SYSTEM
""> in the DTD subset, and &cc; in the document body


 XSL-List info and archive:

Current Thread