xsl-list
[Top] [All Lists]

Re: Moded Templates

2003-01-06 13:40:32

On Monday, January 6, 2003, at 01:44  PM, Lopez, William wrote:

<xsl:template match="A" mode="(A|B|C)">
...
</xsl:template>

You could have three templates that match="A" with A,B,C as the modes, and use call-template to call the same template rule in each one.

Why do you have so many different modes? It might be better to find a way to collapse the three different modes into one, for example, delay the conditional decision making until somewhere further down the tree.

simon

---
www.simonwoodside.com


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>