XML instance file with schemaLocation in the form of **XXX
YYY** will not validate in Studio 2008 Pro.
XML rules specify that XXX and YYY must be separated by whitespace, but the two enties of <Carriage Return> and <Linefeed> seem to qualify as whitespace.
Subject:entities within schemaLocation attribute Author:(Deleted User) Date:14 Sep 2009 11:58 AM
Hi,
I tested your file with a copy of Stylus Studio 2008 (build 1050g) and I got the error "Cannot open file://C:\bruce\IEC\XLS_for_SCL\SCL.xsd"; hence, it looks it is correctly parsing the schemaLocation attribute.
Which build number are you using? What is the exact error you are getting?
Alberto:
I have build 1147c, and the problem is very interesting.
If I change the location from "SCL.xsd" to "SCL1.xsd" then I get "cannot open file". But with a valid schema available, I get:
***
Validating sample.xml...
The XML document sample.xml is NOT valid (1 errors)
***
It appears that SS is partially processing the entities!
The full schema is fairly complex (from IEC 61850-6) and I have attached it.
Please keep me informed on progress of your investigation.
Thanks for looking into this ... Bruce