A. Clarke wrote: > > According to this W3C page: > > http://www.w3.org/International/questions/qa-no-language > > I should be able to declare an element as having no linguistic content by > setting xml:lang="zxx".
May be, but to my knowledge the W3C XML Schema v1.0 standard does not recognize this other standard. If this is the case, please report this problem as a bug by pointing us to the relevant section of the W3C XML Schema v1.0 standard. > > My schema does this: > > <xs:import namespace="http://www.w3.org/XML/1998/namespace" > schemaLocation="http://www.w3.org/2001/xml.xsd"/> > ... > <xs:element name="name"> > <xs:complexType> > <xs:simpleContent> > <xs:extension base="dd-name"> > <xs:attribute ref="xml:lang" fixed="zxx" /> > </xs:extension> > </xs:simpleContent> > </xs:complexType> > </xs:element> > > But I get a message that the value zxx is invalid. Setting it to en-us (my > spellchecker default) results in a valid schema. I have also tried > xml:lang="und" and xml:lang="", but XMLmind gives the same error. According to the W3C XML Schema v1.0 standard, "zxx", "und", "" are not valid language codes, hence the validation error. (In contrast, "en", "en-US", "fr", "fr-CA", etc, are valid language codes.) > > What am I doing wrong? Or, how can I get XMLmind to stop spellchecking my > <name> element? > You need to create or customize the XMLmind XML Editor configuration associated to the documents conforming to the above schema. More precisely, you need to add to this configuration the following <cfg:spellCheckOptions> configuration element: <cfg:spellCheckOptions skippedElements="name" /> if your <name> element has a namespace, please do not forget to specify this namespace. Example: <cfg:spellCheckOptions skippedElements="foo:name" xmlns:foo="http://www.acme.com/ns/foo" /> See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/spellCheckOptions.html Actual example: excerpts from XXE_install_dir/addon/config/docbook5/dobook5.xxe: --- <cfg:spellCheckOptions xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:db="http://docbook.org/ns/docbook" useAutomaticSpellChecker="true" languageAttribute="xml:lang" skippedElements="db:address db:programlisting db:screen db:synopsis db:code db:tag db:classsynopsisinfo db:modifier db:package db:classname db:interfacename db:exceptionname db:varname db:methodname db:funcsynopsisinfo db:modifier db:type db:function db:initializer db:parameter db:funcparams db:lhs db:rhs db:nonterminal xi:include" /> --- How to create or customize a configuration is explained here: XMLmind XML Editor - Configuration and Deployment http://www.xmlmind.com/xmleditor/_distrib/doc/configure/index.html -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

