RcBuilder@walla.com
call centre: 054-5614020

xslt with c-sharp script

Posted by: RcBuilder  /   Category: CSS / XML / XSLT   /   No Comments
29
Sep
2014

xslt with c-sharp script <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" xmlns:XSLTHelper="dummy"> // add dummy namespace <xsl:output method="xml" indent="yes" /> <msxsl:script language="C#" implements-prefix="XSLTHelper"> // add c# script <!]> </msxsl:script> <xsl:variable name="templateRoot">Templates/Liderforex/cn/</xsl:variable> <xsl:template match="Root/NewsItems"> <xsl:for-each select="Item"> <div class="MarketNewsWrapper"> <div class="MarketNewsPhoto"> <img src="{$templateRoot}images/MarketNews/{XSLTHelper:Remove(Category/., ' ')}.jpg" alt="{Category/.}" /> // call c# method </div> <div class="MarketNewsContent"> <div class="MarketNewsTitle"> <xsl:value-of select="Title/." /> </div> <div class="MarketNewsDate"> <xsl:value-of select="NewsDate/." /> </div> <div class="MarketNewsBody"> <xsl:value-of select="Body/." disable-output-escaping="yes" /> </div> </div> <div class="Clear"></div> </div> <div.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים