﻿<?xml version="1.0" encoding="UTF-8"?><!-- Version 2.0 -->
<!DOCTYPE xsl:stylesheet [
  <!ENTITY nbsp "&#160;">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xf="http://www.sapportals.com/wcm/app/xmlforms">
  <xsl:include href="wcm://etc/xmlforms/htmledit/htmledit4.xsl"/>
  <xsl:include href="wcm://etc/xmlforms/htmledit/htmledit5.xsl"/>
  
  <xsl:variable select="'false'" name="javascriptAllowed"/>
  <xsl:variable select="'true'"  name="usePortalStyle"/>
  <xsl:variable select="'false'" name="activateHTMLPaste"/>
  <xsl:variable select="'false'" name="activateDragAndDrop"/>
  <xsl:variable select="'true'"  name="activateLinks"/>
  <xsl:variable select="'true'"  name="activateClipboard"/>
  <xsl:variable select="'true'"  name="activateInOutDent"/>
  <xsl:variable select="'true'"  name="activateTableFeatures"/>
  <xsl:variable select="'true'"  name="activateList"/>
  <xsl:variable select="'true'"  name="activateTextSettings"/>
  <xsl:variable select="'true'"  name="activateColorSettings"/>
  <xsl:variable select="'true'"  name="areKmLinksSupported"/>
  <xsl:variable select="'F'"     name="intEditorDebugStr"/>
  
  <xsl:variable 				 name="hePopupSelectiongUsage1"><!-- 
		  --><xsl:when test="$accessibilitymode='true'"><!-- 
			--> - <xsl:value-of select="$globalresources/TEXT[@AKEY='HE_POPUP_SELECTING_USAGE1']"/>
		</xsl:when><!-- 
  --></xsl:variable>
  <xsl:variable 				 name="hePopupSelectiongUsage2"><!-- 
		  --><xsl:when test="$accessibilitymode='true'"><!-- 
			--> - <xsl:value-of select="$globalresources/TEXT[@AKEY='HE_POPUP_SELECTING_USAGE2']"/>
		</xsl:when><!-- 
  --></xsl:variable>
  
  <xsl:template name="addHtmlEditor">
    <xsl:param name="fieldId"/>
    <xsl:param name="linked"/>
    <xsl:param name="value"/>
    <xsl:param name="defaultValue"/>
    <xsl:param name="divTitle"/>
    <xsl:param name="tabIndex"/>
    <xsl:param name="toolbar"/>
    <xsl:param name="height"/>
    <xsl:param name="toolbarStyle">urTbarWhl</xsl:param>
    <xsl:param name="divStyle">urScrl urFontStd urTxtStd</xsl:param>
    <xsl:param name="use_light_editor">false</xsl:param>
    <xsl:param name="editorVersion">old</xsl:param>
	
              <xsl:choose>
                <xsl:when test="$editorVersion = '5'">
				
                  <xsl:call-template name="addHtmlEditor5">
                    <xsl:with-param select="$fieldId" 			name="fieldId"/>
                    <xsl:with-param select="$linked" 			name="linked"/>
                    <xsl:with-param select="$value" 			name="value"/>
                    <xsl:with-param select="$defaultValue" 		name="defaultValue"/>
                    <xsl:with-param select="$divTitle" 			name="divTitle"/>
                    <xsl:with-param select="$tabIndex"			name="tabIndex"/>
                    <xsl:with-param select="$toolbar" 			name="toolbar"/>
                    <xsl:with-param select="$height" 			name="height"/>
                    <xsl:with-param select="$toolbarStyle" 		name="toolbarStyle"/>
                    <xsl:with-param select="$divStyle" 			name="divStyle"/>
                    <xsl:with-param select="$uselighteditor"	name="use_light_editor"/>
                    <xsl:with-param select="$editorVersion"		name="editorVersion"/>
                  </xsl:call-template>
				  
                 </xsl:when>
                <xsl:otherwise>
				
                  <xsl:call-template name="addHtmlEditor4">
                    <xsl:with-param select="$fieldId" 			name="fieldId"/>
                    <xsl:with-param select="$linked" 			name="linked"/>
                    <xsl:with-param select="$value" 			name="value"/>
                    <xsl:with-param select="$defaultValue" 		name="defaultValue"/>
                    <xsl:with-param select="$divTitle" 			name="divTitle"/>
                    <xsl:with-param select="$tabIndex"			name="tabIndex"/>
                    <xsl:with-param select="$toolbar" 			name="toolbar"/>
                    <xsl:with-param select="$height" 			name="height"/>
                    <xsl:with-param select="$toolbarStyle" 		name="toolbarStyle"/>
                    <xsl:with-param select="$divStyle" 			name="divStyle"/>
                    <xsl:with-param select="$uselighteditor"	name="use_light_editor"/>
                  </xsl:call-template>
				  
                </xsl:otherwise>
              </xsl:choose>
   
  </xsl:template>
  <xsl:template name="addResourceStrings">
    <xsl:param name="use_light_editor">false</xsl:param>
    <xsl:param name="editorVersion">old</xsl:param>

	  <xsl:choose>
		<xsl:when test="$editorVersion = '5'">
		  <xsl:call-template name="addResourceStrings5">
			<xsl:with-param select="$uselighteditor"	name="use_light_editor"/>
			<xsl:with-param select="$editorVersion"		name="editorVersion"/>
		  </xsl:call-template>
		 </xsl:when>
		<xsl:otherwise>
		  <xsl:call-template name="addResourceStrings4">
			<xsl:with-param select="$uselighteditor"	name="use_light_editor"/>
		  </xsl:call-template>
		</xsl:otherwise>
	  </xsl:choose>
  </xsl:template>

  <xsl:template name="addUrSystemVariable">
      <script language="JavaScript">
        <xsl:comment>
          ur_system = {doc:window.document,mimepath:"<xsl:value-of select="$mimepath"/>",stylepath:"<xsl:value-of select="$cssurl"/>/",emptyhoverurl:"<xsl:value-of select="$javascriptpath"/>emptyhover.html",is508:<xsl:value-of select="$accessibilitymode"/>,domainrelaxing:"MINIMAL"};ur_language="de"; gDateformat="<xsl:value-of select="$simpledateformat"/>";
          //</xsl:comment>
      </script>
  </xsl:template>
  
</xsl:stylesheet>
