[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Re: xsl:include with parameter?
Subject: RE: [xsl] Re: xsl:include with parameter? From: David.Pawson@xxxxxxxxxxx Date: Mon, 21 Jun 2004 08:29:11 +0100 |
http://www.dpawson.co.uk/xsl/sect1/N169.html#d974e154 Yes, it was in the faq. regards DaveP. > Okay, here's the deal: I have several XSL stylesheets that do > different things [obviously] but use a couple of templates that are > common to more than one stylesheet and are thus kept in separate > "include" files. The choice of additional template to be included > depends on a few other factors that have to do with the specificities > of my system, and that would take a long time to explain but probably > wouldn't add much to this discussion. This is in fact the most common reason people ask for this facility. The answer is to turn the stylesheet structure upside down: instead of having stylesheet A try to conditionally include B or C, make B and C both include (or import) A, and then invoke the transformation on B or C depending on the circumstances. Michael Kay --+--------------------------------------------------------- --------- XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> --+-- -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Best namespace attribute , Michael Kay | Thread | [xsl] following-sibling::input and , Daniel Joshua |
Re: [xsl] Best namespace attribute , Mayo | Date | Re: [xsl] Best namespace attribute , Max Romantschuk |
Month |
Keywords