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

RE: using a mode with named template?

Subject: RE: using a mode with named template?
From: Joshua.Kuswadi@xxxxxxxxxxxxxxxxxxxx
Date: Tue, 14 Aug 2001 12:43:24 +1000
using modes in xsl
Phillip wrote:
> I am trying to call a named template with a mode, and my XSL 
> processor is scolding me.

>From what I understand, the only attribute for the <xsl:call-template> element is name. You can use a mode when using the <xsl:apply-templates> element, and the corresponding <xsl:template> needs to have a corresponding mode attribute.
 
> Also, I don't see much material on a "mode",  any pointers?  
> Can this be 
> done, defining a named template with a mode, and calling it 
> with a mode?

Check out the relevant part of the spec:
	http://www.w3.org/TR/xslt#modes

"...Both xsl:template and xsl:apply-templates have an optional mode attribute ... If xsl:template does not have a match attribute, it must not have a mode attribute. If an xsl:apply-templates element has a mode attribute, then it applies only to those template rules from xsl:template elements that have a mode attribute with the same value; if an xsl:apply-templates element does not have a mode attribute, then it applies only to those template rules from xsl:template elements that do not have a mode attribute..."

------------------------------------------------------------------------------
This message and any attachment is confidential and may be privileged or otherwise protected from disclosure.  If you have received it by mistake please let us know by reply and then delete it from your system; you should not copy the message or disclose its contents to anyone.





 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.