This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: storing translatable text outside stylesheets


Hi Linda

> However, when I add this reference to the entity file to the top of my
> stylesheet: 
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY % stylesheettext SYSTEM "stylesheettext.ent"> ]>
> 
> And then use entity references like this in the stylesheet, the entities
> symbol and desc having been declared in the entity file: 
> <xsl:template match="FigLegend">
> 	<table><tr><th>&symbol;</th><th>&desc;</th></tr>
> 	<tr><td><xsl:value-of select="LegendEntry/Symbol"/></td>
> 	<td><xsl:value-of select="LegendEntry/Desc"/></td></tr></table>
> </xsl:template>
> 
> Saxon (with its default parser) gives an error: 
>   org.xml.sax.SAXParseException: reference to undeclared entity (found
> "symbol")
> : reference to undeclared entity (found "symbol")

It seems you forgot to resolve the parameter entity stylesheettext by
adding a
%stylesheettext;
inside of the DOCTYPE declaration.

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]