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
Operations

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

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

Environment:

Operating System: All
Platform: All


Issuezilla Id: 1
Tags:
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

[code]

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

...

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

[/code]

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

I think it should be

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



There are no comments yet on this issue.