[oXygen-user] set schema on version attribute

Chris Chiasson
Mon Aug 14 17:23:39 CDT 2006


Is there a way to have oXygen select different RELAX NG schemas
depending on the version attribute of an XML document's root element?

Also, why, if I make a document like the following, do I receive the
error, "element "equation" from namespace
"http://docbook.org/ns/docbook" not allowed in this context. Is it not
allowed in the schema?

<?xml version="1.0" encoding="UTF-8"?>
<equation xmlns='http://docbook.org/ns/docbook' version='5'>
	<title>Fermat's Last Theorem</title>
	<alt>x^n + y^n ≠ z^n ∀ n ≠ 2</alt>
	<mathphrase>x<superscript>n</superscript>
		+ y<superscript>n</superscript>
		≠ z<superscript>n</superscript>
		∀ n ≠ 2</mathphrase>
</equation>

Thank you,

-- 
http://chris.chiasson.name/



More information about the oXygen-user mailing list