Text Problem

R

rosemm

Hello everyone,

I'm having a problem pulling the specific text that I want from an XML
file.

When we receive this file from it's source several of the fields have
asterisks at the beginning. For what we need to do with the text we
need the asterisks gone. For example, a name field might have "*Smith".
What I need to produce in my text file is "Smith"

I was hoping to do all the processing on my file with XSLT. Does XSLT
have a function in which I can inspect text and manipulate it? If so
what is it and where can I find more information on it.
Thank you all for your help.
 
J

Joris Gillis

Tempore 17:20:37 said:
When we receive this file from it's source several of the fields have
asterisks at the beginning. For what we need to do with the text we
need the asterisks gone. For example, a name field might have "*Smith".
What I need to produce in my text file is "Smith"

For this specific problem,you could use the translate function of Xpath: <xsl:value-of select="translate(.,'*','')"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top