forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/schema/relaxng sitemap-v06.rng
Date Sun, 12 Jan 2003 12:09:39 GMT
jefft       2003/01/12 04:09:39

  Modified:    src/resources/conf sitemap.xmap
               src/resources/schema/relaxng sitemap-v06.rng
  Log:
  Add IdGeneratorTransformer to the sitemap, which is responsible for generating
  decent @ids in XML.
  
  Revision  Changes    Path
  1.53      +10 -0     xml-forrest/src/resources/conf/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/sitemap.xmap,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- sitemap.xmap	8 Jan 2003 05:44:34 -0000	1.52
  +++ sitemap.xmap	12 Jan 2003 12:09:39 -0000	1.53
  @@ -23,6 +23,10 @@
       <use-browser-capabilities-db>false</use-browser-capabilities-db>
      </map:transformer>
     -->
  +  <map:transformer name="idgen" src="org.apache.cocoon.transformation.IdGeneratorTransformer">
  +    <element>/document/body//*[local-name() = 'section']</element>
  +    <id>title/text()</id>
  +  </map:transformer>
       <map:transformer name="linkrewriter"
         src="org.apache.cocoon.transformation.LinkRewriterTransformer">
         <input-module name="linkmap" src="{src}" reloadable="true"/>
  @@ -279,6 +283,7 @@
      <map:match pattern="body-community/*/index.xml">
        <map:generate src="content/xdocs/community/{1}/index.xml"/>
        <map:transform type="linkrewriter" src="cocoon:/community/{1}/linkmap"/>
  +     <map:transform type="idgen"/>
        <map:call resource="skinit">
         <map:parameter name="type" value="document2html"/>
         <map:parameter name="path" value="community/{1}/index"/>
  @@ -289,6 +294,7 @@
      <map:match pattern="body-community**revision-*.xml">
        <map:generate src="content/xdocs/community{1}revision-{2}.xml"/>
        <map:transform type="linkrewriter" src="cocoon:/community/{1}/linkmap"/>
  +     <map:transform type="idgen"/>
        <map:call resource="skinit">
         <map:parameter name="type" value="document2html"/>
         <map:parameter name="path" value="community/{1}/revision-{2}"/>
  @@ -302,6 +308,7 @@
          <map:part src="cocoon:/revisions-community/{1}/{2}/{3}" />
        </map:aggregate>
        <map:transform type="linkrewriter" src="cocoon:/community/{1}/{2}/linkmap"/>
  +     <map:transform type="idgen"/>
        <map:transform src="library/xslt/{1}2document.xsl" label="content"/>
        <map:call resource="skinit">
         <map:parameter name="type" value="document2html"/>
  @@ -329,6 +336,7 @@
        </map:generate>
        <map:transform src="library/xslt/dtdx2flat.xsl"/>
        <map:transform src="library/xslt/flat2document.xsl"/>
  +     <map:transform type="idgen"/>
        <map:call resource="skinit">
         <map:parameter name="type" value="document2html"/>
         <map:parameter name="isfaq" value="true"/>
  @@ -340,6 +348,7 @@
      <map:match pattern="body-**/*.xml">
       <map:generate src="content/xdocs/{1}/{2}.xml"/>
       <map:transform type="linkrewriter" src="cocoon:/{1}/linkmap"/>
  +    <map:transform type="idgen"/>
       <map:call resource="transform-to-document">
        <map:parameter name="src" value="content/xdocs/{1}/{2}.xml"/>
       </map:call>
  @@ -353,6 +362,7 @@
      <map:match pattern="body-**.xml">
       <map:generate src="content/xdocs/{1}.xml"/>
       <map:transform type="linkrewriter" src="cocoon:/linkmap"/>
  +    <map:transform type="idgen"/>
       <map:call resource="transform-to-document">
        <map:parameter name="src" value="content/xdocs/{1}.xml"/>
       </map:call>
  
  
  
  1.4       +17 -0     xml-forrest/src/resources/schema/relaxng/sitemap-v06.rng
  
  Index: sitemap-v06.rng
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/schema/relaxng/sitemap-v06.rng,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- sitemap-v06.rng	8 Jan 2003 05:44:34 -0000	1.3
  +++ sitemap-v06.rng	12 Jan 2003 12:09:39 -0000	1.4
  @@ -313,6 +313,22 @@
       </zeroOrMore>
     </define>
   
  +  <define name="IdGeneratorTransformer.contents">
  +    <zeroOrMore>
  +      <element name="element">
  +        <text/>
  +      </element>
  +      <element name="id">
  +        <text/>
  +      </element>
  +      <optional>
  +        <element name="id-attr">
  +          <text/>
  +        </element>
  +      </optional>
  +    </zeroOrMore>
  +  </define>
  +
   <!-- CPA: contents confirmed by inspection of AbstractTextSerializer.java -->
     <define name="textSerializer.contents">
       <optional><ref name="cdata-section-elements"/></optional>
  @@ -459,6 +475,7 @@
             <ref name="i18nTransformer.contents"/>
             <ref name="encodeURLTransformer.contents"/>
             <ref name="linkRewriterTransformer.contents"/>
  +          <ref name="IdGeneratorTransformer.contents"/>
             <optional><ref name="mapping"/></optional>
           </interleave>
       </element>
  
  
  

Mime
View raw message