XSLT Umbraco - Get and Display an Image and Text from the Current Node
XSLT Umbraco - Get and Display an Image and Text from the Current Node
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<br /><br />
<br /><br />
<xsl:variable name="getimg" select="$currentPage/rightColImg"/>
<xsl:if test="$getimg != ''">
<div id="casestudyimg1">
<xsl:value-of select="$getimg" disable-output-escaping="yes"/>
</div>
</xsl:if>
<xsl:variable name="getcaption" select="$currentPage/rightColImgTxt"/>
<xsl:if test="$getcaption != ''">
<div id="casestudycaption1">
<xsl:value-of select="$getcaption" disable-output-escaping="yes"/>
</div>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<br /><br />
<br /><br />
<xsl:variable name="getimg" select="$currentPage/rightColImg"/>
<xsl:if test="$getimg != ''">
<div id="casestudyimg1">
<xsl:value-of select="$getimg" disable-output-escaping="yes"/>
</div>
</xsl:if>
<xsl:variable name="getcaption" select="$currentPage/rightColImgTxt"/>
<xsl:if test="$getcaption != ''">
<div id="casestudycaption1">
<xsl:value-of select="$getcaption" disable-output-escaping="yes"/>
</div>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Comments
Post a Comment