This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] docbook-xsl "gentext" template not working with MSXML
- From: "Robert Shields" <rshields at star dot net dot uk>
- To: <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 17 Oct 2003 10:14:32 +0100
- Subject: [docbook-apps] docbook-xsl "gentext" template not working with MSXML
Hi,
I'm having problems getting this template to work with MSXML, it always
fails to find a match for the following variables:
<xsl:template name="gentext">
...
<xsl:variable name="local.l10n.gentext"
select="($local.l10n.xml//l:i18n/l:l10n[@language=$lang]/l:gentext[@key=
$key])[1]"/>
<xsl:variable name="l10n.gentext"
select="($l10n.xml/l:i18n/l:l10n[@language=$lang]/l:gentext[@key=$key])[
1]"/>
I have added a test to the gentext template:
<xsl:template name="gentext">
...
lang:<xsl:value-of select="$lang"/>,
count:<xsl:value-of select="count($l10n.xml//*)"/>
<xsl:for-each select="$l10n.xml//*">
<br/>
name:[<xsl:value-of select="name()"/>]
value:[<xsl:value-of select="."/>]
</xsl:for-each>
which creates the output:
lang:en, count:1
name:[l:i18n] value:[ ]
This suggests that the !ENTITY elements are not working in
/common/l10.xml, as there should be many more elements than one!
I guess this is a bug in MSXML. Short of copying the contents of en.xml
into l10n.xml, is anyone aware of a workaround?
Regards,
Rob Shields
Software Engineer
Star Internet Ltd
e - rshields@star.net.uk
t - 01285 880085
w - http://www.star.net.uk
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
_____________________________________________________________________
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.