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: Re: [docbook] DocBook 5 & Schematron Rules: title vs. s:title (Bug?)


On 11.4.2017 13:24, Thomas Schraitle wrote:
> I guess the <title> element is incorrect, right? According to the
> namespace definition it belongs the the RNG namespace.

Of course, it should be s:title. This code is automatically generated. I
have fixed this and created PR with fix:

https://github.com/docbook/docbook/pull/89

> However, RNG doesn't know any title element. I assume it's a typo and
> it should be <s:title>, right?. According to the Schematron RNG
> schema[2], s:pattern allows an s:title...

Fortunatelly Schematron allows foreign elements so it will simply ignore
title element in the wrong namespace. This is also why this hasn't been
spotted for a while as no tools were reporting any problems with the schema.

> I've checked that for 5.1 and 5.2b01. Both contains this problem.
> For 5.0, there is still an invalid @name attribute which causes oXygen

It's probably not good idea to replace existing copies of 5.1 and 5.0
schemas. Seems like releasing 5.1.1 and 5.0.1 would be more proper
approach. Definitively something for DocBook-TC to discuss.

Thanks for catching this.

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
     Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature



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