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

RE: xsl:import or xsl:include or another alternative?

Subject: RE: xsl:import or xsl:include or another alternative?
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Tue, 1 Jul 2003 09:45:47 -0600
jim brian martinez
> From: jim [mailto:xsl@xxxxxxxxxxxxxxxxx]
> Sent: Tuesday, July 01, 2003 8:51 AM
> Subject: RE:  xsl:import or xsl:include or another alternative?
> 
> 
> thanks brian,
> 
> > Put the template into a separate stylesheet (say, 
> product.xslt), then use
> > xsl:import or xsl:include in your other stylesheets to make 
> it available:
> >
> > <xsl:import href="product.xslt"/>
> > <!-- or whatever the proper path is; this can be relative 
> to the importing
> > stylesheet -->
> 
> So is this a "clean" way of doing the above or is there a 
> more convenient
> logic to easily change the layout but also only show 1 
> product's details per
> page?

No, I think you've got it.  The assumption of course is that you must pass
category_id to your stylesheet when invoking the transformation, so that you
override the default value ('1.01') to display a different product's
details.  The other assumption is that category_id is unique since your
XPath expression will select all product nodes where <category_id> matches
your parameter.

cheers,
b.

| brian martinez                           brian.martinez@xxxxxxxxxxx |
| lead gui programmer                                    303.357.3548 |
| cheap tickets, part of trip network                fax 303.357.3380 |
| 6560 greenwood plaza blvd., suite 400           englewood, co 80111 |
| cendant travel distribution services   http://www.cheaptickets.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.