|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: storing translatable text outside stylesheets
> However, when I add this reference to the entity file to the top of my > stylesheet: > <!DOCTYPE xsl:stylesheet [ > <!ENTITY % stylesheettext SYSTEM "stylesheettext.ent"> ]> You've declared a parameter entity that references an external file that presumably contains the definitions of a number of general entities such as &symbol; . But you haven't invoked this parameter entity, so the definitions of your general entities are not actually processed. Mike Kay > > 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") > > When I declare the entities in the internal DTD subset, e.g. > <!DOCTYPE xsl:stylesheet [ > <!ENTITY symbol "Symbol"> ]> > > then it does work. So it seems like Saxon isn't reading the > external entity. > Am I doing something wrong, or does Saxon (Aelfred) not support this? > > Linda > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








