cancel
Showing results for 
Search instead for 
Did you mean: 

File wpc_feature_with_image.xsl

Former Member
0 Kudos

Hi community,

Unfortunately I deleted the file wpc_feature_with_image.xsl from the KM-Content (etc/wpceditor/styles). Can anybody be so kind and post the content of this file so I can restore it?

Thank you in advance!

Harald

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Here it is:


  <?xml version="1.0" ?> 
  <!DOCTYPE stylesheet (View Source for full doctype...)> 
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wpc="com.sap.nw.wpc.km.service.editor.xslt.XsltHelperCore">
  <xsl:output method="html" /> 
- <xsl:template match="/">
- <div class="featurebox clearfixleft">
- <xsl:if test="starts-with(document/elements/element[@type='image'],'/')">
- <img class="wpcfeatureimage">
- <xsl:attribute name="src">
  <xsl:value-of disable-output-escaping="yes" select="wpc:getWebDavAccess(string(document/elements/element[@type='image']))" /> 
  </xsl:attribute>
- <xsl:if test="string-length(document/elements/element[@type='image']/@width)!=0">
- <xsl:attribute name="width">
  <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='image']/@width" /> 
  </xsl:attribute>
  </xsl:if>
- <xsl:if test="string-length(document/elements/element[@type='image']/@height)!=0">
- <xsl:attribute name="height">
  <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='image']/@height" /> 
  </xsl:attribute>
  </xsl:if>
- <xsl:if test="string-length(document/elements/element[@type='image']/@alt)!=0">
- <xsl:attribute name="alt">
  <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='image']/@alt" /> 
  </xsl:attribute>
  </xsl:if>
  </img>
  </xsl:if>
- <h2 class="wpch2">
- <a class="wpca">
- <xsl:if test="string-length(document/elements/element[@type='itemlink']/@rid)!=0">
- <xsl:attribute name="valign">
  <xsl:value-of disable-output-escaping="yes" select="top" /> 
  </xsl:attribute>
- <xsl:attribute name="href">
  <xsl:value-of disable-output-escaping="yes" select="wpc:getHrefValue(string(document/elements/element[@type='itemlink']/@rid), string(/document/@locale))" /> 
  </xsl:attribute>
- <xsl:attribute name="onclick">
  <xsl:value-of disable-output-escaping="yes" select="wpc:getOnClickValue(string(document/elements/element[@type='itemlink']/@rid), string(/document/@locale),string(document/elements/element[@type='itemlink']/@targetnew))" /> 
  </xsl:attribute>
- <xsl:attribute name="target">
  <xsl:value-of disable-output-escaping="yes" select="wpc:getTarget(string(document/elements/element[@type='itemlink']/@targetnew))" /> 
  </xsl:attribute>
  </xsl:if>
  <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='title']" /> 
  </a>
- <xsl:if test="document/properties/property[@type='displayNewIcon']/@value='true'">
- <span class="wpcnew" valign="top">
  <xsl:value-of disable-output-escaping="yes" select="wpc:getString('xsl.xmsg.new', string(document/@locale))" /> 
  </span>
  </xsl:if>
  </h2>
  <br /> 
- <div id="teaser_zoom">
  <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='text']" /> 
- <span class="wpcarticle_date">
  <xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='date']" /> 
  </span>
  </div>
  <xsl:variable name="rlCount" select="count(document/elements/element[@type='relatedLinks']/@rid)" /> 
  <br /> 
- <xsl:if test="$rlCount">
- <div id="wpccassidebar">
- <div class="wpcbox">
- <div class="wpcboxhead">
  <xsl:value-of disable-output-escaping="yes" select="wpc:getString('xsl.xmsg.related_links', string(/document/@locale))" /> 
  </div>
- <ul class="wpcul">
- <xsl:for-each select="document/elements/element">
- <xsl:if test="@type='relatedLinks'">
- <li>
- <a class="wpca">
- <xsl:attribute name="href">
  <xsl:value-of disable-output-escaping="yes" select="wpc:getHrefValue(string(@rid), string(/document/@locale))" /> 
  </xsl:attribute>
- <xsl:attribute name="onclick">
  <xsl:value-of disable-output-escaping="yes" select="wpc:getOnClickValue(string(@rid), string(/document/@locale), string(@targetnew))" /> 
  </xsl:attribute>
- <xsl:attribute name="target">
  <xsl:value-of disable-output-escaping="yes" select="wpc:getTarget(string(@targetnew))" /> 
  </xsl:attribute>
  <xsl:value-of disable-output-escaping="yes" select="@title" /> 
  </a>
  </li>
  </xsl:if>
  </xsl:for-each>
  </ul>
  </div>
  </div>
  </xsl:if>
  </div>
  </xsl:template>
  </xsl:stylesheet>

Regards, Mikhail

Former Member
0 Kudos

Thanks very much!

Answers (0)