[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: storing translatable text outside stylesheets

Subject: Re: storing translatable text outside stylesheets
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Jun 2001 13:10:57 +0200 (MET DST)
reference to undeclared entity
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
inside of the DOCTYPE declaration.


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

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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.