D
Darren Davison
Hi,
I have a documentation tool based on Java and XSLT that I want to add i18n
capability to. There are around 8 stylesheets that process a Source
generated by the Java code and some of the static labels across the
stylesheets are the same.
Ideally I'd like to import a set of variables into each template, and
preferably based on an XSLT parameter (the locale) but this obviously
doesn't work:
<xsl
aram name="locale">lang-en_GB.xslt</xsl
aram>
<xsl:import href="$locale"/>
I don't want to define the generic stylesheets as imports from the
language specific ones because then I would have 8 duplicates for each
supported langauge. So is there a suitable mechanism I can use?
Regards,
I have a documentation tool based on Java and XSLT that I want to add i18n
capability to. There are around 8 stylesheets that process a Source
generated by the Java code and some of the static labels across the
stylesheets are the same.
Ideally I'd like to import a set of variables into each template, and
preferably based on an XSLT parameter (the locale) but this obviously
doesn't work:
<xsl
<xsl:import href="$locale"/>
I don't want to define the generic stylesheets as imports from the
language specific ones because then I would have 8 duplicates for each
supported langauge. So is there a suitable mechanism I can use?
Regards,