XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1168)
- Stylus Studio Technical Forum (14407)
-> + SS2011 cannot save XML files u... (3)
-> + SS 2011 Enterprise saying 2010... (2)
-> + How to change the way whitespa... (7)
-> + Updating Relational Data Using... (4)
-> - Contract Stylus Studio help. ... (1)
-> + UTF_8 characters not displayed (6)
-> + Problem XSL to PDF ( dont reco... (2)
-> + HIPAA EDI - Looping question (4)
-> - HIPAA EDI - Looping question (1)
-> + Does XML Report support column... (2)
-> + Limited choice of XSL elements... (2)
-> + Single Source Publishing? (3)
-> - Stylus Stodio License (1)
-> - Stylus Stodio License (1)
-> + relax ng (3)
-> + having problem converting csv ... (8)
-> + error when selecting items fro... (2)
-> + CSV File to XML (3)
-> + Software registration - How to... (4)
-> - Software registration - How to... (1)
-> + .Net Saxon not supported by th... (2)
-> + How do I extend the Evaluation... (2)
-> + dst file (4)
-> + Flat File Custom XML conversio... (4)
-> + converting ascii file to xml f... (2)
-> + Evaluation Copy of Stylus Stud... (8)
-> + Batch process for soap (4)
-> + Strange error when running gen... (5)
-> + Merge Files (2)
-> + Convert cvs to XML (2)
-> + Stylus studio 2010 crashes in ... (5)
-> + excel to text (2)
-> + licence key? (2)
-> + JVM Heap error (4)
-> + How Do I clean TXT File? (2)
-> + SS Web Service Call Tester Pay... (3)
-> - SS Web Service Call Tester Mic... (1)
-> + Error in Stylus Studio - canno... (2)
-> + Saxon Assign (2)
-> - License Authentication Failed (1)
-> + Stylus Studio 2007 Download (2)
-> + EDI to XML validation (2)
-> + Reports: can't remove "undead"... (3)
-> + Document Wizard Incomplete (6)
-> + Opening xml converter (4)
-> + Node depth limit with MySQL? (5)
-> + Basics (2)
-> - Node depth limit with MySQL? (1)
-> + Creating an XML Schema from a ... (4)
-> - Issue with XSD (1)
-> + XSL-FO and Apache FOP (2)
-> + How Come Stylus Studio Fails T... (6)
-> + no suitable driver (8)
-> + 211,19: no declaration found f... (6)
-> - Validate HEX (1)
-> + Crashing when connected to dat... (3)
-> - Interface with quickbooks (1)
-> - CDATA control (1)
-> + [resolved] Namespace (and pref... (5)
-> - Hiding and Revealing Child Nod... (1)
-> + Cannot see values in Watch whe... (4)
-> - Help with CSV to XML and Regio... (1)
-> + How do I verify "opt=yes" URI ... (4)
-> - Stylus Studio claims xsd is in... (1)
-> + Can a generated XSD be used in... (4)
-> + I am not a developer I'm just ... (2)
-> + Stylus crash when deleting dat... (6)
-> - Preserving Structure (1)
-> - Preserving Structure (1)
-> - HL7 ORU group tags (1)
-> + Fixed Length Record Layout to ... (2)
-> + WebService Connect (6)
-> - WebService conection problems (1)
-> + Could not detect EDI dialect a... (3)
-> + I am a bookkeeper not a progra... (2)
-> + fatal error (4)
-> - Saxon linebreak (1)
-> + task scheduler (2)
-> - Number of Elements in Grid vie... (1)
-> + Compile Java (2)
-> + What happened to the EDI Wizar... (15)
-> + setting Transformer for java b... (3)
-> + XML Schema Documentation Gener... (3)
-> + EANCOM xsd-files (4)
-> + Failure of CDATA converting pr... (4)
-> + XML File created from text fil... (3)
-> + After purchase AND activation ... (2)
-> + XQuery Format of XML code snip... (4)
-> + Error during conversion (9)
-> - testing for empty nodes (1)
-> + edi converter - java fails (10)
-> + ddtek:serialize (3)
-> - File explorer view (1)
-> - Java Extension Functions (1)
-> + err:FODC0004 (18)
-> - Removing Attributes when Null (1)
-> + CDATA preservation (6)
-> + Help converting xml report to ... (2)
-> + Converting text to XML issue (3)
-> - example not working (1)
-- Previous [421-440] [441-460] [461-480] Next
+ Website Feedback (244)
+ XSLT Help and Discussion (7589)
+ XQuery Help and Discussion (1941)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (363)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Hans-Peter KüchlerSubject: SS6pro r2 287L: InvalidDatatypeValueException
Author: Hans-Peter Küchler
Date: 16 May 2005 07:56 PM
If I validate the file error10.xhtml, I get the following errors:
file:///error10.xhtml:13,71: Datatype error: Type:InvalidDatatypeValueException, Message:'-' is not a valid character range; use '\-' instead.
file:///error10.xhtml:13,71: Datatype error: Type:InvalidDatatypeValueException, Message:'-' is not a valid character range; use '\-' instead.
file:///error10.xhtml:15,38: Datatype error: Type:InvalidDatatypeValueException, Message:'-' is not a valid character range; use '\-' instead.
file:///error10.xhtml:16,38: Datatype error: Type:InvalidDatatypeValueException, Message:'-' is not a valid character range; use '\-' instead.
file:///error10.xhtml:17,36: Datatype error: Type:InvalidDatatypeValueException, Message:'-' is not a valid character range; use '\-' instead.

The XML document error10.xhtml is NOT valid (5 errors)

The file http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd validates without errors. What's wrong with my file?

thank you, Hans-Peter Küchler


Unknownerror10.xhtml
testcase

Postnext
Ivan PedruzziSubject: SS6pro r2 287L: InvalidDatatypeValueException
Author: Ivan Pedruzzi
Date: 16 May 2005 09:25 PM
Hi Hans,

It seems like the attachment didn't make it.
Could you try again?

Thank You
Ivan

Postnext
Minollo I.Subject: SS6pro r2 287L: InvalidDatatypeValueException
Author: Minollo I.
Date: 16 May 2005 09:40 PM
I was able to retrieve the attachment.
The problem is actually in the XML Schema; XercesJ provides good information about that error:

http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd:230,38: (Error) InvalidRegex: Pattern value '[-+]?(\d+|\d+(\.\d+)?%)' is not a valid regular expression: ''-' is an invalid character range. Write '\-'.'.
http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd:241,38: (Error) InvalidRegex: Pattern value '[-+]?(\d+|\d+(\.\d+)?%)|[1-9]?(\d+)?\*' is not a valid regular expression: ''-' is an invalid character range. Write '\-'.'.
http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd:276,38: (Error) InvalidRegex: Pattern value '[-+]?(\d+|\d+(\.\d+)?%)(,\s*[-+]?(\d+|\d+(\.\d+)?%))*' is not a valid regular expression: ''-' is an invalid character range. Write '\-'.'.

If you escape the '-' used in the character lists, as '\-', then your XHTML validates fine.

Hope this helps,
Minollo

Postnext
Hans-Peter KüchlerSubject: SS6pro r2 287L: InvalidDatatypeValueException
Author: Hans-Peter Küchler
Date: 17 May 2005 06:05 PM
Hi Minollo,
after reading http://www.w3.org/TR/xmlschema-2/#regexs, I think that the - should only be escaped if it is used to form a 'atom'. In this case the - is a metacharacter. But used in a character class, the - isn't an atom. Instead, the complete character class itself is an atom. http://www.w3.org/TR/xmlschema-2/#dt-charrange says "The - character is a valid character range only at the beginning or end of a ·positive character group·." The - used in the schema is the beginning of a positive character group [-+] containing - or +.

Btw. I can't change the schema easily because it's referenced by http://www.w3.org/TR/xhtml1-schema/Overview.html;-)

regards, Hans-Peter

Posttop
Alberto MassariSubject: SS6pro r2 287L: InvalidDatatypeValueException
Author: Alberto Massari
Date: 18 May 2005 03:35 AM
Hi Hans-Peter,
you are right, there is an error in both Xerces-C and Xerces-J validators; as a partial excuse for them is the fact that the presence of the "-" character in the regular expression grammar was ambiguos, and an errata (E2-18, http://www.w3.org/2001/05/xmlschema-errata.html#e2-18) prohibited altogether. After that, another errata (E2-67, http://www.w3.org/2001/05/xmlschema-errata.html#e2-67) reversed the change and added the clarification note that you are quoting. It looks like the Xerces team overlooked the latter.

Thanks for reporting this,
Alberto

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.