This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: conditional inclusions


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@netfolder.com
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]