W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2001

Re: Forcing a certain document element

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Fri, 12 Jan 2001 22:31:07 +0100
Message-ID: <3A5F779B.B04B90A3@dyomedea.com>
To: xmlschema-dev@w3.org


Robert Braddock wrote:
> 
> > > without violating this property, I appreciate if people design without
> > > global elements (I just use global complexTypes where I had global elements
> > > before).
> >
> > That's quite a constraint, though, especially where multiple namespaces
> > are involved since types behave differently than elements in this
> > context.
> 
> I don't see what you mean here. My schemas just reference types through their
> schema's namespace, just like global elements would be referenced. I do this
> specifically for the multiple namespace case. Could you explain?

Sure ;)

When you write:

<xsl:element ref="ns:elt/>

the element will belong to the namespace prefixed by "ns".

When you write:

<xsl:element name="elt" type="ns:type"/>

The element is either from the target namespace of your current schema
or unqualified.

Eric

> 
> Robert Braddock

-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------
Received on Friday, 12 January 2001 16:29:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:19 GMT