cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "N. Sean Timm" <>
Subject [PATCH] Sitemap Draft - Misc. fixes and preliminary schema
Date Sun, 02 Jul 2000 22:44:59 GMT
I've included a diff inline for some changes to the sitemap draft document.
One of the changes involved declaring namespaces for all of the parameters
for each component.  This was rather annoying (to me), and I think I'd
personally rather see something along the lines of <param name="foo"
value="bar"/>, but maybe there is a good reason for why it is the way it is.

Besides the miscellaneous fixes, I've attached a preliminary sitemap schema
based on the latest draft.  The schema is not complete yet, and, thus, won't
quite validate correctly.  I've gotten it up to the complicated part inside
the pipeline, but now I've found that my lack of schema knowledge is
severely slowing progress.  I thought I'd throw what I had up to the list in
case someone was more familiar than I was with schemas and wanted to give it
a go.  Otherwise, I'll keep plugging away at it, but it may take a little
longer trying to figure out this last part.

I'm sure I've done some things wrong, but hopefully this is a good start on

- Sean T.

Index: sitemap-working-draft.xmap
RCS file:
retrieving revision
diff -u -r1.1.2.5 sitemap-working-draft.xmap
--- sitemap-working-draft.xmap 2000/06/30 17:21:31
+++ sitemap-working-draft.xmap 2000/07/02 22:32:45
@@ -117,7 +117,13 @@


-<map:sitemap xmlns:map="">
+<map:sitemap xmlns:map=""
+             xmlns:xslparams=""
+             xmlns:svgparams=""
+             xmlns:xsi=""
+             xsi:schemaLocation="
+                                 sitemap-working-draft.xsd">

 <!-- =========================== Components
================================ -->

@@ -140,7 +146,7 @@
   <map:transformers default="xslt">
    <map:transformer type="xslt"
-    <compile-stylesheets map:value="true"/>
+    <xslparams:compile-stylesheets map:value="true"/>
    <map:transformer type="xinclude"
    <map:transformer type="schema"
@@ -153,28 +159,28 @@
   <map:serializers default="html">
    <map:serializer type="html" mime-type="text/html"
-    <doctype-public map:value="-//W3C//DTD HTML 4.0 Transitional//EN"/>
-    <doctype-system map:value=""/>
-    <preserve-space map:value="true"/>
-    <encoding map:value="UTF-8"/>
-    <indent map:value="1"/>
-    <line-width map:value="120"/>
+    <serializeparams:doctype-public map:value="-//W3C//DTD HTML 4.0
+    <serializeparams:doctype-system
+    <serializeparams:preserve-space map:value="true"/>
+    <serializeparams:encoding map:value="UTF-8"/>
+    <serializeparams:indent map:value="1"/>
+    <serializeparams:line-width map:value="120"/>

    <map:serializer type="wap" mime-type="text/vnd.wap.wml"
-    <doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public>
-    <encoding>UTF-8</encoding>
+    <serializeparams:doctype-public>-//WAPFORUM//DTD WML
+    <serializeparams:encoding>UTF-8</serializeparams:encoding>

    <map:serializer type="svg2jpg" mime-type="image/jpg"
-    <format map:value="jpg"/>
-    <compression-level>80%</compression-level>
+    <svgparams:format map:value="jpg"/>
+    <svgparams:compression-level>80%</svgparams:compression-level>

    <map:serializer type="svg2png" mime-type="image/png"
-    <format>png</format>
-    <color-depth map:value="24"/>
+    <svgparams:format>png</svgparams:format>
+    <svgparams:color-depth map:value="24"/>

@@ -403,7 +409,7 @@
        Example to show the notion of pipeline labels for view generation.
    <map:match pattern="labelled/*">
-    <map:label name="links"
+    <map:label name="links">
      <map:label name="content">
       <map:generate src="./slides/{1}"/>

View raw message