how to use starts-with

Ragnar Heil

Usenet Archive
Joined
Sep 10, 2003
Messages
25
Reaction score
0
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
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
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

Forum statistics

Threads
548,208
Messages
3,104,798
Members
249,594
Latest member
henrywalsh

Latest Threads

Top