how to use starts-with

Discussion in 'XML' started by Ragnar Heil, Dec 17, 2003.

  1. Ragnar Heil

    Ragnar Heil Guest

    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
    Ragnar Heil, Dec 17, 2003
    #1
    1. Advertising

  2. Ragnar Heil wrote:

    > 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"")'>"




    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Dec 17, 2003
    #2
    1. Advertising

  3. Ragnar Heil

    Ragnar Heil Guest

    thank you, Martin.
    Now it works!

    regards
    Ragnar

    "Martin Honnen" <>

    > Is that VBScript?? If so
    > strXSLT = strXSLT & "<xsl:if test='starts-with(./@title,""L1"")'>"
    Ragnar Heil, Dec 19, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. A.M

    Offline Quick Starts

    A.M, Jun 25, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    842
  2. Jody Fisher
    Replies:
    0
    Views:
    476
    Jody Fisher
    Jul 29, 2003
  3. Jakob Ehn

    aspx in IFRAME starts multiple session

    Jakob Ehn, Aug 7, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,923
    [MSFT]Allen
    Aug 8, 2003
  4. AW
    Replies:
    4
    Views:
    415
  5. Replies:
    1
    Views:
    255
    Joerg Meier
    Aug 14, 2013
Loading...

Share This Page