Hi
I've been trying to make a XSLT macro which can be used inside a richtext editor, and i just can't get it to work.
this is what i've done so fare.
I started out with making a XSLT and macro, and added a "imageUrl" property to the macro under parameters tab,
her's my xslt code
<?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" xmlns:tagsLib="urn:tagsLib" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib "> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:param name="currentPage"/><xsl:variable name=“imageUrl” select=“/macro/imageUrl”/>
<xsl:template match=“/”>
<xsl:value-of select=“$currentPage/@id”/>
<xsl:value-of select=“$imageUrl”/>
</xsl:template>
</xsl:stylesheet>
but when i add this macro in my richtext editor and publish,.. nothing,.. nothing gets rendered,..
what am I missing.. ?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/10289-how-to-make-a-xslt-macro-that-can-be-used-inside-a-richtext-editor