Click to See Complete Forum and Search --> : xsl and escaping chars


kante
11-12-2003, 09:32 AM
is there any xsl paradigm to escape characters like (')

and printing out \' ??

thanks

Khalid Ali
11-13-2003, 06:46 AM
If I remember corectly you will need to use HTML entity values or ASCII representation for these chars.such as for
apaostrophe you will need to use

'

kante
11-13-2003, 07:22 AM
thatěs not what i need...

i have one xml file that contains something like this:

<data attr="That's it">

i would like that my xsl trasformation file
....
<xsl:template match="puntate">
<xsl:value-of select="@attr"/>
</xsl:template>
...

to print out
not " That's it "
but "That\'s it "

Khalid Ali
11-13-2003, 05:12 PM
Originally posted by kante
thatěs not what i need...

?????

if you know what you need then how come post a message here?..

when you use HTML entity values,and once the page is proceesed with an XSL processor the resultant browser will show exactly what you intended.
Seems like you are too smart for a solution like that..