Next in thread → Next in month →

Re: [docbook-apps] Entity not defined

From
"Cob Rtayton"
Date
2007-10-10T19:23:00+00:00
ID
016901c80b72$ef56ce80$6400a8c0@totoro
Thread
Re: [docbook-apps] Entity not defined
Hi,

Actually, those entities are defined in the DocBook 
DTD.  It seems that the processor is no longer able to find the DTD.  
That is odd, given that you are using a relative path for the system identifier 
in the DOCTYPE.

 

Bob Stayton
Sagehill Enterprises
DocBook Consulting


 

 

  
----- Original Message ----- 

  
From: 
  Douglas 
  Wade 

  
To: Johnson Earls 

  
Cc:  
  

  
Sent: Wednesday, October 10, 2007 12:12 
  PM

  
Subject: Re: [docbook-apps] Entity not 
  defined

  

Thanks, I guess I could. But, it does not yet make sense to me 
  to add entities because I switched from Saxon to Xlstproc. I was assuming that 
  I need an argument to add to declare those standard entities. 
  

Douglas

  
On 10/10/07, Johnson 
  Earls <> 
  wrote:
  You 
    need to define any entities you wish to use in your DOCTYPE entry.
For 
    example:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE 
    article PUBLIC '-//OASIS//DTD DocBook XML V4.5 
    //EN'
'../../DocBook/docbook-xml/docbookx.dtd' [
<!-- HTML-like 
    character entities -->
    <!ENTITY frac12 
    '½'>
    <!ENTITY lsquo 
    '''>
    <!ENTITY rsquo '‚'> 
    
    <!ENTITY ldquo 
    '"'>
    <!ENTITY rdquo '"'>
] 
    >

- dfp

--- Douglas Wade <> 
    wrote:

> I am switching from instant saxton to xsltproc and I 
    cannot get 
> xsltproc
> parsing. It considers text entities as 
    invalid. I did not see any
> help to
> what I have wrong. I get 
    errors like:
>
> xml:3196: parser error : Entity 'rdquo' not 
    defined 
> enter a value of "<emphasis 
    role="bold">60</emphasis>"
>                                                                  ^
> 
    xml:3242: parser error : Entity 'ldquo' not defined 
> s> file. Add 
    the Technical Manual, similar to this format. "
>
>
> 
    xsltproc --output myfile.html --stringparam use.extension 0
> 
    ..\docbook-
> xsl-1.68.1\docbook-html.xsl UserGuideSGML.xml 
> 
    xmllint --xinclude UserGuideSGML.xml
>
>
> 
    Thanks...
>
> 
    Douglas
>

      ____________________________________________________________________________________
Shape 
    Yahoo! in your own image.  Join our Network Research Panel 
    today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

-- 
--
"Experience is that marvelous thing that enables 
  you to recognize a mistake when you make it again." 
-Franklin P. Jones
Next in thread → Next in month →