root/trunk/examples/data/sitemap.xml

Revision 25, 4.7 kB (checked in by argh, 3 years ago)

Changed some of the text to something useful.

Line 
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <!DOCTYPE argh [
3     <!ELEMENT description (#PCDATA)>
4     <!ENTITY staticTemplate "static/Home.tmpl">
5     <!ENTITY     unused
6     "Come let me enter your brain - You know how it goes, no pain no gain."
7
8     >
9 ]>
10 <configuration>
11
12     <xinc href="sitemap.xml" once="yes" parse="xml" relativeTo="defines" />
13
14     <sitemap default="home">
15
16         <!-- Sitemap variables definitions -->
17         <variables>
18             <variable label="Skin folder path" name="skinDir" source="systemVars" value="skinDir" />
19             <variable label="Path to data folder" name="dataDir" source="typein" value="../data" />
20             <variable label="Site URL" name="site" source="systemVars" value="sitepath" />
21             <variable label="Module name (used by WordGen module)" name="module" source="request" value="module" />
22             <variable label="Language ID (used by WordGen module)" name="testLanguage" source="request" value="testLanguage" />
23         </variables>
24
25         <!-- Sitemap items tree -->
26         <items>
27             <item id="home" requiresAuthentication="no" visibility="visible">
28                 <meta>
29                     <value content="Home:NavTitle" id="NavTitle" label="Navigation title" source="localizer" />
30                     <value content="Home:PageTitle" id="PageTitle" label="Page title" source="localizer" />
31                 </meta>
32                 <areas>
33                     <area id="content">
34                         <part id="home">
35                             <type>Module</type>
36                             <module>Template_patTemplate</module>
37                             <params>
38                                 <param name="input">&staticTemplate;</param>
39                             </params>
40                         </part>
41                     </area>
42                 </areas>
43                 <cdataSection>
44                     <![CDATA[Let's try some <markup with="attributes"/> to see what happens,
45 as well as some PHP code:
46
47 <?PHP
48     function foo()
49     {
50         return 'bar';
51     }
52 ?>]]>
53                 </cdataSection>
54             </item>
55             <item id="auth" requiresAuthentication="no" visibility="visible">
56                 <meta>
57                     <value content="Auth:NavTitle" id="NavTitle" source="localizer" />
58                     <value content="Auth:PageTitle" id="PageTitle" source="localizer" />
59                 </meta>
60                 <areas>
61                     <area id="content">
62                         <part id="main">
63                             <type>Module</type>
64                             <module>Auth_LoginBox</module>
65                             <params>
66                                 <param name="template">modules/Auth/LoginBox/Main.tmpl</param>
67                             </params>
68                         </part>
69                     </area>
70                     <description>
71                         patXMLPretty's renderers (notably the default HTML renderer) provide a natural way of formatting large blocks of content to make it easy to read. However, this method is not infallible - as you can see below, the newlines are somewhat messed up. This is because that block of text has been formatted to be easily readable in the XML file with additional newlines. You can have a look at the data/sitemap.xml file to see what the original XML file looks like.
72
73                         Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie
74                         consequat, vel illum dolore eu feugiat nulla facilisis at vero et accumsan et
75                         iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis
76                         dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer
77                         adipiscing elit.
78
79                         Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.
80                     </description>
81                 </areas>
82             </item>
83         </items>
84
85         <!-- Global definitions -->
86         <global>
87             <areas>
88                     <area id="navigation">
89                         <part id="TreeNav">
90                             <type>Module</type>
91                             <module>Nav_TreeFromSitemap</module>
92                             <params>
93                                 <param name="titleMetaID">NavTitle</param>
94                                 <param name="level">root</param>
95                                 <param name="template">modules/Nav/TreeFromSitemap/Main.tmpl</param>
96                             </params>
97                         </part>
98                     </area>
99                     <area id="pathnav">
100                         <part id="PathNavigator">
101                             <type>Module</type>
102                             <module>Nav_Path</module>
103                             <params>
104                                 <param name="titleMetaID">NavTitle</param>
105                                 <param name="level">root</param>
106                                 <param name="template">modules/Nav/Path/Main.tmpl</param>
107                             </params>
108                         </part>
109                     </area>
110             </areas>
111         </global>
112
113         <!-- Frame template definitions -->
114         <frames default="main">
115             <frame file="frames/Main.tmpl" id="main" label="Main" role="normal">
116                 <areas>
117                     <area id="content" />
118                     <area id="navigation" />
119                     <area id="pathnav" />
120                 </areas>
121             </frame>
122         </frames>
123     </sitemap>
124
125 </configuration>
Note: See TracBrowser for help on using the browser.