[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: Extending a Schema Definition
  • From: Cristian Pascu <cristi.pascu@c...>
  • Date: Fri, 19 May 2006 20:17:50 +0300
  • User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Hi all!

Probaly this is a simple and common problem but I happen not to know the 
answer. I would like to be able to create a xml schema that declares 
some elements and when creating a xml document that also uses another 
xml schema elements to be able to not use namespace declaration.

Example:

Schema 1 has element :  *beans* which contains *bean* elements.
Schema 2 (the one I write) has element *model* with *class* elements.

I want to be able to write something like:

<beans>
    <bean ... />

    <model>
          <class ... />
    </model>
</beans>

..no namespaces!

Or, if this is not posiblie, at least:


<beans>
    <bean ... />

    <ns:model>
          <class ... />
    </ns:model>
</beans>


Thanks a lot!

-- 
<aop:spring-configured />


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member