Revision history [back]

click to hide/show revision 1
initial version

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

orfen gravatar image orfen

Error in documentation: XML Editor

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="&lt;a href=" http:="" www.zkoss.org="" 2005="" zul"="">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="&lt;a href=" http:="" www.zkoss.org="" 2005="" zul"="">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

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