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

Re: categorised product lists: is there a better way?

Subject: Re: categorised product lists: is there a better way?
From: Toivo Lainevool <tlainevool@xxxxxxxxx>
Date: Fri, 12 Feb 1999 09:29:42 -0800 (PST)
complete categorised product list
<YourComment author = "James Tauber">
Now, I don't like this approach for a number of reasons, one of which is
that I have to hardcode the categories in the stylesheet. I wasn't
able to
parameterize the above template.
</YourComment>

<Response>
This isn't an ideal solution but since no one else is stepping up to
the plate:

What about having XSL stylesheets that produce the category-specific
XML and XSL.

That is, you can have an XML file like:
<CategoryList>
 <Category>
     <Title>Foos</Title>
     <Desc>Foos are widgets that are good for fooing.</Desc>
     <Product Type="foo"/>
 <Category>
<CategoryList>

and a couple of XSL scripts that generate the Category page XML file
and the XSL file.  That way you only have to have your category
information in one file.  One of the great things about have XSL be an
XML application is that you can have one XSL stylesheet generate
another one.  This meta-XSL can do the paramaterization that you are
loooking for.

</Respone>

Toivo Lainevool

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.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.