0

Error in documentation: XML Editor

asked 2012-11-24 22:41:55 +0800

orfen gravatar image orfen
27

updated 2012-11-24 22:42:27 +0800

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 flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2013-01-10 14:01:09 +0800

orfen gravatar image orfen
27

Hi jimmyshiau and kobrien

Glad to hear it helps someone :D

link publish delete flag offensive edit

answered 2013-01-10 06:30:50 +0800

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

updated 2013-01-10 06:31:23 +0800

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

link publish delete flag offensive edit

answered 2012-12-07 02:52:58 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

updated 2012-12-07 02:53:11 +0800

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

link publish delete flag offensive edit

answered 2012-12-05 22:02:10 +0800

orfen gravatar image 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.

link publish delete flag offensive edit

answered 2012-12-05 01:43:53 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

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

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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-11-24 22:41:55 +0800

Seen: 124 times

Last updated: Jan 10 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More