Skip to content
Kyle Stiemann edited this page Aug 25, 2015 · 5 revisions

vdldoc Elements

Vdldoc has recently added some new features so that you can add more information to your documentation. Each of these new features require the use of the vdldoc namespace in your taglib.xml file or your composite component .xhtml file. To utilize the new vdldoc namespace, simply add xmlns:vdldoc="http://vdldoc.omnifaces.org" to the facelet-taglib element in your taglib.xml file, or if you are using the namespace in a composite component, add it to the ui:component element in your .xhtml file.


Note: Vdldoc 1.2 uses the namespace http://vdldoc.org/vdldoc. Version 2.0+ uses the namespace http://vdldoc.omnifaces.org.

Vdldoc Elements:

Vdldoc XML Schema

If you want to specify the .xml schema to your file for validation purposes, you can specify it in the xsi:schemaLocation attribute. For a taglib.xml, specify the following schema in the xsi:schemaLocation attribute:

http://vdldoc.omnifaces.org https://raw.githubusercontent.com/omnifaces/vdldoc/master/src/main/resources/org/omnifaces/vdldoc/resources/vdldoc.taglib.xml.xsd

If want to specify the schema in you composite component .xhtml file, point to the .xsd for composite components instead as shown below:

http://vdldoc.omnifaces.org https://raw.githubusercontent.com/omnifaces/vdldoc/master/src/main/resources/org/omnifaces/vdldoc/resources/vdldoc-cc.xhtml.xsd
Clone this wiki locally