Name

<xsl:macro-arg>

Synopsis

<xsl:macro-arg name=" string " default=" value "/>

Description

Used to declare an argument that should be passed to an XSL macro, as defined with the <xsl:macro> command. The macro argument can take a default value, specified by the default attribute, in the event that the programmer does not specify one.

<xsl:macro name="function" >
  <xsl:macro-arg name="x" default="0"/>
  ...
  <xsl:contents/>
</xsl:macro>

Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.