cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Error Using noNamepaceSchemaLocation Attribute

unknown1
1-Newbie

Error Using noNamepaceSchemaLocation Attribute

I'm using the noNamespaceSchemaLocation attribute to specify the location of the XML schema Arbortext should use to validate my XML document. Arbortext appears to be properly picking up the schema and validating based upon it. I can style the tags, and when adding tags, Arbortext displays the valid tags from the schema. If I try to add tags that are not valid, Arbortext appropriately displays an error.

So, Arbortext does appear to be correctly validating based on the XML schema I've declared in the noNamespaceSchemaLocation attribute. However, Arbortext also doesn't seem to like the noNamespaceSchemaLocation attribute being used on the root element of my document. It displays the following error:

Could not find top level attribute: xsi:noNamespaceSchemaLocation

The start tag of the root level element looks like this:

<senate_journal <br="/> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="senate_journal.xsd">

My understanding of namespace and schema-aware applications is that there is no need to declare the noNamesapceSchemaLocation attribute from the http://www.w3.org/2001/XMLSchema-instance namespace. I even tried to declare this attribute as valid on my root level element in the XML schema, and I received the following error:

The {target namespace} of 'noNamespaceSchemaLocation' must not match 'http://www.w3.org/2001/XMLSchema-instance'.

That error makes sense because http://www.w3.org/2001/XMLSchema-instance is a special namespace.

Does anyone know how to declare the schema location without having Arbortext display errors about the attribute you use to declare the schema location?
1 REPLY 1

I tried having Arbortext generate a document from scratch based on the XML schema. It correctly generated the document and even included the xsi:noNamespaceSchemaLocation attribute in the root element as it should. Unfortunately, it still generates that same error. It's like Arbortext is mostly aware of and knows how to deal with the XML schema but doesn't know to handle the xsi:noNamespaceSchemaLocation attribute for final document validation purposes.

I would appreciate any insight you have if you've worked with XML schemas in Arbortext before.
Announcements