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: [docbook-apps] Profiling and validation


Zbyszek Cybulski wrote:

> I think there must be a way to determine and preserve the DTD version
> in the processed/profiled file. 

If there would be such facility, be sure that profile.xsl would use it. 
But XSLT doesn't offer such facility, because !DOCTYPE is not exposed in 
the XPath data model.

> On the other side, as profile.xsl is a part of DocBook XSL distro, it
> could be synchronized with the current DTD, I guess.

It is a hard problem. People tend to update stylesheets more often than 
DTDs. If we will change default version of DTD emmited by profile.xsl it 
could break things for people who are using older versions of DTD and 
who do not have newer versions of DTD installed.

> Regarding the Bob's suggestion, this is fine, I can use this kind of
> workaround. It's simple and effective. However, the profiled file does
> not validate. I had to fix the DTD version number and remove xslns:xi
> declaration from the root element (book, in my case).

The good news is that there are no such problems in DocBook V5.0. No 
!DOCTYPEs, no problems ;-)

-- 
------------------------------------------------------------------
   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í:
      ** XSLT 13.-16.3.2006 ** XML schémata 24.-26.4.2006 **
        ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
------------------------------------------------------------------

S/MIME Cryptographic Signature



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