Questions tagged [filtering-xslt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
2answers
155 views

Could i use xsl:include in my rtf xslt filter?

Can i use the <xsl:include url="some.xslt"/> tag in the rtf xslt format area in a schema, to always include the same xslt and only have to change it once instead of in all my templates? And if ...
9
votes
5answers
1k views

Rich Text - How to add in missing <p> tags?

We have an issue where our HTML/CSS requires RTF content to be wrapped in <p> tags in order for some design elements to work correctly. We had some code which added these in if the string did ...
8
votes
2answers
275 views

Rich Text Editor - Moving <span> outside of <a>

I have the following mark-up in a rich text field in Tridion: <a href="#" class="cta-button-secondary">My text</a> I have filtering XSLT on the field that transforms the mark-up into ...
6
votes
3answers
399 views

Converting value of XhtmlField according to FilterXslt

I'm copying components between versions of essentially the same schema, of which the latter has a stricter XSLT attached to it's RTF field. The code (TOM.Net): value = ((TextField)oldField).Value; ...
4
votes
1answer
820 views

Word/HTML cleanup XSLT for Rich Text Field example

Does anyone have a good, production proven XSLT for cleaning up pasted content in Rich Text Fields (Tridion 2013 SP1). I had a hunt around, could only find this one from Bart which may be good enough, ...
4
votes
2answers
274 views

strip-space not working in XSLT 2013

I am using the code below to strip white spaces from my genereated XML, but it is giving me the following error: White space cannot be stripped from input documents that have already been loaded I ...
3
votes
3answers
4k views

Filtering XSLT replace is adding unwanted xmlns-attribute for one element

I'm using Tridion 2011 SP1 HR1 and have created a new schema with one RTF field and have applied the following filtering XSLT: <stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" version="1....
3
votes
3answers
887 views

Tridion adds unwanted xmlns-attribute to new html tags in RTF filtering XSLT

I'm replacing links in a RTF with an iframe wrapped with a div. I'm using <element name="div"> to create new tags. This works fine. However, the XML rendered when i switch to the source tab ...
2
votes
2answers
273 views

Prevent <style> tags from being removed by RTF fields

When moving content from an existing CMS into Tridion, I have run across <style> blocks in the RTF fields which the Tridion RTF strips out. Is there a way to prevent this?
2
votes
1answer
65 views

Filtering XSLT in Tridion not evoking custom replacement string

I am trying to replace a particular string in the href attribute within a Tridion RTF source. I built the following XSLT and it works without issues, when I run locally but the replacement is not ...