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)
<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