Re: Not all test files are valid

On 29.12.2012 14:57, Yves Savourel wrote:

> I think having to declare the version of ITS at the root of the document, when there is no rules element, may be an issue. One could have formats where no third party namespaces are not allowed in the root but are ok in other places (where ITS markup can live). Is there a specific reason why the version must be at the root?

Actually the error message was taken directly from the spec:

http://www.w3.org/TR/its20/#its-version-attribute

"If there is no rules element in an XML document, a prefixed ITS version
attribute (e.g. its:version) MUST be provided at the root element of the
document."

You are right that this is probably too limiting. If there is no rules
element, then it should be sufficient if each element with local ITS
markup would have its:version attribute somewhere between its ancestors
but not necessary on the root element.

     Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook 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
------------------------------------------------------------------

Received on Saturday, 29 December 2012 18:29:55 UTC