<?xml version="1.0" encoding="UTF-8"?>
  <!--
       Description   Show XSL Transformation for Form Project SAP_DemoNews
       Copyright     Copyright (c) SAP AG 2010
       Author        XML Forms Document Builder 1.0
       Version       3.3 2010-07-06
  -->
  <!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">
    <!--
         PIPELINE PARAMETERS SECTION
    -->
    <xsl:param name="urpopupjsurl"/>
    <xsl:param name="dataurl"/>
    <xsl:param name="sap_user"/>
    <xsl:param name="resfileext"/>
    <xsl:param name="packetNo">0</xsl:param>
    <xsl:param name="packetSize">5</xsl:param>
    <xsl:param name="system_config_activateInOutDent">init-value-has-to-be-overwritten</xsl:param>
    <xsl:param name="time"/>
    <xsl:param name="detailsurl"/>
    <xsl:param name="htmleditor"/>
    <xsl:param name="resfile">SAP_DemoNews.xml</xsl:param>
    <xsl:param name="scheme"/>
    <xsl:param name="system_config_activateClipboard">init-value-has-to-be-overwritten</xsl:param>
    <xsl:param name="uselighteditor">false</xsl:param>
    <xsl:param name="accessibilitymode">false</xsl:param>
    <xsl:param name="docorientation"/>
    <xsl:param name="locDate"/>
    <xsl:param name="querystring"/>
    <xsl:param name="serverprefix"/>
    <xsl:param name="templates"/>
    <xsl:param name="fulldate"/>
    <xsl:param name="callbackurl"/>
    <xsl:param name="xmlformsbrowsers"/>
    <xsl:param name="serviceservlet"/>
    <xsl:param name="dataext"/>
    <xsl:param name="locTime"/>
    <xsl:param name="imagepath"/>
    <xsl:param name="sap_user_id"/>
    <xsl:param name="feedbackurl"/>
    <xsl:param name="system_config_activateTextSettings">init-value-has-to-be-overwritten</xsl:param>
    <xsl:param name="cssurl"/>
    <xsl:param name="resfilepostfix"/>
    <xsl:param name="css"/>
    <xsl:param name="previewservlet"/>
    <xsl:param name="datapath"/>
    <xsl:param name="system_config_activateHighSecure">init-value-has-to-be-overwritten</xsl:param>
    <xsl:param name="system_config_activateColorSettings">init-value-has-to-be-overwritten</xsl:param>
    <xsl:param name="contentaccess"/>
    <xsl:param name="servletpath"/>
    <xsl:param name="system_config_activateList">init-value-has-to-be-overwritten</xsl:param>
    <xsl:param name="date"/>
    <xsl:param name="authorpreviewresource"/>
    <xsl:param name="globalresfile">Global-ResourceFile.xml</xsl:param>
    <xsl:param name="querystringpart"/>
    <xsl:param name="browser"/>
    <xsl:param name="listservlet"/>
    <xsl:param name="javascriptpath"/>
    <xsl:param name="mimepath"/>
    <xsl:param name="clientcountry"/>
    <xsl:param name="navigationaccess"/>
    <xsl:param name="system_config_activateLinks">init-value-has-to-be-overwritten</xsl:param>
    <xsl:param name="serverport"/>
    <xsl:param name="simpledateformat">dd.MM.yyyy</xsl:param>
    <xsl:param name="servername"/>
    <xsl:param name="guid"/>
    <xsl:param name="sendtourl"/>
    <xsl:param name="projectroot"/>
    <xsl:param name="browserversion"/>
    <xsl:param name="allowhtml">false</xsl:param>
    <xsl:param name="system_config_activateTableFeatures">init-value-has-to-be-overwritten</xsl:param>
    <xsl:param name="xmlformsroot"/>
    <xsl:param name="urmapijsurl"/>
    <xsl:param name="sap_language"/>
    <xsl:param name="editservlet"/>
    <xsl:param name="editmode">edit</xsl:param>
    <xsl:param name="system_config_activateImage">init-value-has-to-be-overwritten</xsl:param>
    <xsl:variable select="'abcdefghijklmnopqrstuvwxyz'" name="lcletters"/>
    <xsl:variable select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" name="ucletters"/>
    <!--
         RESOURCE FILE DOCUMENT
    -->
    <xsl:variable select="document(concat('wcm:/',substring-after($xmlformsroot, $contentaccess), '/SAP_DemoNews/', $resfile))/ROOT/RESOURCES" name="resources"/>
    <!--
         FORM PARAMETERS TEMPLATE
    -->
    <xsl:template match="xf:formsparameters">
      <xsl:apply-templates select="xf:param"/>
    </xsl:template>
    <!--
         FORM PARAMETER TEMPLATE
    -->
    <xsl:template match="xf:param">
      <xsl:if test="@type='hidden'">
        <input type="hidden">
          <xsl:attribute name="name">
            <xsl:value-of select="@name"/>
          </xsl:attribute>
          <xsl:attribute name="value">
            <xsl:value-of select="."/>
          </xsl:attribute>
        </input>
      </xsl:if>
    </xsl:template>
    <xsl:template match="xf:allowedvalues">
      <xsl:param select="combo" name="mode"/>
      <xsl:param name="inputname"/>
      <xsl:param name="value"/>
      <xsl:param select="__" name="default_value"/>
      <xsl:param select="__" name="default_display"/>
      <xsl:for-each select="xf:valuedef">
        <xsl:choose>
          <xsl:when test="($mode='combo_plus_default') and ($editmode='create')">
            <option>
              <xsl:attribute name="value">
                <xsl:value-of select="./xf:value"/>
              </xsl:attribute>
              <xsl:value-of select="./xf:name"/>
            </option>
          </xsl:when>
          <xsl:when test="($mode='combo') or ($mode='combo_plus_default')">
            <option>
              <xsl:attribute name="value">
                <xsl:value-of select="./xf:value"/>
              </xsl:attribute>
              <xsl:if test="$value=./xf:value">
                <xsl:attribute name="selected">true</xsl:attribute>
              </xsl:if>
              <xsl:value-of select="./xf:name"/>
            </option>
          </xsl:when>
          <xsl:when test="$mode='radio'">
            <p>
              <input type="radio">
                <xsl:attribute name="value">
                  <xsl:value-of select="./xf:value"/>
                </xsl:attribute>
                <xsl:attribute name="name">
                  <xsl:value-of select="$inputname"/>
                </xsl:attribute>
                <xsl:if test="$value=./xf:value">
                  <xsl:attribute name="checked"/>
                </xsl:if>
                <xsl:value-of select="./xf:name"/>
              </input>
            </p>
          </xsl:when>
        </xsl:choose>
      </xsl:for-each>
      <xsl:if test="($mode='combo_plus_default') and ($editmode='create')">
        <option>
          <xsl:attribute name="value">
            <xsl:value-of select="$default_value"/>
          </xsl:attribute>
          <xsl:attribute name="selected">true</xsl:attribute>
          <xsl:value-of select="$default_display"/>
        </option>
      </xsl:if>
    </xsl:template>
    <xsl:template name="outputvalue">
      <xsl:param name="value"/>
      <xsl:choose>
        <xsl:when test="$allowhtml!='false'">
          <xsl:value-of select="$value" disable-output-escaping="yes"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$value"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:template>
    <xsl:template name="printPropValues">
      <xsl:param name="propId"/>
      <xsl:param name="display"/>
      <xsl:param select="'false'" name="disableOutputEscaping"/>
      <xsl:param select="','" name="separator"/>
      <xsl:param name="mailto"/>
      <xsl:param name="tabIndex"/>
      <xsl:param name="forceTabindexAdding"/>
      <xsl:param select="'false'" name="useDisplayName"/>
      <xsl:for-each select="xf:resourceproperties/xf:property[@id=$propId]/xf:values/xf:valuedef">
        <xsl:choose>
          <xsl:when test="($mailto!='') and (xf:displayValue[@param=$mailto]) and (xf:displayValue[@param=$mailto]!='')">
            <xsl:choose>
              <xsl:when test="($display!='') and (xf:displayValue[@param=$display]) and (xf:displayValue[@param=$display]!='')">
                <xsl:if test="($separator!='') and (position()&gt;1)">
                  <xsl:value-of select="$separator"/>
                </xsl:if>
                <a>
                  <xsl:attribute name="href">mailto:<xsl:value-of select="xf:displayValue[@param=$mailto]"/>
                  </xsl:attribute>
                  <xsl:attribute name="tabindex">
                    <xsl:value-of select="$tabIndex"/>
                  </xsl:attribute>
                  <xsl:choose>
                    <xsl:when test="($disableOutputEscaping='yes') and ($allowhtml!='false')">
                      <xsl:value-of select="xf:displayValue[@param=$display]" disable-output-escaping="yes"/>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:value-of select="xf:displayValue[@param=$display]"/>
                    </xsl:otherwise>
                  </xsl:choose>
                </a>
              </xsl:when>
              <xsl:when test="($useDisplayName='true') and (xf:displayValue[@default='true']) and (xf:displayValue[@default='true']!='')">
                <xsl:if test="($separator!='') and (position()&gt;1)">
                  <xsl:value-of select="$separator"/>
                </xsl:if>
                <a>
                  <xsl:attribute name="href">mailto:<xsl:value-of select="xf:displayValue[@param=$mailto]"/>
                  </xsl:attribute>
                  <xsl:attribute name="tabindex">
                    <xsl:value-of select="$tabIndex"/>
                  </xsl:attribute>
                  <xsl:choose>
                    <xsl:when test="($disableOutputEscaping='yes') and ($allowhtml!='false')">
                      <xsl:value-of select="xf:displayValue[@default='true']" disable-output-escaping="yes"/>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:value-of select="xf:displayValue[@default='true']"/>
                    </xsl:otherwise>
                  </xsl:choose>
                </a>
              </xsl:when>
              <xsl:otherwise>
                <xsl:if test="(xf:value) and (xf:value!='')">
                  <xsl:if test="($separator!='') and (position()&gt;1)">
                    <xsl:value-of select="$separator"/>
                  </xsl:if>
                  <a>
                    <xsl:attribute name="href">mailto:<xsl:value-of select="xf:displayValue[@param=$mailto]"/>
                    </xsl:attribute>
                    <xsl:attribute name="tabindex">
                      <xsl:value-of select="$tabIndex"/>
                    </xsl:attribute>
                    <xsl:choose>
                      <xsl:when test="($disableOutputEscaping='yes') and ($allowhtml!='false')">
                        <xsl:value-of select="xf:value" disable-output-escaping="yes"/>
                      </xsl:when>
                      <xsl:otherwise>
                        <xsl:value-of select="xf:value"/>
                      </xsl:otherwise>
                    </xsl:choose>
                  </a>
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:when>
          <xsl:otherwise>
            <xsl:choose>
              <xsl:when test="($display!='') and (xf:displayValue[@param=$display]) and (xf:displayValue[@param=$display]!='')">
                <xsl:if test="($separator!='') and (position()&gt;1)">
                  <xsl:value-of select="$separator"/>
                </xsl:if>
                <xsl:choose>
                  <xsl:when test="$forceTabindexAdding!=''">
                    <span tabindex="0">
                      <xsl:choose>
                      <xsl:when test="($disableOutputEscaping='yes') and ($allowhtml!='false')">
                          <xsl:value-of select="xf:displayValue[@param=$display]" disable-output-escaping="yes"/>
                        </xsl:when>
                      <xsl:otherwise>
                          <xsl:value-of select="xf:displayValue[@param=$display]"/>
                        </xsl:otherwise>
                    </xsl:choose>
                    </span>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:choose>
                      <xsl:when test="($disableOutputEscaping='yes') and ($allowhtml!='false')">
                          <xsl:value-of select="xf:displayValue[@param=$display]" disable-output-escaping="yes"/>
                        </xsl:when>
                      <xsl:otherwise>
                          <xsl:value-of select="xf:displayValue[@param=$display]"/>
                        </xsl:otherwise>
                    </xsl:choose>
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <xsl:when test="($useDisplayName='true') and (xf:displayValue[@default='true']) and (xf:displayValue[@default='true']!='')">
                <xsl:if test="($separator!='') and (position()&gt;1)">
                  <xsl:value-of select="$separator"/>
                </xsl:if>
                <xsl:choose>
                  <xsl:when test="$forceTabindexAdding!=''">
                    <span tabindex="0">
                      <xsl:choose>
                      <xsl:when test="($disableOutputEscaping='yes') and ($allowhtml!='false')">
                          <xsl:value-of select="xf:displayValue[@default='true']" disable-output-escaping="yes"/>
                        </xsl:when>
                      <xsl:otherwise>
                          <xsl:value-of select="xf:displayValue[@default='true']"/>
                        </xsl:otherwise>
                    </xsl:choose>
                    </span>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:choose>
                      <xsl:when test="($disableOutputEscaping='yes') and ($allowhtml!='false')">
                          <xsl:value-of select="xf:displayValue[@default='true']" disable-output-escaping="yes"/>
                        </xsl:when>
                      <xsl:otherwise>
                          <xsl:value-of select="xf:displayValue[@default='true']"/>
                        </xsl:otherwise>
                    </xsl:choose>
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:when>
              <xsl:otherwise>
                <xsl:if test="(xf:value) and (xf:value!='')">
                  <xsl:if test="($separator!='') and (position()&gt;1)">
                    <xsl:value-of select="$separator"/>
                  </xsl:if>
                  <xsl:choose>
                    <xsl:when test="$forceTabindexAdding!=''">
                      <span tabindex="0">
                        <xsl:choose>
                        <xsl:when test="($disableOutputEscaping='yes') and ($allowhtml!='false')">
                            <xsl:value-of select="xf:value" disable-output-escaping="yes"/>
                          </xsl:when>
                        <xsl:otherwise>
                            <xsl:value-of select="xf:value"/>
                          </xsl:otherwise>
                      </xsl:choose>
                      </span>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:choose>
                        <xsl:when test="($disableOutputEscaping='yes') and ($allowhtml!='false')">
                            <xsl:value-of select="xf:value" disable-output-escaping="yes"/>
                          </xsl:when>
                        <xsl:otherwise>
                            <xsl:value-of select="xf:value"/>
                          </xsl:otherwise>
                      </xsl:choose>
                    </xsl:otherwise>
                  </xsl:choose>
                </xsl:if>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:for-each>
    </xsl:template>
    <!--
         MAIN ITEM TEMPLATE
    -->
    <xsl:template name="item">
      <table width="100%" class="urGrpBdyBoxBgColor" cellpadding="1" cellspacing="1">
        <xsl:if test="((xf:resourceproperties/xf:property[@id='default:displayname']/xf:values/xf:valuedef/xf:value) and (xf:resourceproperties/xf:property[@id='default:displayname']/xf:values/xf:valuedef/xf:value!=''))">
          <tr>
            <xsl:if test="((xf:resourceproperties/xf:property[@id='default:displayname']/xf:values/xf:valuedef/xf:value) and (xf:resourceproperties/xf:property[@id='default:displayname']/xf:values/xf:valuedef/xf:value!=''))">
            <td height="12%" valign="top" width="100%" rowspan="1" colspan="2"><xsl:if test="((xf:resourceproperties/xf:property[@id='default:displayname']/xf:values/xf:valuedef/xf:value) and (xf:resourceproperties/xf:property[@id='default:displayname']/xf:values/xf:valuedef/xf:value!=''))">
              <p>
                <span class="urTxtH2">
                  <span>
                    <xsl:attribute name="tabindex">
                      <xsl:if test="$accessibilitymode='true'">0</xsl:if>
                    </xsl:attribute>
                    <span style="font-family:Arial;font-size:medium;">
                      <b>
                        <xsl:call-template name="printPropValues">
                          <xsl:with-param select="'default:displayname'" name="propId"/>
                          <xsl:with-param select="'no'" name="disableOutputEscaping"/>
                          <xsl:with-param select="'true'" name="useDisplayName"/>
                        </xsl:call-template>
                      </b>
                    </span>
                  </span>
                </span>
              </p>
            </xsl:if>
            </td>
          </xsl:if>
          </tr>
        </xsl:if>
        <xsl:if test="((xf:resourceproperties/xf:property[@id='default:displayname']/xf:values/xf:valuedef/xf:value) and (xf:resourceproperties/xf:property[@id='default:displayname']/xf:values/xf:valuedef/xf:value!=''))">
          <tr>
            <td height="6%" valign="top" width="16%"></td>
            <td height="6%" valign="top" width="84%"></td>
          </tr>
        </xsl:if>
        <tr>
          <td height="1" bgcolor="black" valign="top" width="100%" rowspan="1" align="left" colspan="2"></td>
        </tr>
        <tr>
          <td height="5%" valign="top" width="16%"></td>
          <td height="5%" valign="top" width="84%"></td>
        </tr>
        <tr>
          <td height="12%" valign="top" width="100%" rowspan="1" colspan="2"><!--
                 ADDING ITEM CALL FOR item1
            -->
            <xsl:call-template name="item1"/>
          </td>
        </tr>
        <xsl:if test="((description!=''))">
          <tr>
            <xsl:if test="((description!=''))">
            <td height="12%" valign="top" width="100%" rowspan="1" colspan="2"><xsl:if test="((description!=''))">
              <p>
                <span class="urTxtEmph">
                  <span>
                    <xsl:attribute name="tabindex">
                      <xsl:if test="$accessibilitymode='true'">0</xsl:if>
                    </xsl:attribute>
                    <span style="font-family:Arial;">
                      <xsl:value-of select="description"/>
                    </span>
                  </span>
                </span>
              </p>
            </xsl:if>
            </td>
          </xsl:if>
          </tr>
        </xsl:if>
        <tr>
          <xsl:if test="image!=''">
            <td height="53%" valign="top" width="16%" rowspan="1" colspan="1"><xsl:if test="image!=''">
              <xsl:if test="image!=''">
                <a>
                  <xsl:attribute name="title">
                    <xsl:value-of select="image"/> - <xsl:value-of select="$resources/TEXT[@AKEY='lbl_LD_1020430676053']"/>
                  </xsl:attribute>
                  <xsl:attribute name="tabindex">0</xsl:attribute>
                  <xsl:if test="image!=''">
                    <xsl:attribute name="href">javascript:void(0)</xsl:attribute>
                    <xsl:attribute name="onclick">
                      <xsl:variable select="translate(substring(image, 1, 11), $ucletters, $lcletters)" name="lcval"/>
                      <xsl:if test="not(starts-with(normalize-space($lcval), 'javascript:'))">javascript:open_url('<xsl:choose>
                          <xsl:when test="starts-with(image, 'imagepath/')">
                            <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(image, 'imagepath/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(image, '$imagepath/')">
                            <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(image, '$imagepath/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(image, '%projectroot%/')">
                            <xsl:choose>
                              <xsl:when test="$projectroot!=''">
                                <xsl:value-of select="$projectroot"/>
                              </xsl:when>
                              <xsl:otherwise>
                                <xsl:value-of select="$imagepath"/>
                              </xsl:otherwise>
                            </xsl:choose>/<xsl:value-of select="substring-after(image, '%projectroot%/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(image, '%projectimagepath%/')">
                            <xsl:choose>
                              <xsl:when test="$projectroot!=''">
                                <xsl:value-of select="$projectroot"/>
                              </xsl:when>
                              <xsl:otherwise>
                                <xsl:value-of select="$imagepath"/>
                              </xsl:otherwise>
                            </xsl:choose>/<xsl:value-of select="substring-after(image, '%projectimagepath%/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(image, '%xmlformsroot%/')">
                            <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(image, '%xmlformsroot%/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(image, '%imagepath%/')">
                            <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(image, '%imagepath%/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(image, '%contentaccess%/')">
                            <xsl:value-of select="$contentaccess"/>/<xsl:value-of select="substring-after(image, '%contentaccess%/')"/>
                          </xsl:when>
                          <xsl:when test="image[@isCollection='true']">
                            <xsl:value-of select="$navigationaccess"/>
                            <xsl:value-of select="image"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:value-of select="$contentaccess"/>
                            <xsl:value-of select="image"/>
                          </xsl:otherwise>
                        </xsl:choose>')</xsl:if>
                    </xsl:attribute>
                    <img border="0">
                      <xsl:attribute name="alt">
                        <xsl:value-of select="$resources/TEXT[@AKEY='lbl_A_1020430676053']"/>
                      </xsl:attribute>
                      <xsl:attribute name="title">
                        <xsl:value-of select="$resources/TEXT[@AKEY='lbl_A_1020430676053']"/>
                      </xsl:attribute>
                      <xsl:if test="$accessibilitymode='true'">
                        <xsl:attribute name="tabindex">0</xsl:attribute>
                      </xsl:if>
                      <xsl:variable select="translate(substring(image, 1, 11), $ucletters, $lcletters)" name="lcval"/>
                      <xsl:if test="not(starts-with(normalize-space($lcval), 'javascript:'))">
                        <xsl:attribute name="src">
                          <xsl:choose>
                            <xsl:when test="starts-with(image, 'imagepath/')">
                              <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(image, 'imagepath/')"/>
                            </xsl:when>
                            <xsl:when test="starts-with(image, '$imagepath/')">
                              <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(image, '$imagepath/')"/>
                            </xsl:when>
                            <xsl:when test="starts-with(image, '%projectroot%/')">
                              <xsl:choose>
                                <xsl:when test="$projectroot!=''">
                                  <xsl:value-of select="$projectroot"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:value-of select="$imagepath"/>
                                </xsl:otherwise>
                              </xsl:choose>/<xsl:value-of select="substring-after(image, '%projectroot%/')"/>
                            </xsl:when>
                            <xsl:when test="starts-with(image, '%projectimagepath%/')">
                              <xsl:choose>
                                <xsl:when test="$projectroot!=''">
                                  <xsl:value-of select="$projectroot"/>
                                </xsl:when>
                                <xsl:otherwise>
                                  <xsl:value-of select="$imagepath"/>
                                </xsl:otherwise>
                              </xsl:choose>/<xsl:value-of select="substring-after(image, '%projectimagepath%/')"/>
                            </xsl:when>
                            <xsl:when test="starts-with(image, '%xmlformsroot%/')">
                              <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(image, '%xmlformsroot%/')"/>
                            </xsl:when>
                            <xsl:when test="starts-with(image, '%imagepath%/')">
                              <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(image, '%imagepath%/')"/>
                            </xsl:when>
                            <xsl:when test="starts-with(image, '%contentaccess%/')">
                              <xsl:value-of select="$contentaccess"/>/<xsl:value-of select="substring-after(image, '%contentaccess%/')"/>
                            </xsl:when>
                            <xsl:otherwise>
                              <xsl:value-of select="$contentaccess"/>
                              <xsl:value-of select="image"/>
                            </xsl:otherwise>
                          </xsl:choose>
                        </xsl:attribute>
                      </xsl:if>
                    </img>
                  </xsl:if>
                </a>
              </xsl:if>
            </xsl:if>
            </td>
          </xsl:if>
          <xsl:choose>
            <xsl:when test="(image!='')">
              <td height="53%" valign="top" width="84%" rowspan="1" colspan="1"><!--
                     ADDING ITEM CALL FOR item2
                -->
                <xsl:call-template name="item2"/>
              </td>
            </xsl:when>
            <xsl:when test="(image='')">
              <td height="53%" valign="top" width="100%" rowspan="1" colspan="2"><!--
                     ADDING ITEM CALL FOR item2
                -->
                <xsl:call-template name="item2"/>
              </td>
            </xsl:when>
          </xsl:choose>
        </tr>
      </table>
    </xsl:template>
    <!--
         MAIN ITEM TEMPLATE
    -->
    <xsl:template name="item1">
      <!--
           grouping with id 1103627979172
      -->
      <p>
        <xsl:if test="((date!=''))">
          <span class="urTxtLeg">
            <span>
              <xsl:attribute name="tabindex">
                <xsl:if test="$accessibilitymode='true'">0</xsl:if>
              </xsl:attribute>
              <nobr>
                <span style="font-family:Arial;color:#003399;">
                  <xsl:value-of select="date"/>
                </span>
              </nobr>
            </span>
          </span>
        </xsl:if>
        <span class="urTxtStd">
          <span>
            <xsl:attribute name="tabindex">
              <xsl:if test="$accessibilitymode='true'">0</xsl:if>
            </xsl:attribute>
            <span style="color:#9999ff;">
              <xsl:call-template name="outputvalue">
                <xsl:with-param select="$resources/TEXT[@AKEY='lbl_1070280656816']" name="value"/>
              </xsl:call-template>
            </span>
          </span>
        </span>
        <xsl:if test="((creator!='')) or ((creator_values/value[@param='{http://sapportals.com/xmlns/cm}description']!=''))">
          <span class="urLnkReport urTxtStd">
            <nobr>
              <span style="font-family:Arial;color:#9999ff;">
                <xsl:choose>
                  <xsl:when test="(creator_values/value[@param='{http://sapportals.com/xmlns/cm}description']!='')">
                    <xsl:choose>
                      <xsl:when test="creator_values/value[@param='{http://sapportals.com/xmlns/cm/um/com.sap.security.core.usermanagement}email']!=''">
                        <a>
                          <xsl:attribute name="tabindex">0</xsl:attribute>
                          <xsl:attribute name="href">mailto:<xsl:value-of select="creator_values/value[@param='{http://sapportals.com/xmlns/cm/um/com.sap.security.core.usermanagement}email']"/>
                          </xsl:attribute>
                          <xsl:value-of select="creator_values/value[@param='{http://sapportals.com/xmlns/cm}description']"/>
                        </a>
                      </xsl:when>
                      <span>
                        <xsl:attribute name="tabindex">0</xsl:attribute>
                        <xsl:value-of select="creator_values/value[@param='{http://sapportals.com/xmlns/cm}description']"/>
                      </span>
                    </xsl:choose>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="creator"/>
                  </xsl:otherwise>
                </xsl:choose>
              </span>
            </nobr>
          </span>
        </xsl:if>
        <br/>
      </p>
    </xsl:template>
    <!--
         MAIN ITEM TEMPLATE
    -->
    <xsl:template name="item2">
      <!--
           grouping with id 1071829760336
      -->
      <p>
        <xsl:if test="((body!=''))">
          <span class="urTxtStd">
            <span>
              <xsl:attribute name="tabindex">
                <xsl:if test="$accessibilitymode='true'">0</xsl:if>
              </xsl:attribute>
              <span style="font-family:Arial;">
                <xsl:call-template name="outputvalue">
                  <xsl:with-param select="body" name="value"/>
                </xsl:call-template>
              </span>
            </span>
          </span>
        </xsl:if>
        <xsl:if test="((body!=''))">
          <br/>
        </xsl:if>
        <xsl:if test="readmore!=''">
          <span>
            <nobr>
              <xsl:if test="readmore!=''">
                <a class="urLnkReport urTxtStd">
                  <xsl:attribute name="title">
                    <xsl:value-of select="$resources/TEXT[@AKEY='lbl_1020430676056']"/> - <xsl:value-of select="$resources/TEXT[@AKEY='lbl_LD_1020430676056']"/>
                  </xsl:attribute>
                  <xsl:attribute name="tabindex">0</xsl:attribute>
                  <xsl:if test="readmore!=''">
                    <xsl:attribute name="href">javascript:void(0)</xsl:attribute>
                    <xsl:attribute name="onclick">
                      <xsl:variable select="translate(substring(readmore,1, 11), $ucletters, $lcletters)" name="lcval"/>
                      <xsl:if test="not(starts-with(normalize-space($lcval), 'javascript:'))">javascript:open_url('<xsl:choose>
                          <xsl:when test="starts-with(readmore, 'imagepath/')">
                            <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(readmore, 'imagepath/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(readmore, '$imagepath/')">
                            <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(readmore, '$imagepath/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(readmore, '%projectroot%/')">
                            <xsl:choose>
                              <xsl:when test="$projectroot!=''">
                                <xsl:value-of select="$projectroot"/>
                              </xsl:when>
                              <xsl:otherwise>
                                <xsl:value-of select="$imagepath"/>
                              </xsl:otherwise>
                            </xsl:choose>/<xsl:value-of select="substring-after(readmore, '%projectroot%/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(readmore, '%projectimagepath%/')">
                            <xsl:choose>
                              <xsl:when test="$projectroot!=''">
                                <xsl:value-of select="$projectroot"/>
                              </xsl:when>
                              <xsl:otherwise>
                                <xsl:value-of select="$imagepath"/>
                              </xsl:otherwise>
                            </xsl:choose>/<xsl:value-of select="substring-after(readmore, '%projectimagepath%/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(readmore, '%xmlformsroot%/')">
                            <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(readmore, '%xmlformsroot%/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(readmore, '%imagepath%/')">
                            <xsl:value-of select="$imagepath"/>/<xsl:value-of select="substring-after(readmore, '%imagepath%/')"/>
                          </xsl:when>
                          <xsl:when test="starts-with(readmore, '%contentaccess%/')">
                            <xsl:value-of select="$contentaccess"/>/<xsl:value-of select="substring-after(readmore, '%contentaccess%/')"/>
                          </xsl:when>
                          <xsl:when test="readmore[@isCollection='true']">
                            <xsl:value-of select="$navigationaccess"/>
                            <xsl:value-of select="readmore"/>
                          </xsl:when>
                          <xsl:otherwise>
                            <xsl:value-of select="$contentaccess"/>
                            <xsl:value-of select="readmore"/>
                          </xsl:otherwise>
                        </xsl:choose>')</xsl:if>
                    </xsl:attribute>
                    <span style="font-family:Arial;">
                      <xsl:value-of select="$resources/TEXT[@AKEY='lbl_1020430676056']"/>
                    </span>
                  </xsl:if>
                </a>
              </xsl:if>
            </nobr>
          </span>
        </xsl:if>
        <xsl:if test="readmore!=''">
          <br/>
        </xsl:if>
      </p>
    </xsl:template>
    <!--
         ROOT TEMPLATE
    -->
    <xsl:template match="News">
      <!--
           HTML HEADER
      -->
      <html>
        <!--
             JAVA SCRIPT SECTION
        -->
        <script language="JavaScript">
          <xsl:comment>
          function _htmlb_external_submit_(){window.location.reload();} 
 function open_url(url){var tmpurl="";if (url.charAt(0) == '/') {tmpurl=encodeXmlFormsUri(url);} else {tmpurl=encodeURI(url);}var xinfo="";xinfo=window.open(url)} 
 function open_url_with_params(url,params){var xinfo="";xinfo=window.open(url,'_blank',params)} 
 function getProtAndHost(){
   return window.location.protocol+'//'+window.location.host
}

 function HrefSubmit(event, resource){ 
try{
 xf_beforeSavingSeperatedEditors();
} catch(e) {
  alert('error while trying to save editors, id98435f'); 
}
 document.rootform__.submit_event.value=event;
document.rootform__.submit_resource.value=resource;
document.rootform__.submit();}

 function encodeXmlFormsUri(uri) {if (uri == null) return null;var parts = uri.split('/');var i;uri = '';for (i=0;i&lt;parts.length;i++) {if (i&gt;0) {uri += '/';}uri += encodeURIComponent(parts[i]);}return uri;
}
          //</xsl:comment>
        </script>
        <!--
             CSS REFERENCE
        -->
        <link rel="stylesheet" type="text/css">
          <xsl:attribute name="href">
            <xsl:value-of select="$cssurl"/>/<xsl:value-of select="$css"/>
          </xsl:attribute>
        </link>
        <head>
          <title>
            <xsl:choose>
              <xsl:when test="$resources/TEXT[@AKEY='tit_global_1020430676051_dn']!=''">
                <xsl:value-of select="$resources/TEXT[@AKEY='tit_global_1020430676051_dn']"/>
              </xsl:when>
              <xsl:when test="$resources/TEXT[@AKEY='lbl_global_1020430676051_dn']!=''">
                <xsl:value-of select="$resources/TEXT[@AKEY='lbl_global_1020430676051_dn']"/>
              </xsl:when>
              <xsl:when test="$resources/TEXT[@AKEY='tit_global_displayName']!=''">
                <xsl:value-of select="$resources/TEXT[@AKEY='tit_global_displayName']"/>
              </xsl:when>
              <xsl:when test="$resources/TEXT[@AKEY='lbl_global_displayName']!=''">
                <xsl:value-of select="$resources/TEXT[@AKEY='lbl_global_displayName']"/>
              </xsl:when>
              <xsl:otherwise>SAP Demo News</xsl:otherwise>
            </xsl:choose>
          </title>
        </head>
        <style type="text/css">body {}</style>
        <body class="prtlBody urFontBaseFam urScrl urGrpBdyBoxBgColor">
          <xsl:if test="$docorientation!=''">
            <xsl:attribute name="dir">
              <xsl:value-of select="$docorientation"/>
            </xsl:attribute>
          </xsl:if>
          <!--
               MAIN ITEM TEMPLATE CALL
          -->
          <xsl:call-template name="item"/>
          <xsl:for-each select="/News/xf:formsparameters/xf:param[@name='XMLFormDataResName']">
            <!--
                 resource name
            -->
            <xsl:if test="@type='visible'">
              <input name="XMLFormDataResName" type="hidden" id="field_null">
                <xsl:choose>
                  <xsl:when test="$accessibilitymode='true'">
                    <xsl:attribute name="onmouseover">javascript:xf_updateInputTitleWithLabel( this.id, 'label_'+this.id, 'false', '<xsl:choose>
                        <xsl:when test="string-length(document(concat('wcm://etc/xmlforms/XFBuilderConfig/', $globalresfile))/ROOT/RESOURCES/TEXT[@AKEY='XF_REQUIRED_FIELD']) &gt; 0">
                          <xsl:value-of select="document(concat('wcm://etc/xmlforms/XFBuilderConfig/', $globalresfile))/ROOT/RESOURCES/TEXT[@AKEY='XF_REQUIRED_FIELD']"/>
                        </xsl:when>
                        <xsl:otherwise>*</xsl:otherwise>
                      </xsl:choose>' );</xsl:attribute>
                    <xsl:attribute name="onfocus">javascript:xf_updateInputTitleWithLabel( this.id, 'label_'+this.id, 'false', '<xsl:choose>
                        <xsl:when test="string-length(document(concat('wcm://etc/xmlforms/XFBuilderConfig/', $globalresfile))/ROOT/RESOURCES/TEXT[@AKEY='XF_REQUIRED_FIELD']) &gt; 0">
                          <xsl:value-of select="document(concat('wcm://etc/xmlforms/XFBuilderConfig/', $globalresfile))/ROOT/RESOURCES/TEXT[@AKEY='XF_REQUIRED_FIELD']"/>
                        </xsl:when>
                        <xsl:otherwise>*</xsl:otherwise>
                      </xsl:choose>' );</xsl:attribute>
                  </xsl:when>
                </xsl:choose>
                <xsl:attribute name="tabindex">0</xsl:attribute>
                <xsl:attribute name="value">
                  <xsl:if test=".=''">
                    <xsl:value-of select="$guid"/>
                  </xsl:if>
                  <xsl:if test=".!=''">
                    <xsl:value-of select="."/>
                  </xsl:if>
                </xsl:attribute>
              </input>
            </xsl:if>
            <xsl:if test="@type='hidden'">
              <xsl:value-of select="."/>
            </xsl:if>
          </xsl:for-each>
        </body>
        <script language="JavaScript">
          <xsl:attribute name="src"/>
          <xsl:attribute name="src">
            <xsl:value-of select="$xmlformsroot"/>/javascript/debug-functions.js</xsl:attribute>
        </script>
        <script language="JavaScript">
          <xsl:attribute name="src"/>
          <xsl:attribute name="src">
            <xsl:value-of select="$xmlformsroot"/>/javascript/xmlforms-utils.js</xsl:attribute>
        </script>
        <script language="JavaScript">
          <xsl:comment>
          var multiValuedFields=new Array();
          //</xsl:comment>
        </script>
      </html>
    </xsl:template>
  </xsl:stylesheet>