Welcome to WebmasterWorld Guest from 188.8.131.52
Forum Moderators: open
And now consider this other file:
<?xml version="1.0" encoding="utf-8"?>
<effect>Some blah blah blah, of course!</effect>
That is what I want to do:
1) Create a single XML Schema (XSD) file that defines both the spell and the spellbook element (up to this point, I guess I've done it); and associate each xml file to the correct part of the XSD; so I don't need to define the spell object and then define it as a component of a spellbook.
2) Let the XSD (or the validator software) know that the src attribute means the content of the object is in another file (look at the line <spell src="spell.xml"/> )
I might use any alternative to the src attribute, and I'm even considering the use of xlink:href, but that's not the point.
Does somebody know how to do this, or where can I find documentation about this use of schemas?