Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.64 KB | None | 0 0
  1.     <!-- Add new Properties -->
  2.     <xsl:template match="ws:properties">
  3.         <xsl:choose>
  4.            
  5.             <xsl:when test="$oldWidgetLink = current()/../ws:link/@href and $newProperties != ''">
  6.                 <properties>
  7.                     <xsl:copy>
  8.                         <xsl:apply-templates select="./*"/>
  9.                     </xsl:copy>
  10.                
  11.                     <xsl:call-template name="output-tokens">
  12.                         <xsl:with-param name="list"><xsl:value-of select="$newProperties" /></xsl:with-param>
  13.                     </xsl:call-template>
  14.                 </properties>
  15.             </xsl:when>
  16.            
  17.             <xsl:otherwise>
  18.                 <xsl:copy>
  19.                     <xsl:apply-templates select="@*|node()"/>
  20.                 </xsl:copy>
  21.             </xsl:otherwise>
  22.            
  23.         </xsl:choose>
  24.     </xsl:template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement