> -----Original Message----- > From: Kevin Waterson > > I am having some trouble including an xsl file. > I can include the file without any problems but I am > not familiar with the precedence. It would seem the > first document is "taking over" the include doc. > This would indeed be conformant behaviour AFAIK. > > Now, do I need to start with the template match? > Apart from other problems, is having the <xsl:template match="/"> > the same in both docs a problem? Hmmm... not sure about this. Certainly never entered my mind to use two xsls, both with a root template. The more 'correct' design I believe to be one where the root template is in your main xsl. All other templates can be placed in the other, included file (consider this an xsl lib file). If there is name-clashing --meaning the two stylesheets contain templates that have exactly the same <xsl:template match="..."> declaration; so no different modes for instance -- the template in the main xsl will be used. Hope this helps! Greetz, Andreas XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format