OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] docbook-xsl "gentext" template not working with MSXML


On Fri, Oct 17, 2003 at 10:14:32AM +0100, Robert Shields wrote:
> 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?

I'm pretty sure it is a bug in MSXML.  I sometimes use an
XSL debugger that is based on MSXML.  It also fails
to read the gentext entities in the Docbook XSL stylesheets.

MSXML also doesn't support the exslt extensions that
are used in the stylesheets.  Is it possible to
switch to another processor?

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]