Phillip-
the solution seems to be a merge of the 2 Stylesheets into 1
e.g.
<xsl:apply-templates> and <xsl:apply-imports> tags are for
including multiple XSLs in one.
suppose you have style sheets a.xsl and b.xsl defining different
templates:
<!-- a.XSL -->
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="abc">
<!-- some transformation -->
</xsl:template>
</xsl:stylesheet>
<!-- b.XSL -->
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="xyz">
<!-- some transformation -->
</xsl:template>
</xsl:stylesheet>
both can be combined in a single stylesheet using import /
include directives:
<!-- c.XSL -->
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href=""/>
<xsl:include href=""/>
</xsl:stylesheet>
c.XSL sort of acts like an aggregation of stylesheets a.XSL and
b.XSL. so the foll statement stands:
XML(1) + XSL(1) --> XML(1)
where the single stylesheet itself is composed of multiple
stylesheets:
XSL(1) + XSL (1) + .. + XSL (1) --> XSL (1)
the big advantage is modularizing stylesheets.
the difference is 2 directives ( import/include ) is precedence
of template rules in case of conflicts. this is a big topic and
you may take a look at
http://www.arbortext.com/xsl/tutorial/foil26.html
reprised from http://forum.java.sun.com/thread.jsp?forum=34&thread=68850 by rohitd
Hope this helps,
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless c
>From: "Rhodes, Phillip C." <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: setSystemId not recursive for included stylesheets?
>Date: Thu, 6 Feb 2003 16:18:06 -0500
>MIME-Version: 1.0
>Received: from apache.org ([208.185.179.12]) by mc1-f36.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 6 Feb 2003 13:18:33 -0800
>Received: (qmail 20762 invoked by uid 500); 6 Feb 2003 21:17:58 -0000
>Received: (qmail 20727 invoked from network); 6 Feb 2003 21:17:57 -0000
>Received: from noaadc-msw03.noa.alcoa.com (147.154.9.220) by daedalus.apache.org with SMTP; 6 Feb 2003 21:17:57 -0000
>Received: from noaadc-mxi03.NOA.Alcoa.com (unverified) by NOAADC-MSW03.NOA.Alcoa.com (Content Technologies SMTPRS 4.2.10) with ESMTP id <[EMAIL PROTECTED]>for <[EMAIL PROTECTED]>; Thu, 6 Feb 2003 16:18:11 -0500
>Received: by noaadc-mxi03.NOA.Alcoa.com with Internet Mail Service (5.5.2653.19)id
MSN 8 with e-mail virus protection service: 2 months FREE*
