DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6104>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6104

CR/LF in Regular Expression

           Summary: CR/LF in Regular Expression
           Product: Xerces2-J
           Version: 2.0.0 [beta]
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


It appears that the regular expression parser does not match CR, LF, or maybe 
both in a corresponding XML instance.  That is a simple type like

<xsd:element name="x" minOccurs="1" maxOccurs="unbounded">
    <xsd:simpleType>
        <xsd:restriction base="xsd:string">
            <xsd:pattern value="\w*\s\w*"/>
        </xsd:restriction>
    </xsd:simpleType>
</xsd:element>


I have tried patterns like "a\sb" and "a[\r\n]*b" to match
Note that \S doesn't work properly vis-a-vis CR/LF either.

<x>a
b</x>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to