Applying multiple character maps in succession
Hi - I'm trying to take an XML file, apply a transform that does a set of character-maps on it, then take the resulting XML file and apply a set of different character-maps on this file before it outputs text (not XML) data. The rationale for why I need to do this in two steps is a bit problem-specific and partly due to what the second transform does, and partly due to the restrictions imposed by the application that will consume the final output from the XSL transforms.
I know I can write one stylesheet and specify <xsl:output use-character-maps="customEscapes1"/> in it and then take the output from this phase and apply a second stylesheet with <xsl:output use-character-maps="customEscapes2"/> (I'd be orchestrating this two-stylesheet approach via Saxon and .NET). Is there any way to do this in a single stylesheet? I've used variables in the past to achieve multi-phase transformations but it looks like the <xsl:output> has to be a child of <xsl:stylesheet> and this would preclude use of variables. Thanks!
|