<commit_before><?xml version="1.0"?>

<!--
 $Id: rename-label.xsl,v 1.1 2003/09/12 12:34:11 egli Exp $
 -->

 <xsl:stylesheet version="1.0"
   xmlns="http://www.w3.org/1999/xhtml"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
   >
  
  <xsl:param name="request-uri"/>
  <xsl:param name="area"/>
  <xsl:param name="label"/>
  <xsl:param name="document-id"/>
  <xsl:param name="task-id"/>

  <xsl:template match="/">
    <page:page>
      <page:title>Rename Label</page:title>
      <page:body>
	<div class="lenya-box">
	  <div class="lenya-box-title">Rename Label</div>
	  <div class="lenya-box-body">
	    <form method="get">
	      <xsl:attribute name="action"></xsl:attribute>
	      <input type="hidden" name="task-id" value="{$task-id}"/>
	      <input type="hidden" name="properties.node.documentid" value="{$document-id}"/>
	      <input type="hidden" name="properties.node.area" value="{$area}"/>
	      <input type="hidden" name="lenya.usecase" value="rename-label"/>
	      <input type="hidden" name="lenya.step" value="rename-label"/>
	      
	      <table class="lenya-table-noborder">
		<tr>
		  <td class="lenya-entry-caption">New Label:</td>
		  <td><input type="text" class="lenya-form-element" name="properties.node.label" value="{$label}"/></td>
		</tr>
		<tr>
		  <td/>
		  <td>
		    <br/>
		    <input type="submit" value="Rename"/>&#160;
		    <input type="button" onClick="location.href='{$request-uri}';" value="Cancel"/>
		  </td>
		</tr>
	      </table>
	    </form>
	  </div>
	</div>
      </page:body><commit_msg>* Changed the name of the screen to match the menu entry. * "Fixed" the param names to contain no '-'. Apparently this still   causes problems under Linux with xsls. * Added a param for the language of the label that is to be changed.<commit_after><?xml version="1.0"?>

<!--
 $Id: rename-label.xsl,v 1.2 2003/09/12 17:40:07 egli Exp $
 -->

 <xsl:stylesheet version="1.0"
   xmlns="http://www.w3.org/1999/xhtml"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
   >
  
  <xsl:param name="requesturi"/>
  <xsl:param name="area"/>
  <xsl:param name="language"/>
  <xsl:param name="label"/>
  <xsl:param name="documentid"/>
  <xsl:param name="taskid"/>

  <xsl:template match="/">
    <page:page>
      <page:title>Edit Navigation Title</page:title>
      <page:body>
	<div class="lenya-box">
	  <div class="lenya-box-title">Edit Navigation Title</div>
	  <div class="lenya-box-body">
	    <form method="get">
	      <xsl:attribute name="action"></xsl:attribute>
	      <input type="hidden" name="task-id" value="{$taskid}"/>
	      <input type="hidden" name="properties.rename.label.document-id" value="{$documentid}"/>
	      <input type="hidden" name="properties.rename.label.language" value="{$language}"/>
	      <input type="hidden" name="properties.rename.label.area" value="{$area}"/>
	      <input type="hidden" name="lenya.usecase" value="rename-label"/>
	      <input type="hidden" name="lenya.step" value="rename-label"/>
	      
	      <table class="lenya-table-noborder">
		<tr>
		  <td class="lenya-entry-caption">New Navigation Title:</td>
		  <td><input type="text" class="lenya-form-element" name="properties.rename.label.label-name" value="{$label}"/></td>
		</tr>
		<tr>
		  <td/>
		  <td>
		    <br/>
		    <input type="submit" value="Submit"/>&#160;
		    <input type="button" onClick="location.href='{$requesturi}';" value="Cancel"/>
		  </td>
		</tr>
	      </table>
	    </form>
	  </div>
	</div>
      </page:body>
{'fraction_non_alphanumeric': 0.2112558913224286, 'fraction_numerical': 0.019406709176601054, 'mean_word_length': 3.4215686274509802, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 2, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '517682', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1264, 'n_words': 231}