cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [PATCH] Cocoon 2 Sitemap Draft well-formedness and misc.
Date Thu, 22 Jun 2000 11:58:09 GMT
"Timm, Sean" wrote:
> 
> There were several src locations that didn't specify a something://.  Should
> local just be assumed if not specified?

yes
 
> - 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.3
> diff -u -r1.1.2.3 sitemap-working-draft.xmap
> --- sitemap-working-draft.xmap  2000/06/21 22:04:47     1.1.2.3
> +++ sitemap-working-draft.xmap  2000/06/22 07:33:36
> @@ -220,12 +220,12 @@
>    <map:matchers default="uri-wildcard">
>     <map:matcher type="uri-wildcard"
> src="class://org.apache.cocoon.matcher.WildcardURIMatcher">
>      ...
> -   </matcher>
> +   </map:matcher>

ok, good catch
 
>     <map:matcher type="uri-regexp"
> src="class://org.apache.cocoon.matcher.RegexpURIMatcher">
>      ...
>     </map:matcher>
> -  </map:matcher>
> +  </map:matchers>

another one
 
>   </map:components>
> 
> @@ -247,8 +247,8 @@
>   <map:resources>
> 
>    <map:resource name="Access refused">
> -   <map:generator type="parser" src:local="./error-pages/restricted.xml"/>
> -   <map:filter type="xslt" src:local="./stylesheets/general-browser.xsl"/>
> +   <map:generator type="parser"
> src="local://./error-pages/restricted.xml"/>
> +   <map:filter type="xslt"
> src="local://./stylesheets/general-browser.xsl"/>
>     <map:serializer type="html" status-code="401"/>
>    </map:resource>

No, local is assumed to reduce verbosity
 
> @@ -261,7 +261,7 @@
>       workload to be parallelized.
>     -->
>   <map:match pattern="cocoon/*">
> -  <map:mount
> src="cvs:pserver:anonymous@xml.apache.org://home/cvs/cocoon/xdocs/{1}"/>
> +  <map:mount
> src="cvs://pserver:anonymous@xml.apache.org://home/cvs/cocoon/xdocs/{1}"/>
>   </map:match>

this is nastier than it seems. probably both URLs are illegal.
 
>   <map:match pattern="bugs/*">
> @@ -269,7 +269,7 @@
>   </map:match>
> 
>   <map:match pattern="dist/*">
> -  <map:mount src="./dist/{1}"/>
> +  <map:mount src="local://./dist/{1}"/>
>   </map:match>
> 
>   <map:match pattern="faq/*">
> @@ -277,7 +277,7 @@
>   </map:match>
> 
>   <map:match type="uri-regexp" pattern="^/xerces-(j|c|p)/(.*)$">
> -  <map:mount
> src="cvs:pserver:anonymous@xml.apache.org://home/cvs/xerces-{1}/xdocs/{2}"/>
> +  <map:mount
> src="cvs://pserver:anonymous@xml.apache.org://home/cvs/xerces-{1}/xdocs/{2}"
> />
>   </map:match>
> 
>   <!--
> @@ -305,8 +305,8 @@
>        one below
>     -->
>   <map:match pattern="printer-friendly/*">
> -  <map:generate src:local="{1}.xml"/>
> -  <map:filter src:local="./stylesheet/printer-friendly.xsl"/>
> +  <map:generate src="local://{1}.xml"/>
> +  <map:filter src="local://./stylesheet/printer-friendly.xsl"/>
>    <map:serialize/>
>   </map:match>
> 
> @@ -318,10 +318,10 @@
>         applying any processing. This is mostly useful when clients
>         are capable of handling XML content directly.
>        -->
> -    <map:read src="./images/logo.svg"/>
> +    <map:read src="local://./images/logo.svg"/>
>     </map:when>
>     <map:otherwise>
> -    <map:generate src="./images/logo.svg"/>
> +    <map:generate src="local://./images/logo.svg"/>
>      <map:choose>
>       <map:when test="accepts('image/png')">
>        <map:serialize type="svg2png"/>
> @@ -337,8 +337,8 @@
>   <map:match pattern="restricted/*">
>    <map:choose type="user">
>     <map:when test="is('administrator')">
> -    <map:generate src="./restricted/{1}"/>
> -    <map:filter src="./stylesheets/restricted.xsl"/>
> +    <map:generate src="local://./restricted/{1}"/>
> +    <map:filter src="local://./stylesheets/restricted.xsl"/>
>      <map:serialize/>
>     </map:when>
>     <map:otherwise>
> @@ -381,19 +381,19 @@
>    -->
> 
>    <map:view type="semantic">
> -   <map:generate src="./complex-semantics/{1}"/>
> -   <map:filter src="./stylesheet/rdf-izer.xsl"/>
> -   <map:filter src="./stylesheet/xlink-izer.xsl"/>
> +   <map:generate src="local://./complex-semantics/{1}"/>
> +   <map:filter src="local://./stylesheet/rdf-izer.xsl"/>
> +   <map:filter src="local://./stylesheet/xlink-izer.xsl"/>
>    </map:view>
> 
> 
>    <map:choose>
>     <map:when test="accepts('text/vnd.wap.wml')">
> -    <map:filter src="./stylesheet/rdf2wml.xsl"/>
> +    <map:filter src="local://./stylesheet/rdf2wml.xsl"/>
>      <map:serialize type="wap"/>
>     </map:when>
>     <map:otherwise>
> -    <map:filter src="./stylesheet/rdf2html.xsl"/>
> +    <map:filter src="local://./stylesheet/rdf2html.xsl"/>
>      <map:serialize/>
>     </map:otherwise>
>    </map:choose>
> @@ -412,24 +412,24 @@
>    <map:param name="month" value="{2}"/>
>    <map:param name="day" value="{3}"/>
> 
> -  <map:generator name="serverpages" src="./dailynews.xsp"/>
> -  <map:filter src="./stylesheet/{1}/news.xsl"/>
> +  <map:generator name="serverpages" src="local://./dailynews.xsp"/>
> +  <map:filter src="local://./stylesheet/{1}/news.xsl"/>
>    <map:serializer/>
>   </map:match>
> 
>   <map:match pattern="*">
> -  <map:generate src:local="{1}.xml"/>
> +  <map:generate src="local://{1}.xml"/>

Oh, forgot to remove this.

>    <map:choose type="load">
>     <map:when test="greaterThen('2.5')">
> -    <map:filter src"./stylesheet/low-graphics.xsl"/>
> +    <map:filter src="local://./stylesheet/low-graphics.xsl"/>
>     </map:when>
>     <map:otherwise>
> -    <choose>
> +    <map:choose>

and this

>       <map:when test="is('Mozilla5')">
> -      <map:filter src="./stylesheet/xul-enabled.xsl"/>
> +      <map:filter src="local://./stylesheet/xul-enabled.xsl"/>
>       </map:when>
>       <map:otherwise>
> -      <map:filter src="./stylesheet/general-browser.xsl"/>
> +      <map:filter src="local://./stylesheet/general-browser.xsl"/>
>       </map:otherwise>
>      </map:choose>
>     </map:otherwise>
> @@ -438,10 +438,5 @@
>   </map:match>
> 
>  </map:sitemap>
> -
> -<<<<<<< sitemap-working-draft.xmap
> -<!-- end of file -->
> 
> -=======
> -<!-- end of file -->
> ->>>>>>> 1.1.2.2
> +<!-- end of file -->
> \ No newline at end of file

thanks dude, having such prompt fixes makes me think this sitemap thing
is very visual and very easy to "feel".

sounds like a good promise for its future...

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message