xsl-list
[Top] [All Lists]

Re: [xsl] passing a variable to call-template

2006-08-11 06:24:30


So, I'm hoping to be able to dynamically pull templates based upon the
conformance attribute in the XML.

that's what apply templates does, you want to use apply-templates and
templates with a match pattern not named templates.

just do

<xsl:apply-templates select="@conformance"/>

by default do nothing,

<xsl:template match="@conformance"/>

but sometimes do something

<xsl:template
match="@conformance[starts-with(.,'alert_hand_in_gears')]">
  do something
</xsl:template>


David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--