XML Editor"

From Documentation
m (Created page with "{{ZKInstallationGuidePageHeader}} If you are using a XML editor, you could specify the schema directly in your ZUL document, such that the validation and '''Content Assist''' w...")
 
m (correct highlight (via JWB))
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
If you are using a XML editor, you could  specify the schema directly in your ZUL document, such that the validation and '''Content Assist''' will be enabled automatically. Here is an example.
 
If you are using a XML editor, you could  specify the schema directly in your ZUL document, such that the validation and '''Content Assist''' will be enabled automatically. Here is an example.
  
<source lang="xml" high="2,3">
+
<source lang="xml" highlight="2,3">
 
<zk
 
<zk
 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.zkoss.org/2005/zul/zul.xsd">
+
  xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
 
...
 
...
 
</zk>
 
</zk>

Latest revision as of 12:37, 19 January 2022


If you are using a XML editor, you could specify the schema directly in your ZUL document, such that the validation and Content Assist will be enabled automatically. Here is an example.

<zk
 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>

Notice that you have to specify the schema location in the root element, and the root element could be any valid ZUL component, such as window.

Version History

Last Update : 2022/01/19


Version Date Content
     



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.