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

Moded Templates

Subject: Moded Templates
From: "Lopez, William" <william.lopez@xxxxxxx>
Date: Mon, 6 Jan 2003 12:44:17 -0600
jeni lopez
Hello:

After looking at the spec ( http://www.w3.org/TR/xslt#modes ) and searching
the "biglist", I could not find the answer to my question. Besides a
"qualified name" what other values can be used when specifying a mode, is
there a way to define a template using an 'or' (|) or a wildcard (*), for
example, I want template A, B, and C to be used all the time but only need
template D & E when the specific mode is needed. What I'm trying to
accomplish is minimize the number of stylesheets I create- I want 1
stylesheet to contain all the functionality versus having multiple
stylesheets (with duplicated code).

So the XSL would look something like this:

<xsl:template match="A" mode="*">
...
</xsl:template>

or

<xsl:template match="A" mode="(A|B|C)">
...
</xsl:template>

<xsl:template match="B" mode="*">
...
</xsl:template>

<xsl:template match="C" mode="*">
...
</xsl:template>

<xsl:template match="D" mode="MODE_X">
...
</xsl:template>

<xsl:template match="E" mode="MODE_Y">
...
</xsl:template>

Thanks!

Will Lopez
EDS - Health & Insurance Application Solution Centre
MS C3-1C-37
5400 Legacy Drive
Plano, TX 75024 
( phone: +01-972-604-3372 (834-3372)
/  william.lopez@xxxxxxx
8 www.eds.com 

 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.