Calling Templates: Best Practice
This is an open discussion with 2 replies, filed under XSLT.
Search
I can’t visualise your example without seeing the code, but my advice would be to choose the most future-proofed method. If these div
elements are to be added in many locations then it makes sense for this to be a re-usable template.
Are you wondering between the choice of apply-templates
(a match template) and call-template
(a named template)?
Haha! After a few months I have no idea what I was talking about either :-D
Create an account or sign in to comment.
Hey everyone,
I was wondering: One of my templates is calling a Utility-template (wich is basically just wrapping a couple of divs around the content).
Shall I pass the content using a parameter or shall I create a template (next to the call) wich is - in return - called by the wrapper-template?