This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: nested templates?



I don't think you've clearly stated this but I'm guessing that the
semantics you want is to be able to have non-top-level templates which 
are nested in other templates and are only active while the containing 
template is active, sort of like the local finctions provided in many
programming languages.

XSLT is not an algorithmic language, it's a rule-based declarative
one.  If you want to specify a rule that processes "zorch" elements,
but only when they are contained within some surrounding "glrbl"
element, you can specify that behavior in the xpath pattern that's the
value of the "select" attribute of the template.  The functionality
you're looking for is available in the language, but with a different
syntax.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]