Re: DocBook 5 & Schematron Rules: title vs. s:title (Bug?)

Jirka Kosek <[email protected]>
Newsgroups gmane.text.docbook.misc
Message-ID <[email protected]>
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: [email protected]      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
------------------------------------------------------------------
signature.asc (application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iEYEARECAAYFAljvsSIACgkQzwmSw7n0dR6L7wCgnSpxlqUGxp9tnG9dfvmlb/wW
QAkAn3aTNobUWoK2Y6pHk/Tr7+4o0EHB
=NO/Y
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.