0xF
0xF

Reputation: 3698

How to allow any attributes from unknown namespaces?

I'm writing an XML Schema. It validates elements and their attributes from a single namespace. How do I allow any attributes from other namespaces while still validating the non-prefixed attributes? The list of other attributes and their namespaces is unknown at the time of writing the schema. The XML is human-written and I would like to minimize the possibility of typos in attribute names. The attributes from other namespaces will used scarcely so it's ok not to validate them.

Upvotes: 0

Views: 153

Answers (1)

0xF
0xF

Reputation: 3698

<xsd:anyAttribute namespace="##other" processContents="lax" />

Upvotes: 1

Related Questions