cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "N. Sean Timm" <st...@mailgo.com>
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
it...

- Sean T.

------------------------------
Index: sitemap-working-draft.xmap
===================================================================
RCS file:
/home/cvspublic/xml-cocoon/xdocs/drafts/Attic/sitemap-working-draft.xmap,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 sitemap-working-draft.xmap
--- sitemap-working-draft.xmap 2000/06/30 17:21:31 1.1.2.5
+++ sitemap-working-draft.xmap 2000/07/02 22:32:45
@@ -117,7 +117,13 @@


============================================================================
 -->

-<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"
+             xmlns:xslparams="http://apache.org/cocoon/params/xalan/1.0"
+
xmlns:serializeparams="http://apache.org/cocoon/params/serialize/1.0"
+             xmlns:svgparams="http://apache.org/cocoon/params/svg/1.0"
+             xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
+             xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0
+                                 sitemap-working-draft.xsd">

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

@@ -140,7 +146,7 @@
    -->
   <map:transformers default="xslt">
    <map:transformer type="xslt"
src="class:///org.apache.cocoon.transformer.XSLTTransformer">
-    <compile-stylesheets map:value="true"/>
+    <xslparams:compile-stylesheets map:value="true"/>
    </map:transformer>
    <map:transformer type="xinclude"
src="class:///org.apache.cocoon.transformer.XIncludeTransformer"
label="content"/>
    <map:transformer type="schema"
src="class:///org.apache.cocoon.transformer.SchemaLoader"/>
@@ -153,28 +159,28 @@
    -->
   <map:serializers default="html">
    <map:serializer type="html" mime-type="text/html"
src="class:///org.apache.cocoon.serializer.HTMLSerializer">
-    <doctype-public map:value="-//W3C//DTD HTML 4.0 Transitional//EN"/>
-    <doctype-system map:value="http://www.w3.org/TR/REC-html40/loose.dtd"/>
-    <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
Transitional//EN"/>
+    <serializeparams:doctype-system
map:value="http://www.w3.org/TR/REC-html40/loose.dtd"/>
+    <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>

    <map:serializer type="wap" mime-type="text/vnd.wap.wml"
src="class:///org.apache.cocoon.serializer.XMLSerializer">
-    <doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public>
-
<doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system>
-    <encoding>UTF-8</encoding>
+    <serializeparams:doctype-public>-//WAPFORUM//DTD WML
1.1//EN</serializeparams:doctype-public>
+
<serializeparams:doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</ser
ializeparams:doctype-system>
+    <serializeparams:encoding>UTF-8</serializeparams:encoding>
    </map:serializer>

    <map:serializer type="svg2jpg" mime-type="image/jpg"
src="class:///org.apache.cocoon.serializer.SVGSerializer">
-    <format map:value="jpg"/>
-    <compression-level>80%</compression-level>
+    <svgparams:format map:value="jpg"/>
+    <svgparams:compression-level>80%</svgparams:compression-level>
    </map:serializer>

    <map:serializer type="svg2png" mime-type="image/png"
src="class:///org.apache.cocoon.serializer.SVGSerializer">
-    <format>png</format>
-    <color-depth map:value="24"/>
+    <svgparams:format>png</svgparams:format>
+    <svgparams:color-depth map:value="24"/>
    </map:serializer>
   </map:serializers>

@@ -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}"/>
      </map:label>


Mime
View raw message