OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: [no subject]

My observation
I've used namespaces and XSD as my schemas technology.. and have not been 
able to successfully get something you mention above to work using the 
DOCTYPE declaration you're talking about.. It forced me to build a dtd in 
parallel for my schema &namespaces were an issue..

On another note: I actually like the fact that entities are no longer 
supported cause it makes parsing of content so much easier.. I can share my 
docs without worrying about having to send them my entity files etc.. But 
I've also yearned for having my own entities such as &company; to expand 
that to the actual "Company Name".. I've used element in a different 
namespace to achieve this: such as <my:compName/> and have had my stylesheet 
expand it for me.. That is messy but it works..


----- Original Message ----- 
From: "Jirka Kosek" <jirka@kosek.cz>
To: "Steven T. Hatton" <hattons@globalsymmetry.com>
Cc: <docbook@lists.oasis-open.org>
Sent: Tuesday, November 08, 2005 1:59 AM
Subject: Re: [docbook] Q: How do I use entities like &ndash; in DocBook 

Steven T. Hatton wrote:

>> XML parser will expand &NotExists; to a sequence of Unicode
>> characters (and possibly also some markup) before handing in to the
>> application.
> In my case I don't want the entities replaced.  I just what them
> validated.

But entities can not be validated. Entites are resolved (replaced)
*before* validation takes place. It is a different stage in the XML
pipeline. The only problem here is that DTD are used for entity
definitions and for validation as well. This is not good design, but it
was caused by legacy. Modern schema languages are dealing only with

>> You can simply create small file that includes all these tables and
>> then reference just this file from your internal subset.
> So we are back to using DTDs.

Yes and no. As it is described in DocBook 5.0 how-to you can use only
that part of DTD which deals with entity definitions. Even in this case
you can validate document against RELAX NG schema.

This simply works, so I don't understand what more you want. Do you want
entites? If yes, then use !DOCTYPE and include needed entity definitions.


   Jirka Kosek     e-mail: jirka@kosek.cz     http://www.kosek.cz
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
Nejbližší termíny školení: XML schémata (včetně RELAX NG) 7.-9.11.
          *** DocBook 5.-7.12. *** XSL-FO 19.-20.12. ***

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