PHP Classes

File: rsd.xml

Recommend this page to a friend!
  Classes of Luis I. Larrateguy  >  XML Menu  >  rsd.xml  >  Download  
File: rsd.xml
Role: Auxiliary data
Content type: text/plain
Description: the menu structure
Class: XML Menu
Generate hierarchic menu defined in XML using XSLT
Author: By
Last change: Deeper menu levels to test it right
Date: 18 years ago
Size: 3,528 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="ISO-8859-1" ?> <?xml-stylesheet type="text/xsl" href="rsd.xsl" ?> <!-- /* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- * * Copyright (C) 2003-2004 Luis I. Larrateguy <luisignacio@larrateguy.com.ar> * * This file is part of XMLMenu * Foobar is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. * * XMLMenu is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Foobar; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * * @version 0.7.0 * @copyright 2004 **/ /* I still don't finish the DTD for the XMLMenu * * But I can tell the structure without the attributes is (in BNF): * * RSD :- <RSD>mainmenu</RSD> * * mainmenu :- <mainmenu>menuitem</mainmenu> * * menuitem :- <menuitem>submenu</menuitem> * * submenu :- <submenu></submenu> * | <submenu>menuitem</submenu> * * * * * RSD has * version="x.x.x" //version of the project * * mainmenu has * text="VARCHAR" * * menuitem has * text="VARCHAR" // labelof the link * link="VARCHAR" // link to a page, javascript o whatever * * submenu has * text="VARCHAR" // caption * */ --> <RSD version="0.7.0"> <mainmenu text="Main Menu" w="160"> <menuitem text="item 1" link=""> <submenu text="Menu 1" w="160"> <menuitem text="item 1.1" link="item.htm"><submenu/></menuitem> <menuitem text="item 1.2" link="item.htm"> <submenu text="Menu 2" w="160"> <menuitem text="item 2.1" link="item.htm"> <submenu text="Menu 2" w="160"> <menuitem text="item 2.1" link="item.htm"> <submenu text="Menu 2" w="160"> <menuitem text="item 2.1" link="item.htm"><submenu/></menuitem> <menuitem text="item 2.2" link="item.htm"><submenu/></menuitem> <menuitem text="item 2.3" link="item.htm"><submenu/></menuitem> </submenu></menuitem> <menuitem text="item 2.2" link="item.htm"><submenu/></menuitem> <menuitem text="item 2.3" link="item.htm"><submenu/></menuitem> </submenu> </menuitem> <menuitem text="item 2.2" link="item.htm"><submenu/></menuitem> <menuitem text="item 2.3" link="item.htm"><submenu/></menuitem> </submenu> </menuitem> </submenu> </menuitem> <menuitem text="item 2" link="item.htm"> <submenu text="Menu 3"> <menuitem text="item 3.1" link="item.htm"><submenu/></menuitem> <menuitem text="item 3.2" link="item.htm"><submenu/></menuitem> <menuitem text="item 3.3" link="item.htm"><submenu/></menuitem> </submenu> </menuitem> <menuitem text="item 3" link="item.htm"> <submenu text="Menu 4"> <menuitem text="item 4.1" link="item.htm"><submenu/></menuitem> <menuitem text="item 4.2" link="item.htm"><submenu/></menuitem> <menuitem text="item 4.3" link="item.htm"><submenu/></menuitem> </submenu> </menuitem> </mainmenu> </RSD>