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

Re: More Multi-Document Mambo

Subject: Re: More Multi-Document Mambo
From: Laurence O Garfield <lgarfiel@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Jul 2001 20:25:26 -0500 (CDT)
mambo document
On Wed, 18 Jul 2001, David Carlisle wrote:

> well, either use two different modes, or make your default templates
> explictly use the document element

As suggested, I'm now using different modes for different parts of the
stylesheet.  In particular, when I hit one of the triggers in the template
file, I am then using mode="sourceTree" from then on in all templates and
apply-templates.  However, I'm still getting the same error.

<!-- This is the Identity transform -->
<xsl:template match="@*|node()|text()">
	<xsl:param name="chapter"/>
	<xsl:param name="chNum"/>
	<xsl:copy>
		<xsl:apply-templates select="@*|*|text()">
			<xsl:with-param name="chapter" select="$chapter"/>
			<xsl:with-param name="chNum" select="$chNum"/>
		</xsl:apply-templates>
	</xsl:copy>
</xsl:template>

<!-- This SHOULD omit any element called with mode="sourceTree"
that doesn't have a specific template for it, shouldn't it? -->
<xsl:template match="*" mode="sourceTree"/>

However, when I run the stylesheet, the null template above catches ALL
elements called with mode="sourceTree" and omits them, despite the
presence of such templates as

<xsl:template match="para" mode="sourceTree">
	<p>
		<xsl:apply-templates mode="sourceTree"/>
	</p>
</xsl:template>

... which should catch <para> elements called with mode="sourceTree"
before the default null rule does.  Shouldn't it?  What am I missing?

--Larry Garfield


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.