allowing : in xslt output

birwin's Avatar

birwin

17 Nov, 2015 06:31 PM

Hi there, we're hoping to use the 'add this' tool in some of our pages. When speaking with the add this support team, they told us we had to use the legacy markup which looks like this:

<a class="addthis_button_compact icon icon-share" addthis:title="{title}" addthis:url="{path}" href="{path}" title="Share"></a>

My issues is that I'm unable to save the xslt format with the : in it. I tried to use <!--#protect and <!--#passthrough and <!--#START-CODE to try to get Cascade to process the {variables} but allow the :

I know I'm missing something small, any help, as always appreciated.

Thanks!

Brendon

  1. Support Staff 1 Posted by Tim on 18 Nov, 2015 03:18 PM

    Tim's Avatar

    Hey Brendon,

    Try adding a namespace for 'addthis' at the top of your XSLT Format. For example:

    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:addthis="http://www.addthis.com/help/api-spec">
    
    Then, you probably won't even need to use any passthrough/protect code sections.

    Let me know if that does the trick.

    Thanks

  2. Support Staff 2 Posted by Tim on 02 Dec, 2015 02:42 PM

    Tim's Avatar

    Hey Brendon,

    Just wanted to make sure you saw [my previous comment](http://help.hannonhill.com/discussions/xslt-formats/6471-allowing-in-xslt-output#comment_38494114). Let me know if that helps.

    Thanks!

  3. 3 Posted by birwin on 02 Dec, 2015 03:10 PM

    birwin's Avatar

    Hi Tim,

    I totally forgot to reply, yes that did the trick! Thank you!

  4. Support Staff 4 Posted by Tim on 02 Dec, 2015 03:12 PM

    Tim's Avatar

    Sweet! Glad that worked, Brendon. Thanks for the update and have a good one!

  5. Tim closed this discussion on 02 Dec, 2015 03:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac