Tag Libraries

org.eclipse.jet.tabLibraries

1.0

Defines JET tag libraries.

<!ELEMENT extension (tagLibrary+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT tagLibrary ((functionTag | iteratingTag | conditionalTag | emptyTag | containerTag)+ , description?)>

<!ATTLIST tagLibrary

id             CDATA #REQUIRED

name           CDATA #REQUIRED

standardPrefix CDATA #IMPLIED

deprecated     (true | false) >

Declares a tag library. That is, a collection of related JET2 tags.



<!ELEMENT functionTag (attribute* , description?)>

<!ATTLIST functionTag

name                      CDATA #REQUIRED

class                     CDATA #REQUIRED

deprecated                (true | false)

whenContainingLineIsEmpty (preserve|remove) "preserve">

Define a tag that writes a value to the template output which is calculated from the elements content and any attribute values. Function tags require content in order to create output. An empty function tag, for example <myFunction/> will produce no output.



<!ELEMENT iteratingTag (attribute* , description?)>

<!ATTLIST iteratingTag

name                      CDATA #REQUIRED

class                     CDATA #REQUIRED

deprecated                (true | false)

processContents           (custom|standard) "standard"

whenContainingLineIsEmpty (preserve|remove) "remove">

Define a tag that causes repeated evaluation of its contents based on its attribute values.



<!ELEMENT conditionalTag (attribute* , description?)>

<!ATTLIST conditionalTag

name                      CDATA #REQUIRED

class                     CDATA #REQUIRED

deprecated                (true | false)

processContents           (custom|standard) "standard"

whenContainingLineIsEmpty (preserve|remove) "remove">

Define a tag that conditionally writes its contents to the output depending on some calculation.



<!ELEMENT emptyTag (attribute* , description?)>

<!ATTLIST emptyTag

name                      CDATA #REQUIRED

class                     CDATA #REQUIRED

deprecated                (true | false)

whenContainingLineIsEmpty (preserve|remove) "preserve">

Define a tag creates output or causes actions based on its context and attribute values only. An empty tag may have no content, and must be of the form <myEmptyTag ... />



<!ELEMENT attribute (description?)>

<!ATTLIST attribute

name       CDATA #REQUIRED

use        (required|optional) "required"

deprecated (true | false)

type       (string|boolean|xpath) "string">


<!ELEMENT containerTag (attribute* , description?)>

<!ATTLIST containerTag

name                      CDATA #REQUIRED

class                     CDATA #REQUIRED

deprecated                (true | false)

processContents           (standard|custom) "standard"

allowAsEmpty              (true | false)

whenContainingLineIsEmpty (remove|preserve) "remove">


<!ELEMENT description (#PCDATA)>



[Enter extension point usage example here.]

[Enter API information here.]

[Enter information about supplied implementation of this extension point.]