[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Import/Include mess

Subject: Import/Include mess
From: Steve <subsume@xxxxxxxxx>
Date: Fri, 30 Jun 2006 15:08:17 -0400
c import include
I have three xsl's, A, B, C. While they can be accessed separately for
screen viewing, when A is printed, I want B and C to appear using css.

My problem is that I can't include/import B and C within A because
each uses an fxsl library and, since that library contains includes, I
get a parse error that doesn't like the fact that two sheets are
including the same file without import preference.

Obviously, one reason you start using xsl is the mutability of design
for things like this, but I must have something organized incorrectly.

See below for general idea. Any comments/opinions welcome.

-Steve

--Stylesheet A below---

<xsl:stylesheet version='1.0' xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:import href="B.xsl" />
	<xsl:import href="C.xsl" />
	<xsl:include href="../../Includes/fxsl-MS-1.1/strSplit-to-Words.xsl" />
      	<xsl:template match="/">

       <div id="printOnly">
              <xsl:apply-imports />
       </div>
       </xsl:template>
</xsl:stylesheet>

--- B & C ---

<xsl:stylesheet version='1.0' xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:include href="../../Includes/fxsl-MS-1.1/strSplit-to-Words.xsl" />
      	<xsl:template match="/">
              <div>Nonsense</div>
       </xsl:template>
</xsl:stylesheet>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.