# Error in documentation: XML Editor

orfen
27

Hello everyone
I am not 100% sure, but I think there is an error in the ZK documentation [1]

In the mentioned documentation says that you could specify the schema directly in your ZUL document

<zk
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul/zul.xsd">
...
</zk>

The problem is that according to w3chools documentation[2] the schemaLocation attribute has two values, separated by a space. The first value is the namespace to use. The second value is the location of the XML schema to use for that namespace:

Here is where I am not sure what is the correct way to indicate the schemaLocation attribute value, but I think is one (or both) of the following options:
A:

<zk xmlns="http://www.zkoss.org/2005/zul"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul zul.xsd">
...
</zk>

B:
<zk xmlns="http://www.zkoss.org/2005/zul"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
...
</zk>

For the moment I am using the option B since I have seen other xml files with similar schemaLocalion values.

Regards.
[1] http://books.zkoss.org/wiki/ZK%20Installation%20Guide/Setting%20up%20IDE/XML%20Editor
[2] http://www.w3schools.com/schema/schema_schema.asp

delete retag edit

## 5 Replies

jimmyshiau
4921 5
http://www.zkoss.org/

Hi orfen,
I have checked document2, there are one value in the attribute.

xsi:schemaLocation="http://www.w3schools.com note.xsd"

orfen
27

Hello Jimmy,
Please check the example you give, it really have two values

xsi:schemaLocation="http://www.w3schools.com note.xsd"

1. http://www.w3schools.com
2. note.xsd

They are separated by one space.
The other alternative is from other xml documents I have.

jimmyshiau
4921 5
http://www.zkoss.org/

Hi orfen,
Thanks for your advise, I have update the document, and in the following document we use your option B too
http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/UI_Composing/ZUML

kobrien
3
http://www.bbexmarketing....

I had the similar issue in documentation process . I just resolve it now.

orfen
27

Hi jimmyshiau and kobrien

Glad to hear it helps someone :D

[hide preview]

## Stats

Seen: 124 times

Last updated: Jan 10 '13

Support Options
• Email Support
• Training
• Consulting
• Outsourcing