1 |
nvankampenhout |
414 |
<?xml version="1.0"?> |
2 |
|
|
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
3 |
|
|
|
4 |
|
|
<map:components> |
5 |
|
|
<map:transformers default="xslt"> |
6 |
|
|
<map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer"> |
7 |
|
|
<catalogues default="demo"> |
8 |
|
|
<catalogue id="demo" name="messages" location="translations"/> |
9 |
|
|
</catalogues> |
10 |
|
|
<cache-at-startup>false</cache-at-startup> |
11 |
|
|
</map:transformer> |
12 |
|
|
</map:transformers> |
13 |
|
|
<map:serializers default="xml"> |
14 |
|
|
<map:serializer name="xhtml" logger="sitemap.serializer.xml" |
15 |
|
|
mime-type="text/html" src="org.apache.cocoon.serialization.XMLSerializer"> |
16 |
|
|
<omit-xml-declaration>no</omit-xml-declaration> |
17 |
|
|
<doctype-public>-//W3C//DTD XHTML 1.0 Transitional//EN</doctype-public> |
18 |
|
|
<doctype-system> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system> |
19 |
|
|
<encoding>UTF-8</encoding> |
20 |
|
|
<indent>no</indent> |
21 |
|
|
</map:serializer> |
22 |
|
|
</map:serializers> |
23 |
|
|
</map:components> |
24 |
|
|
|
25 |
|
|
<map:views> |
26 |
|
|
<map:view name="source" from-label="source"> |
27 |
|
|
<map:serialize type="xml"/> |
28 |
|
|
</map:view> |
29 |
|
|
</map:views> |
30 |
|
|
|
31 |
|
|
|
32 |
|
|
<map:pipelines> |
33 |
|
|
|
34 |
|
|
<map:component-configurations> |
35 |
|
|
<global-variables> |
36 |
|
|
<repositoryRoot>webdav://siteuser:siteuser@localhost:60000/default/</repositoryRoot> |
37 |
|
|
<previewPath>files/default.preview/</previewPath> |
38 |
|
|
<livePath>files/default.www/</livePath> |
39 |
|
|
</global-variables> |
40 |
|
|
</map:component-configurations> |
41 |
|
|
|
42 |
|
|
<map:pipeline internal-only="true"> |
43 |
|
|
|
44 |
|
|
<!-- |
45 |
|
|
Get a list of available document using a DASL query. |
46 |
|
|
{1} = "preview" or "live" |
47 |
|
|
--> |
48 |
|
|
<map:match pattern="*/documents"> |
49 |
|
|
<map:generate src="dasl-documents.xml" type="jx"> |
50 |
|
|
<map:parameter name="repository" value="{global:repositoryRoot}{global:{1}Path}"/> |
51 |
|
|
</map:generate> |
52 |
|
|
<map:transform type="dasl"/> |
53 |
|
|
<map:serialize type="xml"/> |
54 |
|
|
</map:match> |
55 |
|
|
|
56 |
|
|
<!-- |
57 |
|
|
Get a document from the repository. |
58 |
|
|
{1} = "preview" or "live" |
59 |
|
|
--> |
60 |
|
|
<map:match pattern="*/document/*.xml"> |
61 |
|
|
<map:generate src="{global:repositoryRoot}{global:{1}Path}content/documents/{2}.xml"/> |
62 |
|
|
<map:serialize type="xml"/> |
63 |
|
|
</map:match> |
64 |
|
|
|
65 |
|
|
</map:pipeline> |
66 |
|
|
|
67 |
|
|
|
68 |
|
|
<map:pipeline internal-only="false"> |
69 |
|
|
|
70 |
|
|
<!-- |
71 |
|
|
{1} = "preview" or "live" |
72 |
|
|
{2} = CSS file |
73 |
|
|
--> |
74 |
|
|
<map:match pattern="*/*.css"> |
75 |
|
|
<map:read src="resources/css/{2}.css"/> |
76 |
|
|
</map:match> |
77 |
|
|
|
78 |
|
|
<!-- |
79 |
|
|
{1} = "preview" or "live" |
80 |
|
|
{2} = image |
81 |
|
|
--> |
82 |
|
|
<map:match pattern="*/*.png"> |
83 |
|
|
<map:read src="resources/images/{2}.png"/> |
84 |
|
|
</map:match> |
85 |
|
|
|
86 |
|
|
<!-- |
87 |
|
|
{1} = "preview" or "live" |
88 |
|
|
{2} = binary path |
89 |
|
|
{3} = extension |
90 |
|
|
--> |
91 |
|
|
<map:match pattern="*/repository/binaries/**.*"> |
92 |
|
|
<map:read src="{global:repositoryRoot}{global:previewPath}binaries/{2}.{3}"/> |
93 |
|
|
</map:match> |
94 |
|
|
|
95 |
|
|
<!-- |
96 |
|
|
{1} = "preview" or "live" |
97 |
|
|
--> |
98 |
|
|
<map:match pattern="*/index.html"> |
99 |
|
|
<map:aggregate element="root" label="source"> |
100 |
|
|
<map:part element="documents" src="cocoon:/{1}/documents"/> |
101 |
|
|
</map:aggregate> |
102 |
|
|
<map:transform src="transformers/page.xsl"> |
103 |
|
|
<map:parameter name="previewOrLive" value="{1}"/> |
104 |
|
|
</map:transform> |
105 |
|
|
<map:transform type="i18n"> |
106 |
|
|
<map:parameter name="locale" value="en"/> |
107 |
|
|
</map:transform> |
108 |
|
|
<map:transform src="transformers/stripnamespaces.xsl"/> |
109 |
|
|
<map:serialize type="xhtml"/> |
110 |
|
|
</map:match> |
111 |
|
|
|
112 |
|
|
<!-- |
113 |
|
|
Present a document in XHTML. |
114 |
|
|
{1} = "preview" or "live" |
115 |
|
|
{2} = document in repository |
116 |
|
|
--> |
117 |
|
|
<map:match pattern="*/*.html"> |
118 |
|
|
<map:aggregate element="root" label="source"> |
119 |
|
|
<map:part element="documents" src="cocoon:/{1}/documents"/> |
120 |
|
|
<map:part element="document" src="cocoon:/{1}/document/{2}.xml"/> |
121 |
|
|
</map:aggregate> |
122 |
|
|
<map:transform src="transformers/page.xsl"> |
123 |
|
|
<map:parameter name="selectedDocument" value="{2}.xml"/> |
124 |
|
|
<map:parameter name="previewOrLive" value="{1}"/> |
125 |
|
|
</map:transform> |
126 |
|
|
<map:transform type="i18n"> |
127 |
|
|
<map:parameter name="locale" value="en"/> |
128 |
|
|
</map:transform> |
129 |
|
|
<map:transform src="transformers/stripnamespaces.xsl"/> |
130 |
|
|
<map:serialize type="xhtml"/> |
131 |
|
|
</map:match> |
132 |
|
|
|
133 |
|
|
<!-- |
134 |
|
|
{1} = "preview" or "live" |
135 |
|
|
--> |
136 |
|
|
<map:match pattern="*/"> |
137 |
|
|
<map:redirect-to uri="cocoon:/{1}/index.html"/> |
138 |
|
|
</map:match> |
139 |
|
|
|
140 |
|
|
<map:match pattern=""> |
141 |
|
|
<map:redirect-to uri="cocoon:/index.html"/> |
142 |
|
|
</map:match> |
143 |
|
|
|
144 |
|
|
<map:match pattern="index.html"> |
145 |
|
|
<map:generate src="resources/xhtml/index.xhtml"/> |
146 |
|
|
<map:serialize type="xhtml"/> |
147 |
|
|
</map:match> |
148 |
|
|
|
149 |
|
|
</map:pipeline> |
150 |
|
|
|
151 |
|
|
</map:pipelines> |
152 |
|
|
|
153 |
|
|
</map:sitemap> |