[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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)
includes in xsl
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.