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: Character entities

Hello Norm,

Since the question originated from me, I'll answer this...

Indeed didn't FOP state anything, but xsltproc did. My mistake.

I have the following doctype definition in my DocBook XML file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE article SYSTEM "file:///C:\xml\docbook-dtd\docbookx.dtd" [
<article lang="nl" status="draft">

It seems that when I use the integrated XSLT features of XMLSpy, the entities are found without any further specification. However, in a batch file, I transform my DocBook xml like this:

xsltproc.exe --output XSLFO_en_DocBook.fo "article.xsl" XSLFO_en_DocBook.xml

where article.xsl is my customization file, which reads:

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

<xsl:import href="file:///C:/xml/docbook-xsl-1.60.1/fo/docbook.xsl"/>
<xsl:output method="xml" indent="yes"/>

<!-- Text alignment -->
<xsl:param name="alignment">left</xsl:param>
<!-- Font -->
<xsl:param name="body.font.family" select="'Verdana'"/>
<xsl:param name="title.font.family" select="'Verdana'"/>

Now I do get the Entity not found errors...

Kind Regards,

-----Original Message-----
From: Norman Walsh [mailto:ndw@nwalsh.com]
Sent: vrijdag 4 april 2003 10:16
To: Gisbert Amm
Cc: Jeroen Alblas; docbook-apps@lists.oasis-open.org
Subject: Re: Character entities

Disclaimer   http://www.infosupport.com
This E-Mail Message is intended exclusively for the addressee. If the 
E-Mail was sent to you in error, please notify the sender immediately 
by replying to this E-mail. We would then request you to destroy the 
E-Mail and neither to use nor disclose the contents in any manner to 
third parties, as the message could contain confidential information 
which may be protected by the professional secrecy act. 

This footnote also confirms that this E-mail message has been swept for 
computer viruses.

Hash: SHA1

/ Gisbert Amm <gia@webde-ag.de> was heard to say:
|> Hello,
|> Tiny question: When I try to render a simple Docbook article, made in
|> XMLSpy, FOP states: Entity 'euml' not defined
|> Somewhere in my XML is the text: defini&euml;ren
|> How can I configure FOP to use these entities?
| You have to declare the entity before using it. E.g.:
| <?xml version='1.0' encoding='ISO-8859-1'?>
| <!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN'
| 'docbookx.dtd' [
| <!ENTITY euml 'your_definition_here'>
| ]>

Actually, if you use DocBook you get all those entities by default. My
guess is that your document doesn't have any doctype declaration at
all. Add one and you should (1) find any errors that you might have
made and (2) get entities.

OTOH, I'm not sure how you got &euml; all the way through to the FO file.
So maybe I'm confused.

                                        Be seeing you,

- -- 
Norman Walsh <ndw@nwalsh.com>      | Those who abandon their dreams
http://www.oasis-open.org/docbook/ | will discourage yours.
Chair, DocBook Technical Committee |
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>


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