Related Pages

My Tridion Newsletters

SDL Tridion Nominate your MVP Candidate

Sign up and get a newsletter when new Tridion stuff is added to the site


SDL Tridion Nominate your MVP Candidate

If you find the content of this page useful, please nominate me for the SDL Tridion MVP award.

Filtering Tridion Content with XSLT

Controlling Pasted In Content

An editor wants to paste some content into Tridion, but we don't want all of the hidden extra baggage that can break our published pages.

This is where the XSLT Filter comes to the rescue!

Content that is cut from Microsoft Word or Excel contain a large amount of application specific tags that you don't want in you published web pages. Copying content from old HTML pages may contain outdated tags or formatting tags that will break your web site style if you don't remove them.

You can control the HTML markup pasted in by the editor with the XSLT Filter in the Tridion Component Schema.

This filter controls exactly what is pasted in and is typcally used to :

  • remove deprecated tags such as <font> <center> <basefont>
  • convert the markup tags such as <b> to <strong> or <i> to <em>
  • remove unwanted tags such as <span> <div> <br> <hr>
  • restrict the range of tags such as <h1> <h2> <h3>
  • control tag attributes such as <tag id="myid" title="sometitle"/>
  • remove MS Office tags that come for word or excel, a line containing a single space is encoded as
    <p class="MsoNormal"><span lang="EN-GB" style="font-family:Garamond"><o:p>

Created: Thursday 27th May 2010 11:33 PM
Last Modified: Tuesday 29th June 2010 4:09 PM LinkedIn link: View Chris Mills' profile on LinkedIn
Valid XHTML 1.0! Valid CSS! Level A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0