Page 1 of 1

Error(or not?) to view link in html from .xsl file

Posted: Thu Sep 22, 2022 7:42 am
by Dragos
Hi
I have extension to use file.xsl.
The output method is html.
When i write directly in xsl :

Code: Select all

<p class="link">For more information  follow <a href="http://www.mywebsite.com" target="_blank">this link</a></p>
all work correct. But when i change text and link with variable from extension and use edit property hyperlink box like:

Code: Select all

<p class="link"><xsl:value-of select="LINK" /></p>
when link was entered manually from the extension like:

Code: Select all

For more information  follow [url]this link[/url].

the link doesn't work.
In the source of the web page, all the signs in the link appear coded.

Code: Select all

<p class="link">&lt;font style="color:#000000;font-family:MS Shell Dlg;font-size:16px"&gt;For more information  follow &lt;a href="http://www.mywebsite.com"&gt;this link&lt;/a&gt;&lt;/font&gt;</p>
Do you have any suggestion?
Thank you very much.

Re: Error(or not?) to view link in html from .xsl file

Posted: Thu Sep 22, 2022 9:00 am
by Pablo
There is no support on creating extensions.
But this is not directly related to Extension Builder.
It is related to how XSL templates work.
https://www.w3schools.com/XML/xsl_elementref.asp

Re: Error(or not?) to view link in html from .xsl file

Posted: Tue Sep 27, 2022 3:46 pm
by Dragos
But is it possible to remove the font color and size from Edit/Rich text or HTML Boxtext?
Whay when publish page all signs from link are encode in Html my xsl have output method="html"

Re: Error(or not?) to view link in html from .xsl file

Posted: Tue Sep 27, 2022 4:02 pm
by Pablo
Sorry, that is not possible.