i have an xml file 'structure', and an xsl file 'style'. I put the files together with saxon-b to generate an output html file.
basically, what is being output at the moment on the HTML file is:
CDs
DVDs
Games
Ipods
These two categories have generated html links to cds.html and dvds.html, etc (for displaying sub-categories)
The problem is that cds.html displays 'Metal' (which is corrent), but also dvds.html , games.html and ipods.html displays the same subcategories from the cds.html page
in the code for generating the menus, i use:
//department/cd
so im guessing this is the problem? (as im bypassing dvd, games, ipods elements) but Im assuming i need to assign a variable or something.
maybe department/$variable or another variable somewhere else to check where the current page is and to gather the right data depending on what the user clicked. eg if i clicked games, i want the games sub-category to show. so the department link would need to be //department/games instead.
Any help apprechiated.
Im new to XML.
Ive posted the code so you can have a closer look, its pretty simple to understand i hope.
Bookmarks