You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@apache.org on 2002/08/19 13:55:12 UTC

cvs commit: xml-cocoon2/src/scratchpad/webapp/samples/slide description2html4properties.xsl

stephan     2002/08/19 04:55:12

  Modified:    src/scratchpad/webapp/samples/slide
                        description2html4properties.xsl
  Log:
  Prevent special properties to be removed.
  
  Revision  Changes    Path
  1.4       +10 -8     xml-cocoon2/src/scratchpad/webapp/samples/slide/description2html4properties.xsl
  
  Index: description2html4properties.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/samples/slide/description2html4properties.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- description2html4properties.xsl	19 Aug 2002 08:08:11 -0000	1.3
  +++ description2html4properties.xsl	19 Aug 2002 11:55:12 -0000	1.4
  @@ -148,14 +148,16 @@
                  <td align="left"><xsl:value-of select="local-name(.)"/></td>
                  <td align="left"><xsl:value-of select="."/></td>
                  <td align="right">
  -                <form action="" method="post">
  -                 <input type="hidden" name="method" value="doDeleteProperty"/>
  -                 <input type="hidden" name="cocoon-source-uri" value="{../../@source:systemid}"/>
  -                 <input type="hidden" name="cocoon-source-property-namespace" value="{namespace-uri()}"/>
  -                 <input type="hidden" name="cocoon-source-property-name" value="{local-name()}"/>
  - 
  -                 <input type="submit" name="cocoon-action-deleteproperty" value="Delete"/>
  -                </form>
  +                <xsl:if test="namespace-uri()!='DAV:' and ../@source:type='live'">
  +                 <form action="" method="post">
  +                  <input type="hidden" name="method" value="doDeleteProperty"/>
  +                  <input type="hidden" name="cocoon-source-uri" value="{../../@source:systemid}"/>
  +                  <input type="hidden" name="cocoon-source-property-namespace" value="{namespace-uri()}"/>
  +                  <input type="hidden" name="cocoon-source-property-name" value="{local-name()}"/>
  +  
  +                  <input type="submit" name="cocoon-action-deleteproperty" value="Delete"/>
  +                 </form>
  +                </xsl:if>
                  </td>
                 </tr>
                </xsl:for-each>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org