Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] New release (2.8) of XSV

From: Daniel Veillard <daniel@--------.--->
To: "Henry S. Thompson" <ht@---.--.--.-->
Date: 10/11/2004 7:18:00 PM
On Mon, Oct 11, 2004 at 02:56:55PM +0100, Henry S. Thompson wrote:
> Right, that works fine for exponents on individual elements, but I
> don't see how it works for groups.
> 
> Here's a real example from a published schema document [1]:
> 
> <xsd:sequence minOccurs="0" maxOccurs="1000">
>     <xsd:element ref="ReferenceIdentification" minOccurs="0"/>
>     <xsd:element ref="Message" minOccurs="0" maxOccurs="1000"/>
> </xsd:sequence>
> 
> Or consider a (constructed) case that's tricky in a different way:
> 
> <xsd:sequence minOccurs="2" maxOccurs="2">
>     <xsd:element ref="a" minOccurs="1" maxOccurs="2"/>
>     <xsd:element ref="b" minOccurs="0"/>
> </xsd:sequence>
> 
> which allows _inter alia_
> 
>  <a/><a/>
>  <a/><a/><a/>
>  <a/><a/><a/><a/>

  I (or Kasimier) would have to double-check how that last case is handled,
but I think one need counted epsilon transitions in that case. Which has
the annoying effect that the reduction of the automata to find and elimitate
ambiguous branches is harder, but I think the existing epsilon elimination
algorithm still work as usual, you just have to make sure the newly generated
transitions reuse the same counter as the epsilon they replace.
  But I definitely need to double check this when I have time...

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@v...  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | 

From Burak.Emir@e... Mon Oct 11 15:50:47 2004
Received: from bart.w3.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent