Sorry, I don't the reason, may be other people can explain it or have other way to get it work.
Benson. -----Original Message----- From: Vadim Solonovich [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 2:50 AM To: [EMAIL PROTECTED] Subject: Re: Need help to understand using external schemas. Hi, Benson! Thank you very much for your help ! Things becomes clearer, but could you explain me why am i not able to directly import globally defined attribute 'lang' from http://www.w3.org/2000/10/xml.xsd ? Vadim > This is how I get it work. > > 1. Create a schema file xml.xsd, put the following content in it. > <?xml version="1.0" encoding="US-ASCII" ?> > <schema targetNamespace="http://www.w3.org/XML/1998/namespace" > xmlns="http://www.w3.org/2000/10/XMLSchema" > xmlns:x="http://www.w3.org/XML/1998/namespace"> > > <attribute name="lang" type="language"> > </attribute> > </schema> > > 2. Add following import in your schema file > > <import namespace="http://www.w3.org/XML/1998/namespace" > schemaLocation="somepath/xml.xsd"/> > > 3. Reference the xml:lang as follow: > > <complexType name="FreeFormTextType"> > <simpleContent> > <extension base="string"> > <attribute ref="xml:lang"/> > <minLength value="1"/> > <maxLength value="256"/> > </extension> > </simpleContent> > </complexType> > > > Hope this can help. > Benson. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
