Hi everybody,

has anyone found a solution for my "pattern" problem? 

Regards,
Michael

> -----Urspr�ngliche Nachricht-----
> Von: Heeg, Michael 
> Gesendet: Donnerstag, 15. April 2004 09:08
> An: '[EMAIL PROTECTED]'
> Betreff: Strange problem with pattern (Xerces 2.5.0 crashes)
> 
> 
> Hi,
> 
> I am using Xerces-C 2.5.0 in my MS Visual C++ application. 
> When validating
> XML files against a specified schema, the parser sometimes 
> crashes with an
> "unexpected exception". I found out that the reason for the 
> crashes is the
> following restriction of the schema (see "Body" element):
> 
> <xsd:complexType name="InputFileType">
>       <xsd:sequence>
>               <xsd:element name="Head" type="HeadType"/>
>               <xsd:element name="Body">
>                       <xsd:simpleType>
>                               <xsd:restriction base="xsd:string">
>                                       <xsd:pattern
> value="(\n*[0-9]*,[0-9]*,(\-*[0-9]*\.*[0-9]*,)*\-*[0-9]+\.*[0-
> 9]*;\n*)*"/>
>                               </xsd:restriction>
>                       </xsd:simpleType>
>               </xsd:element>
>       </xsd:sequence>
> </xsd:complexType>
> 
> The restriction is defined to validate <Body> tags like the following:
> 
> <Body>
> 0,10,0.199,10.199,0.008;
> 1,20,0.389,20.389,0.059;
> 2,30,0.565,30.565,0.180;
> 3,40,0.717,40.717,0.369;
> 4,50,0.841,50.841,0.596;
> 5,60,0.932,60.932,0.810;
> ....
> </Body>
> 
> The strange thing is: when the <Body> tag contains ast
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to