|
![]() |
![]() 'XSLT-lite' adds some syntactic sugar to XSLT to make stylesheets more readable. It lets authors cut down on XSL's verbosity, without losing any of the power. Stylesheets are also freed from the constraints of XML, like entity references ('&'). XSLT-lite can treat unknown elements as text, like JSP. Setting
the xsl:stylesheet attribute parsed-content to false will treat
elements as text. By default, XSLT-lite uses XSLT behaviour.
XSLT-lite templates can create the HTML ' XSLT-lite doesn't expand entities in templates. '<' produces 4 characters. To escape in XSLT-lite, use the backslash as in JSP.
Sets page directives
Caches the generated JSP file by default.
Caching for XSL is more complicated than for JSP because only some templates may be used in a page. Caching is based on the generated page, not simply on the stylesheet. A page that just uses static templates is automatically cached. Pages that use scripts just for simple calculation can also be cached. But pages that use scripts based on the request cannot be cached.
Short form of xsl:template.
is any
normal xsl content including text and the XSLT-lite actions.
The short template syntax is equivalent to:
Templates which just print an expression.
is
a Java or JavaScript expression.
The syntax is equivalent to:
Templates which are generated by JavaScript or Java.
The syntax is equivalent to:
Prints the value of the XSL
. This syntax
is a short cut for the xsl:value-of tag.
The value-of syntax is equivalent to:
Prints the value of
using the page's language.
The expression syntax is equivalent to:
Executes the statements in language.
using the page's
The is any statement list in the language, e.g. Java.The scriptlet syntax is equivalent to
Adds declaration code, i.e. code outside of any function.
The declaration syntax is equivalent to:
|