XSLT to make multiple hyperlinked HTML files
Hello everyone,
I'm trying to create an XSL stylesheet that takes the contents of products.xml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="site 1/products.xsl"?>
<catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="products.xsd">
<tv>
<lcd>
<product>
<model>Haier</model>
<inches>30</inches>
<description>The best</description>
<price>550</price>
<image>good looking</image>
</product>
</lcd>
<plasma>
<product>
<model>sony</model>
<inches>20</inches>
<description>wega</description>
<price>20000</price>
<image>ikt ok</image>
</product>
</plasma>
</tv>
<pc>
<desktop>
<product>
<model>Dell</model>
<memory>1024 MB</memory>
<cpu>AMD 3000+</cpu>
<disksize>180 GB</disksize>
<description>quite quick</description>
<price>800</price>
</product>
</desktop>
<laptop>
<product>
<model>Acer</model>
<memory>512 MB</memory>
<cpu>Centrino</cpu>
<disksize>40 GB</disksize>
<description>small lightweiht</description>
<price>499</price>
</product>
</laptop>
</pc>
</catalog>
and produces multiple HTML files from it, for example a start page with TV and PC hyperlinks that link to their relevent sub-sections.
Can anyone help me out with this? I'm struggling!
Many Thanks,
dai.hop
|