how to use starts-with

R

Ragnar Heil

Hi,

just a simple question, I am not sure about the right way of using
quotes within a string

I want to delete the first 4 letters of the title if the title begins
with "L1"

strXSLT = strXSLT & "<xsl:if test='starts-with(./@title,L1)'>"
strXSLT = strXSLT & "<xsl:value-of select='substring(./@title, 4, 10)'
/>"
strXSLT = strXSLT & "</xsl:if>"

Could you please check my few lines?

regards
Ragnar
 
M

Martin Honnen

Ragnar said:
Hi,

just a simple question, I am not sure about the right way of using
quotes within a string

I want to delete the first 4 letters of the title if the title begins
with "L1"

strXSLT = strXSLT & "<xsl:if test='starts-with(./@title,L1)'>"

Is that VBScript?? If so
strXSLT = strXSLT & "<xsl:if test='starts-with(./@title,""L1"")'>"
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top