cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject cvs commit: cocoon-2.2/src/java/org/apache/cocoon/components/cprocessor sitemap2xconf.xsl
Date Mon, 26 Jan 2004 15:45:35 GMT
unico       2004/01/26 07:45:35

  Modified:    src/java/org/apache/cocoon/components/cprocessor
                        sitemap2xconf.xsl
  Log:
  select and matcher type
  
  Revision  Changes    Path
  1.3       +10 -15    cocoon-2.2/src/java/org/apache/cocoon/components/cprocessor/sitemap2xconf.xsl
  
  Index: sitemap2xconf.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.2/src/java/org/apache/cocoon/components/cprocessor/sitemap2xconf.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sitemap2xconf.xsl	6 Jan 2004 14:30:31 -0000	1.2
  +++ sitemap2xconf.xsl	26 Jan 2004 15:45:35 -0000	1.3
  @@ -138,14 +138,11 @@
       </xsl:variable>
       <match-node id="{$id}" logger="sitemap.processor">
         <xsl:apply-templates select="@*" mode="copy" />
  -      <xsl:if test="not(@type)">
  -        <!-- set the default type -->
  -        <xsl:if test="/map:sitemap/map:components/map:matchers/@default">
  -          <xsl:attribute name="type">
  -            <xsl:value-of select="/map:sitemap/map:components/map:matchers/@default"
/>
  -            <xsl:text>-matcher</xsl:text>
  -          </xsl:attribute>
  -        </xsl:if>
  +      <xsl:if test="@type">
  +        <xsl:attribute name="type">
  +          <xsl:value-of select="@type"/>
  +          <xsl:text>-matcher</xsl:text>
  +        </xsl:attribute>
         </xsl:if>
         <xsl:for-each select="map:match|map:select|map:act|map:call|map:aggregate|map:generate|map:transform|map:serialize|map:read|map:mount|map:redirect-to">
           <xsl:element name="{local-name()}">
  @@ -170,13 +167,11 @@
       </xsl:variable>
       <select-node id="{$id}" logger="sitemap.processor">
         <xsl:apply-templates select="@*" mode="copy" />
  -      <xsl:if test="not(@type)">
  -        <!-- set the default type -->
  -        <xsl:if test="/map:sitemap/map:components/map:selectors/@default">
  -          <xsl:attribute name="type">
  -            <xsl:value-of select="/map:sitemap/map:components/map:selectors/@default"
/>
  -          </xsl:attribute>
  -        </xsl:if>
  +      <xsl:if test="@type">
  +        <xsl:attribute name="type">
  +          <xsl:value-of select="@type" />
  +          <xsl:text>-selector</xsl:text>
  +        </xsl:attribute>
         </xsl:if>
         <xsl:apply-templates select="map:parameter" mode="copy" />
         <xsl:apply-templates select="map:when|map:otherwise" mode="config">
  
  
  

Mime
View raw message