xsl-list
[Top] [All Lists]

Re: [xsl] Matching elements based on element type:

2006-07-17 09:21:06
2006/7/17, Florent Georges <darkman_spam(_at_)yahoo(_dot_)fr>:
David B wrote:

  Hi

> I want an xslt stylesheet that has a single template for all elements
> of type my_type.

    <xsl:template match="element(*, my_type)">
      ...
    </xsl:template>

  Don't forget to validate your input (to annotate the nodes with their
type).


Sorry, was this meant for me? You mean in the XML file?

/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>
--~--