What is the scope of xsl apply-imports?

Posted by calavera.info on Stack Overflow See other posts from Stack Overflow or by calavera.info
Published on 2010-03-10T14:51:49Z Indexed on 2010/03/18 22:31 UTC
Read the original article Hit count: 420

Filed under:

My original idea about apply-imports was that if there are two templates which matches the same node, then using apply-imports in a template with higher priority runs the template with the lower priority. But I recently find out that it's important how are imports organized.

Two cases interests me particularly.

  • Will apply imports work on a template which is imported in imported file (nested import)?
  • How about a "sibling import" (master file imports two files with templates matching the same nodes)

It seems to me that this is not clearly described in specification. Could someone provide authoritative guidelines?

EDIT: I can try those cases on my own, but there is always a danger that it will be implementation specific behavior.

© Stack Overflow or respective owner

Related posts about xslt