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

Importing stylesheets (overriding)

Subject: Importing stylesheets (overriding)
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Tue, 6 May 2003 13:43:52 -0700
importing stylesheets
Hello,

In both cases of import and inclusion of stylesheets, these must occur Top
Level.  This doesn't seem to be the solution I'm after, since I need to
conditionaly choose my override template.

I have a default stylesheet, which has 4 primary functions:
1)  build a very basic HTML table of results for an give XML document
2)  display a basic HTML form for editing (or inserting new) a particular
item in an XML document
3)  display a basic HTML form for confirming the deletion of a record

>From ASP I build and XML document, call up my default template and parse the
XM Document into HTML.  ASP determines which of the 4 functions is occuring
and sets a paramter in the stylesheet appropriately.  The stylesheet has a
template match (with mode) for each of the above functions.

I'd like the ability to be able to override any of the above template
matches with a new one.  As in, from ASP I'd always rely on the default
template, but invision passing the template a parameter which is the URI of
a stylesheet to actually handle the EDIT Form (as an example).

I'm thinking this is not possible, and thinking that I'd need to handle the
override from ASP.  Which isn't entirlely a bad idea.  I just didn't want to
recreate the entire stylesheet and was really hoping to conditionaly
override a template match in the master stylesheet with a snippet of a
stylesheet.

Thanks for the advice!

Karl


 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.