XSD files for JSF tags. XSD files were generated from *.taglib.xml files using generateXSD.groovy script and TaglibToXSD.xslt transform.
*.taglib.xml files were extracted from:
- jsf-impl-2.0.11-01.jar
- jsf-impl-2.2.8-02.jar
- primefaces-5.3.jar
- Extract
*.taglib.xml
files from JAR files. They are often placed inMETA-INF
directory inside JAR archive. - Place
*.taglib.xml
files for given library intojsf_xsd/<library_name>/taglibs
, e.g. putprimefaces-p.taglib.xml
andprimefaces-pm.taglib.xml
from primefaces-5.3.jar injsf_xsd/primefaces-5.3/taglibs/
- Run
groovy generateXSD.groovy
. The script finds all*.taglib.xml
in alljsf_xsd/<library_name>/taglibs
directories and generates XSD files intojsf_xsd/<library_name>/
directory. - (Optional) Create pull request for adding new library / library version to this repository.
TaglibToXSD.xslt
transform was originally developed by Mark A. Ziesemer
I updated the transform to match 2.x taglib.xml files. I also added some additional checks.
Because of namespace changes the transform is parametrized with namespace uri. If you want to use XSLT directy make sure that you provide target namespace for XSD. For example
- http://java.sun.com/xml/ns/javaee - for JSF < 2.2
- http://xmlns.jcp.org/xml/ns/javaee - for JSF 2.2
You can also use generateXSD.groovy
script to automate this.