I have an xslt stylesheet which functions with no problem. I need to add the mode attribute to all xsl:template elements. What facts should I keep in mind in order to add the attribute to all elements and still have the stylesheet functioning properly. Any help is appreciated. Thank you in advance.
Share
Well it depends of course on the stylesheet and on the exact mode value you want to use, see http://www.w3.org/TR/xslt20/#modes for details.
Assuming you have something like templates without a mode attribute e.g.
and you want to use a certain mode then you have to change both the
xsl:templateas well as thexsl:apply-templatese.g.On the
apply-templatesyou have a different option however, you can usealthough with a single mode value there is no difference.