Chandrasekar KL. wrote:
> can we mention targetnamespace as a seperate tag?
>  
> like for ex
> 
> <xs:schema xmlns="http://www.w3.org/1999/XSL/Transform";
>            
> xmlns:html=http://www.w3.org/1999/xhtml elementFormDefault="qualified"
> attributeFormDefault="unqualified" version="1.0" >
> 
> to be written like this? 
> 
> <xs:schema elementFormDefault="qualified"
> attributeFormDefault="unqualified" version="1.0">
> 
> < xmlns="http://www.w3.org/1999/XSL/Transform"/>
>             xmlns:html=http://www.w3.org/1999/xhtml>
> 
>  

I'm not sure to understand your question.

However it seems that your question is not related to xsdvalid, but
rather to the XML and the XML Schema standards. Therefore, please send
this kind of question to one of the W3C mailing lists.

* xmlns="xxx" and xmlns:yyy="zzz" can be added anywhere where you need
them. These don't necessarily need to be specified on the xs:schema root
element.

* The targetNamespace attribute of an xs:schema element is not directly
related to xmlns="xxx" and xmlns:yyy="zzz".

In the case of your example, your schema has no target namespace at all.
If your schema specifies a grammar for elements belonging to a given
namespace, then you need to declare the URI of this namespace in the
targetNamespace attribute of your xs:schema element.

Reply via email to