BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


XSLT
What is SVG?
Family Tree maker
Alternative Ordering - ""Women and Children to the lifeboats first""
Restructuring flat delimited XML
Hex and Binary Conversions in XSLT - with Boolean math functions
Using XSLT to produce SVG (1)
Using XSLT to produce SVG (2)
Performance Tuning XSLT - Part 1
Performance Tuning XSLT - Part 2
Performance Tuning XSLT - Part 3
Performance Tuning XSLT - Part 4
Using XSLT to produce SVG (3)
XPath as parameters
Table with more than one column
Create an N-Column Table from XML node-set
Finding ""the corresponding node"" in a parallel subtree
Get the last item from a delimited list
Limitation to Muenchian method.
Find the number of tokens or words in a string
Randomization of node-sets or node-lists


 
 

<< XQuery.NET and XML >>


By Pedro Gil
First Posted 01/31/2002
Times viewed 173

A Slide-In Menu made with XML/XSLT


This post contains attachments
v20020131201538.zip 

Summary A simple menu build with XML/XSLT

Well this is one of my first snippets with this XSLT, so any comment are welcomed...

I tried to make simple menu navigation built with XSLT with the menu options in a XML file, this will build a fraction of HTML to be putted on the DIV section in the main HTML page. The hiding and show stuff is done using DHTML and a bit of JavaScript.

The structure of the XML file is the following:

For each separated menu you need to create a <menu> tag and define there the global settings for that menu. Then inside the menu you can make several division creating a child tag of <menu> named <separator ID=1 Description=XML Links> being that the @Description is the text that will be showed. And finally you create the items for that separator with the tag <option ID=1 Description=W3C url=http://www.w3c.org/> being that the @Description is the text that will be showed and the @url is the URL that will be used if the user clicks that item.

 

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XQuery.NET and XML >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML