The case I have includes three style sheets.
1) a main style sheet that generates a web page that calls template named foo() in style sheet (2)
2) this style sheet may or may not include a foo(), but this style sheet always imports style sheet (3) that always includes a foo()
3) style sheet (3) always includes foo()
This is for an application framework problem I'm working on. The idea is that external developers can optionally add a foo() to style sheet (2) that will then be directly called by style sheet (1) instead of the foo() in style sheet (3): override the name.
However, I'm thinking it would also be nice to let the developer call the original named style sheet in template (3) from the foo() in style sheet (2) if they really want to. This is sort of like apply-imports, but the developer can directly call a specific named template rather than telling the XSLT to find a matching template. Of course if there is some way to get the same thing to happen with apply-imports, I would love to know how :)