poster wrote:
> I'm a bit confused. Does "fully support" in XXE mean "validation checks on
> save"? 

Yes, on file save or on an explicit validation request (Tools|Check 
Validity = Ctrl-Shift-V).

This also means that there are no technical limitations on the use of 
key/keyref/unique.


> Specifically, is there any (plan to offer) convenient way to style the
> keyref elements with a UI widget for establishing keyref links? I can see a
> useful widget which knows about keys and keyrefs in the schema, and offers
> only valid keyref choices when editing a document. I would not be able to
> develop such a thing myself in Java.

No.


> That page suggests "temporarily add a target namespace to your schemas with
> an URI starting with "http://www.xmlmind.com/xmleditor/schema/"; (example:
> "http://www.xmlmind.com/xmleditor/schema/test";). 
> 
> Sorry if this sounds elementary, but what does this do? Specifically if I
> have "my.xsd" 
>       ... 
>       <schema xmlns="http://www.w3.org/2001/XMLSchema";
>         xmlns:my="http://www.example.com/my";
>         targetNamespace="http://www.example.com/my";
> I add   targetNamespace="http://www.xmlmind.com/xmleditor/schema/test";
>       >

You cannot have 2 targetNamespace attributes. You need to replace 
targetNamespace="http://www.example.com/my"; by 
targetNamespace="http://www.xmlmind.com/xmleditor/schema/test";.



> I then want to test on instance document "my.xml". 
> Is anything corresponding required in the instance documents or XXE config 
> files? 

No, not for a simple test. But in this case, you need to add an 
xsi:schemaLocation attribute to the root element of "my.xml".

---
<myroot
xsi:schemaLocation="http://www.xmlmind.com/xmleditor/schema/test
                     my.xsd"
xmlns="http://www.xmlmind.com/xmleditor/schema/test";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
---

Use <XXE_install_dir>/demo/bugreport.xml as an example. Notice that this 
document has no corresponding configuration file.




> Sounds like this will prevent me from using Std edition with published schema 
> that do not
> have such a targetNamespace, but not using my own schema in Std edition. Am
> I understanding correctly?

Yes. More precisely, for now, you can freely use W3C XML Schemas with 
Standard Edition as long as they have a target namespace which is:

     * http://www.w3.org/2001/XMLSchema
     * http://www.w3.org/XML/1998/namespace
     * http://www.w3.org/1999/xhtml
     * Any target namespace which starts with 
http://www.xmlmind.com/xmleditor/schema/.

This restriction can be changed by XMLmind at any time.

For example,
* we could change the way the restriction is implemented,
* or we could change the license to enforce the fact that using "W3C XML 
Schemas having a target namespace which starts with 
http://www.xmlmind.com/xmleditor/schema/"; with Standard Edition is only 
permitted for evaluation purposes.

But we really do not intend to change this:
* Standard Edition is free of charge with a very liberal license.
* There are absolutely no restrictions on the use of DTDs, any DTD, 
``standard'' or custom.
* There are absolutely no restrictions on the use of W3C XML Schemas 
having the following namespaces:
     * http://www.w3.org/2001/XMLSchema
     * http://www.w3.org/XML/1998/namespace
     * http://www.w3.org/1999/xhtml
     * http://www.xmlmind.com/xmleditor/schema/configuration
     * more ``standard'' namespaces to be added in the future.





Reply via email to