Next in thread → Next in month →

Re: [docbook-apps] XSL: titlepage templates and entities

From
Jirka Kosek <>
Date
2003-10-02T08:22:54+00:00
ID
Thread
Re: [docbook-apps] XSL: titlepage templates and entities
Michael Wiedmann wrote:

> Up to now I could not find a way to use entities (&nbsp;, &szlig;, ...) 
> in the titlepage template system and still have to use the UTF-8 
> equivalents (&#160;, &#223;, ...) for these characters, which is not 
> very comfortable.

Yes, there is a way. Start your template by this code:

<?xml version="1.0"?>
<!DOCTYPE t:templates [
<!ENTITY % ISOnum PUBLIC
	"ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
	"path/to/ent/iso-num.ent">
%ISOnum;
... repeat above for all entity sets you want to use ...
]>
<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
	     xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
              xmlns:fo="http://www.w3.org/1999/XSL/Format"
              xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
...


-- 
-----------------------------------------------------------------
   Jirka Kosek  	
   e-mail: 
   http://www.kosek.cz
Next in thread → Next in month →