Hi,

This question might not be related to XXE, but I am sure the gurus know 
an answer:

I have a 'generic' node <property> where I want to encode its data type 
in a 'type' attribute. The allowed content of this node is depending on 
this type attribute, for example:

<property type="ARRAY">
     <size>4</size>
</property>

In case of

<property type="FLOAT">

I don't want <size> to be allowed by the schema, neither I would want a 
special <array> node, because this would complicate my XSLT stylesheets.

I couldn't yet figure out a way how to do that in XSD, however I've 
observed that XXE is able to do so when validating schema XSD files (for 
example: try specifying 'type' attribute AND child 'complexType', which 
should be mutually exclusive)

Any idea or help would be mostly appreciated!

Regards,

- Martin

P.S. We are abusing XXE for creating a SOAP-alike lightweight 
description language for devices and found it EXCELLENT, so we're not 
far away anymore from getting a Pro license.. - thanks for providing 
such a great product for free.

-- 

| Martin Strubel                  // Photonfocus::SoftwareDeveloper |
| Photonfocus AG, Switzerland                   Tel. +41 55 4510132 |
| ----------------------------------------------------------------- |


Reply via email to