-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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>
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>
<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
Hi orfen,
I have checked document2, there are one value in the attribute.
xsi:schemaLocation="http://www.w3schools.com note.xsd"
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.
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
I had the similar issue in documentation process . I just resolve it now.
Asked: 2012-11-24 22:41:55 +0800
Seen: 124 times
Last updated: Jan 10 '13