Tag Documentation

[tag libraries] [tags]

The following document contains a summary of all theJellytag libraries.

Tag Libraries

[tag libraries] [tags]

LibraryDescription
jelly:validate

A tag library for validating XML using various schema languages like DTD, XML Schema, Relax NG as well as Relax and TREX. This tag library uses the JARV API to perform the validation.By default we use the MSV library by Kohsuke Kawaguchi as the implementation of JARV.

jelly:validate

A tag library for validating XML using various schema languages like DTD, XML Schema, Relax NG as well as Relax and TREX. This tag library uses the JARV API to perform the validation.By default we use the MSV library by Kohsuke Kawaguchi as the implementation of JARV.

Tag NameDescription
assertValidThis tag performs an assertion that the tags body contains XMLwhich matches a givem schema validation. This tag is used withJellyUnit to implement an assertion.
validateThis tag validates its body using a schema Verifier which canvalidate against DTDs, XML Schema, RelaxNG, Relax or TREX.Any JARV compliant Verifier could be used.The error messages are output as XML events so that they can be styled by the parent tag.
verifierThis tag creates a new Verifier of a schema as a variableso that it can be used by a <validate>tag.

Tags

[tag libraries] [tags]

validate:assertValid

This tag performs an assertion that the tags body contains XMLwhich matches a givem schema validation. This tag is used withJellyUnit to implement an assertion.

Attribute NameTypeDescription
errorHandlerorg.xml.sax.ErrorHandlerSets the SAX ErrorHandler which is used to captureXML validation events.If an ErrorHandler is specifiedthen this tag will output its body and redirect all error messagesto the ErrorHandler.If no ErrorHandler is specified then this tag will just output theerror messages as XML events
escapeTextboolean
trimboolean
varjava.lang.StringSets the name of the variable that will contain a boolean flag for whether ornot the XML is valid.
verifierorg.iso_relax.verifier.VerifierSets the schema Verifier that this tag will use to verify its body

validate:validate

This tag validates its body using a schema Verifier which canvalidate against DTDs, XML Schema, RelaxNG, Relax or TREX.Any JARV compliant Verifier could be used.The error messages are output as XML events so that they can be styled by the parent tag.

Attribute NameTypeDescription
errorHandlerorg.xml.sax.ErrorHandlerSets the SAX ErrorHandler which is used to captureXML validation events.If an ErrorHandler is specifiedthen this tag will output its body and redirect all error messagesto the ErrorHandler.If no ErrorHandler is specified then this tag will just output theerror messages as XML events
escapeTextboolean
trimboolean
varjava.lang.StringSets the name of the variable that will contain a boolean flag for whether ornot the XML is valid.
verifierorg.iso_relax.verifier.VerifierSets the schema Verifier that this tag will use to verify its body

validate:verifier

This tag creates a new Verifier of a schema as a variableso that it can be used by a <validate>tag.

Attribute NameTypeDescription
escapeTextboolean
factoryorg.iso_relax.verifier.VerifierFactorySets the factory used to create new schema verifier objects.If none is provided then the default MSV factory is used.
filejava.io.FileSets the java.io.Fileof the schema to parse. If no URI and no file isspecified then the body of this tag is used as the source of the schema
systemIdjava.lang.StringSets the system ID used when parsing the schema
trimboolean
urijava.lang.StringSets the URI of the schema file to parse. If no URI and no file isspecified then the body of this tag is used as the source of the schema
varjava.lang.StringSets the name of the variable that will be set to the new Verifier