Subject: xml:lang attribute in netconf schema

From: "Steven Berl \(sberl\)" <[email-masked]>
Date: Tue, 22 Feb 2005 11:01:17 -0800

Looking at 

http://www.ietf.org/internet-drafts/draft-ietf-netconf-prot-05.txt

Sorry I didn't notice this earlier, but in order to comply with RFC3470 the
<error-message> element should have an xml:lang attribute. This should at
least be an optional attribute if an implementation should choose to provide
it.

The edits would look like:

In the example on pg 41

         <error-message>
           Lock failed, lock is already held
         </error-message>

Would become

         <error-message xml:lang="EN">
           Lock failed, lock is already held
         </error-message>

In the XML schema insert an import for the xml namespace at the top

Before: 

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
	<!--
	import standard XML definitions
	-->
	<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd">
		<xs:annotation>
			<xs:documentation>
       Get access to the xml: attribute groups for xml:lang
       as declared on 'schema' and 'documentation' below
     </xs:documentation>
		</xs:annotation>
	</xs:import>
	<!--
       <rpc> element
       -->

After:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
	<!--
	import standard XML definitions
	-->
	<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd">
		<xs:annotation>
			<xs:documentation>
       Get access to the xml: attribute groups for xml:lang
       as declared on 'schema' and 'documentation' below
     </xs:documentation>
		</xs:annotation>
	</xs:import>
	<!--
       <rpc> element
       -->

And finally 

			<xs:element name="error-message" type="xs:string"
minOccurs="0"/>

Should become:

			<xs:element name="error-message" minOccurs="0">
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension
base="xs:string">
							<xs:attribute
ref="xml:lang" type="xs:language" use="optional"/>
						</xs:extension>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>

--
to unsubscribe send a message to [email-masked] with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>