|
[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?
<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








