|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: import/include and apply-imports
There can be more templates on the same element, when for instance making
use of the xsl:import you can use apply-imports to make sure the template
in the imported stylesheet are 2 processed. Actually with the example
given saxon outputs something diffrent than msxml.
msxml actually outputs what I too would have expected namely the "AM I EVER EVER MATCHED?" string, where saxon does not. If I replace the include second.xsl with the actual content of second.xsl, than saxon too outputs that particular string. It looks like saxon does not treat the include second.xsl the same as if it were actually part of first.xsl. Though I might be missing something else. The code I used to play with: xml: <a><book>bbb</book></a> first.xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="third.xsl"/> <xsl:include href="second.xsl"/> </xsl:stylesheet> second.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="book"> <b><xsl:apply-imports/></b> </xsl:template> </xsl:stylesheet> third.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="book"> <xsl:apply-templates/>AM I EVER EVER MATCHED? </xsl:template> </xsl:stylesheet> Ronald Heller At 10:16 AM 5/10/01 +1000, you wrote: Janning 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
|

Cart








