RE: conditional inclusions

Subject: RE: conditional inclusions
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Wed, 1 Nov 2000 09:54:45 -0400 (EST)
Hi Ronald,

Post about conditional inclusion....

I you want to do the processing client side this implies that you'll
probably will have to update the XSLT engines available on each customer's
PC. To dynamically create a new tree from fragments, you can use the
document() function. This funciton is precisely designed for what you want.
Just use this function in an xsl:apply-templates construct. Then use the
xsl:apply-templates in a condition construct such as the xsl:if or any other
XSLT conditional construct. This will have the effect that your newly
included document fragments will matched against the style sheet templates.

Cheers
Didier PH Martin
----------------------------------------------
Email: martind@xxxxxxxxxxxxx
Conferences: xml devcon 2000 (http://www.xmldevcon2000.com)
		 Wireless Summit NY (http:www.pulver.com)
	       xml devcon 2001 London (http://www.xmldevcon2000.com)
Book: XML Professional (http://www.wrox.com)
column: Style Matters (http://www.xml.com)
Products: http://www.netfolder.com




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread