Mark Modrall writes: >I've been toying with some stylesheets and i was thinking it would be >very nice to be able to pass in a parameter to control what the output >encoding of a transform would be, but i can't seem to get it to work... >Is this prohibited?
Yes, at least in XSLT 1.0. This is also one of the frequently-asked of FAQs about XSLT. (There is a FAQ at www.dpawson.co.uk.) The usual workaround is to select a stylesheet from among a set that are identical except for their xsl:output statement and any related attributes. You can use xsl:include to share common code across the set. Select the stylesheet when you invoke Xalan, whether from the command line or via API. .................David Marston
