On Thu, Oct 21, 2010 at 9:18 PM, Julian Reschke <julian.resc...@gmx.de> wrote: > You may be writing a template and want to allow callers to send either a > node set or a RTF.
a workaround in 1.0 environment could be to write two templates (one to accept node-set as parameter and the other one to accept RTF as parameter) and according modify the calling code. I think this is probably doable. A polymorphic kind of template definition (i sense that's the pattern which is reflected in your problem description) get's quite easier to achieve in XSLT 2.0 environment, where the template parameter is defined to have type like element(*, xs:anySimpleType) and we pass an argument to this template which has type say, element(*, xs:int). > Besides that, consistency with other implementations, and conformance to the > specification should be reasons enough, methinks. may be. but node-set is not endorsed officially by XSL WG. -- Regards, Mukul Gandhi