Re: Comment on ITS 2.0 WD-its20-20121206 - Inline global rules in XHTML

On 31.1.2013 17:57, Yves Savourel wrote:
>> I think that confusion comes from the example which was 
>> added later. It should not contain its:rules element at all,
>> only its-* attributes.
>>
>> Yves, would removing the its:rules from the example 
>> dissolve your concerns?
> 
> Not really. It still seems that the "SHOULD NOT" contradicts the "DOM Consistency" the text refers to.

IIRC I proposed "MUST NOT" for using its:rules inside "public
consumable" XHTML and HTML. But some implementers were saying that they
can't rely only on local attributes and external rules, so we ended up
with "SHOULD NOT" which kept door open but tries to discourage to do this.

> And it still looks very inconsistent: If there is nothing that prevents to use its:* attributes in XHTML why aren't we using them since we say to use <its:rules> directly without <script>? ...Or vice-versa.

Where we say to use its:rules inside XHTML without script?

> Note also that an XHTML document could hold SVG or other XML vocabularies and we would apply the ITS XML processing inside those, ..aren't we?

Please note that spec doesn't say anything specific about general XHTML
-- it should be treated as normal XML so you can use its:* attributes,
its:rules anywhere, ...

But section you are referring to is describing only subset of XHTML used
on the web:

"XHTML documents aimed at public consumption by Web browsers..."

this is because such XHTML is often server with wrong media type
(text/html) and thus gets parsed as HTML. It would be strange if you get
different ITS markup in XHTML based on whether it was parsed using XML
or HTML parser (so called DOM consistency rule). So for such XHTML
usages we suggest using its-* attributes as they will get parsed in the
same way.

With its:rules situation is more complex here but in general
<script><its:rules/></script> yields as similar results as possible
using XML and HTML parser.

    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 Thursday, 31 January 2013 17:25:25 UTC