OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-tc message

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


Subject: Re: [docbook-tc] 5.0b1 test test release


Norm + Jirka,

Regards:
> 'violate "Unique Particle Attribution"'

You will get the same type of errors when you convert James Clark's XHTML.rng to XHTML.XSD and try to use it. And possibly with current XHTML 2.0 rng as well!

In James Clark on Converting RELAX NG to XSD, 2002.
"Possible improvements
-Avoid violating unique particle attribution constraint
-Avoid violating element declarations consistent constraint
-Take advantage of substitution groups
-Better handling of interleave
-Inform user about all approximations
-Generate annotations using eg Schematron to make approximations exact
-Handle RELAX NG overrides using redefine"
 [ref: http://www.thaiopensource.com/relaxng/convert-to-xsd-talk.html]

Eric Van der Vlist in his book Relax NG p317 comments:
"W3C XML Schema doesn't know how to handle mixing of constraints on subelements and attributes except by using difficult hacks with key definitions, which don't work in all cases [...] hope that James Clark will continue to improve the Trang conversion algorithm!"

Gary

>-----Original Message-----
>From: Jirka Kosek [mailto:jirka@kosek.cz]
>Sent: Monday, October 24, 2005 06:47 PM
>To: 'Norman Walsh'
>Cc: docbook-tc@lists.oasis-open.org
>Subject: Re: [docbook-tc] 5.0b1 test test release
>
>Norman Walsh wrote:
>
>> How does this look? Version numbers, pubdates, etc. are still
>> temporary, mostly I'm looking to see if you think I've forgotten files
>> or really botched the organization.
>
>Unfortunatelly WXS has same problem as DTD -- all attributes are defined
>as required.
>
>The real problem is that according to Xerces current schema break UPA
>rules. E.g.:
>
>"http://docbook.org/ns/docbook":inlinemediaobject and
>"http://docbook.org/ns/docbook":db.graphic.inlines (or elements from
>their substitution group) violate "Unique Particle Attribution". During 
>validation against this schema, ambiguity would be created for those two
>particles.
>URL: http://www.w3.org/TR/xmlschema-1/#cos-nonambig
>
>Norm, how you are generating WXS schemas? Using Trang or your own tool?
>
>					Jirka
>
>--
>------------------------------------------------------------------
>   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í: DocBook 5.-7.12. * XSL-FO 19.-20.12.
>      XSLT 17.-20.10. * XML schémata (včetně RELAX NG) 7.-9.11.
>------------------------------------------------------------------
>
>




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