I took a look at the new xslt 2.0 spec hoping I could
find a way to define macros in XSLT. Named templates
and functions are great, but I was looking for
something along the lines of FTL (FreeMarker Template
Language), i.e. new xslt element instructions written
Not sure if that was ever considered by the xslt2.0
spec designer, but I guess it is still possible provide
a generic extension to define them.
Instead of having to use the
<xsl:with-param name="lines=" 10"="" deep="true"/>
it would be nice if I could create my own dsl that
would allow me to do:
<myns:show lines="10" deep="true"/>
Log in to post a comment.