Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Understanding anyAttribute namespace="##any" and anyAttribute namespace="##local"

From: "W. Eliot Kimber" <ekimber@---------------.--->
To: xmlschema-dev@--.---
Date: 11/2/2004 7:57:00 AM
Henry S. Thompson wrote:
> "W. Eliot Kimber" <ekimber@i...> writes:
> 
> 
>>I'm trying to understand how anyAttribute works and I'm getting a
>>result that seems to be incorrect but I'm sure it's my lack of

> You need
> 
>    <xs:anyAttribute namespace="##local" processContents="lax"/>
> 
> The default for processContents is 'strict', which in turn means "any
> unprefixed attribute, provided I can find a top-level declaration for
> it".
> 
> With that change, XSV is happy with your example.

Cool--I see now that I had a somewhat naive idea of what local meant.

 >> Also, is there a way to say that you want to allow any qualified or
 >> unqualified attributes? It doesn't appear to be the case but I have
 >> such a hard time decoding the spec itself that I'm not sure what the
 >> actual syntax of the namespace= attribute is, so I'm going off what
 >> I've learned from the various tutorials I could find online.

 > Yes, use namespace="##any".

OK, but what about saying the equivalent of "##other or ##local"? There 
doesn't seem to be a way to do that--that was the question I really 
needed to ask.

Thanks,

E.
-- 
W. Eliot Kimber
Professional Services
Innodata Isogen
9390 Research Blvd, #410
Austin, TX 78759
(512) 372-8122

eliot@i...
www.innodata-isogen.com



From nobody@w... Tue Nov 02 23:02:45 2004
Received: from wiggum.w3.org ([1


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent