Menu

#17 XSLT Macros

open
nobody
None
5
2012-10-08
2006-05-19
Igor
No

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
in xslt.

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:call-template name="show">
<xsl:with-param name="lines=" 10"="" deep="true"/>
</xsl:call-template>

it would be nice if I could create my own dsl that
would allow me to do:

<myns:show lines="10" deep="true"/>

thanks,

Discussion


Log in to post a comment.