Issue Details (XML | Word | Printable)

Key: XSOM-1
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: xsom-issues
Reporter: marlor
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

SchemaWriter bug?

Created: 03/Jul/06 01:26 PM   Updated: 03/Jul/06 01:26 PM
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Time Tracking:
Not Specified


Operating System: All
Platform: All

Issuezilla Id: 1
Participants: marlor and xsom-issues

 Description  « Hide

I mailed this in the user group without knowing the existence of issue tracker.
But here we go again...

When using the com.sub.xml.xsom.impl.util.SchemaWriter class,

At line 364 and line 376


364 println(MessageFormat.format("<restriction
base=\"<{0}>{1}\">", ...


376 println(MessageFormat.format("<extension base=\"<{0}>{1}\">",


XMLSpy doesn't validate a schema generated with this code as you get something
like <extension base="<http://schemaUrl>blabla"> instead of <extension

I think it should be

365 println(MessageFormat.format("<restriction
base=\"'{'{0}'}'{1}\">", ...
376 println(MessageFormat.format("<extension base=\"'{'{0}'}'{1}\">" ...

There are no comments yet on this issue.