using Translate() function of XSLT ...

Hi guys

I have an xml document that i am converting into an html document using XSLT. I need to replace the XML new lines(&#10) with html new lines (

) while the xslt transform takes place on my xml document.

For this I have found the translate function of XSLT but I need to use it on a specific tag and not all the tags in the xml document.

<ExampleTag>

1 first line

2 second line

3 third line

</ExampleTag>

translate(string, replaced_text, replacement_text)

so I need to get my tags value in the variablestring which is:

1 first line

2 second line

3 third line

andreplaced_text: '&#10' andreplacement_text: '

'

but the problem is XSLT syntax is so bad that i just cant devote enough time to learn it. Any suggestions for the syntax guys? an example would be extremely useful.

cheers :)

[953 byte] By [sanna] at [2007-11-26 12:54:31]
# 1
> but the problem is XSLT syntax is so bad that i just cant devote enough time to learn it.So you're asking us to do your work for free?You have two choices:1. Learn XSLT2. Use some other tool.
DrClapa at 2007-7-7 16:46:32 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
lolsCould you point me to a good online document or some thing please?cheers
sanna at 2007-7-7 16:46:32 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

Hey

after a bit of struggle came up with this:

<xsl:template match="ExampleTag">

<xsl:variable name="string" select="."> </xsl:variable>

translate(string, "&#10", "
" )

<xsl:value-of select="$string"/>

</xsl:template>

but its not working :(

any suggestions?

sanna at 2007-7-7 16:46:33 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...