Peter Janker writes: >I try to write an xslt-script that outputs an xslt-script.... [His example shows xsl:namespace-alias being used for the "xsl" elements.] >...Furthermore xalan is always deleting its own namespace-prefix >declaration (xmlns:xalan="http://xml.apache.org/xalan" ) from the >stylesheet-tag and therefore the output script does not work because >[the xalan:nodeset function is used and there is] >an unknown prefix 'xalan'.
Have you tried using two namespace-alias declarations, one for xsl and one for xalan? You need to set up the latter one so that "xalan" is the prefix used in the output, since the string "xalan:nodeset" is just part of a string at this stage, not yet an expression. The rule of thumb is that Xalan takes both the "xsl" elements and the "xalan" elements (and attributes and functions) as names to be acted upon, so you need namespace aliases for both. .................David Marston
