Click here to Skip to main content
15,892,161 members
Articles / Web Development / HTML

A well look HTML menu using XML and XSLT

Rate me:
Please Sign up or sign in to vote.
3.83/5 (20 votes)
25 Jul 20061 min read 81.6K   910   50  
A well look HTML menu using XML and XSLT
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="menu.xsl" ?>
<menubar>
  <menu text="File" icon="kjhs.gif" href="javascript:">
    <submenu id="KJHS" width="160px">
      <item text="New" icon="notepad.gif">
        <submenu id="PZGL" width="210px">
          <item text="JPEG" href="about:blank"></item>
          <item text="GIF" href="about:blank"></item>
          <item text="BMP" href="about:blank"></item>
        </submenu>
      </item>
      <item text="Open" ></item>
      <item text="Close"></item>
      <item text="Print Setup" separator="1"></item>
      <item text="Print Preview"></item>
      <item text="Print" ></item>
      <item text="Exit" separator="1"></item>
    </submenu>
  </menu>
  <menu text="Edit" href="javascript:"></menu>
  <menu text="Format" href="javascript:"></menu>
  <menu text="Options" href="javascript:"></menu>
  <menu text="Help" icon="help.gif" href="javascript:"></menu>
</menubar>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Product Manager
China China
Neeker
Beijing

Comments and Discussions