Questions tagged [xslt]
for questions about XSLT templates or regarding the XSLT mediator
26
questions
0
votes
3
answers
75
views
XSLT filtering : How to apply XSLT filtering for RTF field across all the schemas in one go
Using Web8.5, There is a requirement to do XSLT filtering for RTF field.
I am able to apply xslt filtering in one schema for RTF field successfully.
However, looking for an option to do it for all ...
3
votes
2
answers
331
views
What has become of Xopus?
SDL bought the XML Editor Xopus several years back. I think it's been morphed into some other product or maybe sold (or just junked?). My company is still paying SDL for our corporate license, but I ...
1
vote
1
answer
139
views
Rendering of Template is taking more time | XSLT Mediator
We have few xml which genereted from Tridion Using C# TBB and XSLT Mediator and we have seen from last few days renderning is taking lot of time.
I didn't change any code since last 1 year , templates/...
0
votes
1
answer
759
views
read comma as a new line through xslt
`
<Telephone>1234 64 79 31 6,345664 01 04 23, 55551 04 24</Telephone>
`
There is a tridion component, which has telephone number as a simple text field.multiple numbers are given in that ...
1
vote
2
answers
107
views
How to show SVG in Xopus island? [closed]
To show images in Xopus Island I use <img src="..."/> in XSL.
To show SVG images I use: <xsl:value-of select="document('...')"/>, but this throws the following error:
Failed to compile ...
0
votes
1
answer
150
views
How to traverse to the particular element attribute
I have an xml like this
<text>
<p>asd</p>
<p>sdd</p>
<p style="text-decoration: underline;">asa</p>
...
4
votes
2
answers
193
views
Why error occurs when XSLT TBB get XML from a package?
I'm making a component template by using XSLT TBBs.
The template contains 1 C# TBB and 2 XSLT TBBS(XSLT1 and XSLT2).
What my template doing is following.
C# TBB generate XML and push it to package
...
2
votes
2
answers
106
views
xslt custom function to get component item xml performance is not good as default document function in XSLT
I am working on templating using XSLT Mediator and wrote custom function to get the ItemXML of Component
because leagcy document function not provide category keyword info in generated xml.
public ...
3
votes
1
answer
150
views
How to read component link field using XSLT in tridion?
How to read component link field using XSLT in tridion?
In a component there is a field called "abc" which is a component link field. In that component link, I have a component with fields "a", "b", "...
4
votes
2
answers
453
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 ...
6
votes
2
answers
345
views
How do you render a component presentation using XSLT page template in Tridion 2013 SP1
I have created a XSLT TBB, which I am using on a page template, and i`m looping over the component presentations, but in the documentation I cant see a function to render the individual component ...
1
vote
1
answer
2k
views
Add string as an attribute in element from xml value in XSLT [closed]
The below xml input which contains the styles and those content should be appended with element as mentioned below in xslt 1.0.
Input XML:
<component>
<content>Sponsored by ...
3
votes
2
answers
462
views
XSLT filtering takes away some html tags
We use default Tridion XSLT for RTF field.
This field should take any html text and save it as is. However, some fields are taken out after XSLT transformation.
For example:
input:
<!--[if gt ...
0
votes
1
answer
1k
views
Reading data from two xml files and returning the value when id in file1 match in file2 [closed]
I have problem with the xslt which is trying to get the value of a nested element when id of file1 matches with the id in file2, then, the value from file2 should be returned in output.xml
I have ...
5
votes
0
answers
186
views
Problem editting rich text formated fields due to missing namespace in XSLT
I'm working with Tridion 2011: when a table is created in a rich text formated field of a Tridion component it works correctly, but when I save the component and I open it again for editting, if I ...
3
votes
1
answer
263
views
XSLT Mediator for Tridion 2013 SP1 not working
Recently I'm working on the migration of Tridion 2011 to Tridion 2013 SP1 and I came up with an error while publishing saying "Could not find the mediator for type text/xsl".
So I moved my existing "...
3
votes
4
answers
6k
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....
7
votes
2
answers
124
views
Cannot edit the Rich Text Formatting options after upgrade from 5.1
After a migration from Tridion 5.1 to SDL Tridion 2011 I am having a problem when I try to edit the features in Rich Text Formatting fields in some schemas. In the schemas with the issue I cannot edit ...
8
votes
2
answers
208
views
Error using 'Extract Binaries from Html' with new 2013 XSLT TBBs
I am using the new out-of-the-box XSLT TBBs offered by Tridion 2013. When I use a DWT TBB to render my component content, and add the 'Extract Binaries from Html' TBB directly after it, everything ...
3
votes
3
answers
968
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 ...
5
votes
2
answers
320
views
XSLT for Tridion field to modify @class and inject a <span> not working
See related question (Using XSLT within Schema to manipulate HTML output from Component)
I have added the following to the XSLT for a content field within a schema...
<template match="*[contains(...
3
votes
1
answer
333
views
Problem creating new tags in RTF filtering XSLT
I'm trying to replace a link with an iframe in a rich text field but I can't get it to work. Somehow, it is not accepting the iframe-tag, or other tags for that matter. In the end, I'm trying to ...
9
votes
3
answers
576
views
Using XSLT within Schema to manipulate HTML output from Component
I am having trouble with some XSLT Filtering. I have changed the Rich text field settings on my schema to include:
<template match="@class[.='cta-button-secondary']">
<attribute name="...
9
votes
2
answers
1k
views
How to restrict html tags in RTF fields?
To restrict the p tags and br tags in Tridion RTF fields I am writing XSLT code. But at any time only one tag I can able to remove with the following code. Please correct me where I am doing wrong.
...
12
votes
2
answers
1k
views
Examples of altered XSL files for Rich-Text fields
I have a question on the default provided XSLT used for rich-text fields. A client is requesting a more rigid XSLT (to block script tags etc.) Anybody has some examples of finished XSL files ?
I've ...
10
votes
3
answers
1k
views
XSLT Component template transformation with external images
We have Multimedia Component that works with external and internal images. When we have external images we have two cases:
External Image that has query string parametes ...
ex: http://yahoo.com/...