Hi there
I need a hint to avoid translating all Trademarks and Registered and other
special signs/symbols into urlencoded strings.
Is it possible that somebody has already made a XSL file where all special
signs are translated into urlencoded signs? Or are there other possibilities
with Sablotron?
I checked the
http://www.biglist.com/cgi-bin/wilma/wilma_glimpse/xsl-list?query=urlencode&
Search=Search&errors=0&maxfiles=50&maxlines=10&.cgifields=lineonly&.cgifield
s=filelist&.cgifields=case&.cgifields=partial&.cgifields=restricttofiles
but didn't find an answer that suits my case. I don't want to use PHP for
this for example, just plain XSL.
My problem is that my title comes from a database and can contain trademarks
and other special symbols/signs. I need the title for several things like a
simple:
<xsl:value-of select="title">
but also as link (I translate the spaces in a title and the ? already.
<a href="{translate(translate(title,' ','_'),'?','~')}">
<b><xsl:value-of select="title"/></b>
</a>
But now the people who enter the data use also special symbols - so before
starting and translating everything, I wanted to ask you if you have a
better solution.
All the best
Roger