Is there any way to dynamically change template rules using variables or parameters ?
I have the following xsl code, which I want to repeat at specific times for different sections of my xml file. <xsl:template match="ROOT/FIREMEMO"> <xsl:apply-templates/> </xsl:template> <xsl:template match="*"> </xsl:template> <xsl:template match="LINE"> <fo:block> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="B"> <fo:inline white-space-collapse="false" font-weight="bold"> <xsl:apply-templates/> </fo:inline> </xsl:template> <xsl:template match="I"> <fo:inline white-space-collapse="false" font-style="italic"> <xsl:apply-templates/> </fo:inline> </xsl:template> <xsl:template match="U"> <fo:inline white-space-collapse="false" text-decoration="underline"> <xsl:apply-templates/> </fo:inline> </xsl:template> <xsl:template match="N"> <fo:inline white-space-collapse="false"> <xsl:apply-templates/> </fo:inline> </xsl:template> <xsl:template match="BIU"> <fo:inline white-space-collapse="false" font-weight="bold" font-style="italic" text-decoration="underline"> <xsl:apply-templates/> </fo:inline> </xsl:template> <xsl:template match="BI"> <fo:inline white-space-collapse="false" font-weight="bold" font-style="italic"> <xsl:apply-templates/> </fo:inline> </xsl:template> <xsl:template match="BU"> <fo:inline white-space-collapse="false" font-weight="bold" text-decoration="underline"> <xsl:apply-templates/> </fo:inline> </xsl:template> <xsl:template match="IU"> <fo:inline white-space-collapse="false" font-style="italic" text-decoration="underline"> <xsl:apply-templates/> </fo:inline> </xsl:template> </xsl:stylesheet> Thanks, Paul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]