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="article.inc"/> > </document> > > and want xsl to process it and insert the file article.inc 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})"/> </xsl:template > 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 "article.inc"> in the DTD subset, and &cc; in the document body Sebastian XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Includes through XSL, Mattias Konradsson | Thread | Need a way to hide children with ce, Kara Lee |
Re: Someone bashing XSL, Simon St.Laurent | Date | Re: Someone bashing XSL, Sebastian Rahtz |
Month |