473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to use starts-with

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
Jul 20 '05 #1
2 2315


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/

Jul 20 '05 #2
thank you, Martin.
Now it works!

regards
Ragnar

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


Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Navin | last post by:
hi, guys i have query which given below output given below manager personlevel person name 2085 1 Howard Wilson1 2085 2 Howard Wilson2 2085 3 Howard Wilson3 2085 4 Howard Wilson4...
2
by: Roderik | last post by:
hi, I've got a 3 column layout which I want to use. But when testing it appears that the 3rd columnn text starts a little lower then the text in the other columns. This is the case in internet...
3
by: sanjana | last post by:
hi i want to fire an event if the screen saver starts up i have done it using a timer tick event where i have used the api function to detect if screensaver has started..but this means continuous...
2
by: cremoni | last post by:
How can I run some special start up code everytime the asp.net process starts?
5
by: David Thielen | last post by:
Hi; Almost all of the Quick Starts show the code in the .aspx file inside a <script> instead of in a seperate .aspx.cs file. My instinct is that the code should be in a seperate file to keep the...
1
by: byteschreck | last post by:
Hello! I have a solution (Studio 2005) that contains a web service project, and when I debug it, the development server starts and works fine. However, I have other projects in the solution,...
8
by: lovecreatesbea... | last post by:
K&R 2, sec 2.4 says: If the variable in question is not automatic, the initialization is done once only, conceptually before the program starts executing, ... . "Non-automatic variables are...
6
by: Daz | last post by:
Hi, I am trying to find an event listener which will trigger when the pages starts loading, as opposed to when it's finished, or when the DOM content has finished loading. I am sure that such a...
1
by: Jeff Williams | last post by:
I need to monitor for when an exe (application) starts. This will trigger an alert. The application will be one the user starts and monitoring will be only required on the pc they are logged in...
3
by: Saser | last post by:
Hi all bytes out there. I have a few little problems in my program. The program is supposed to help me to not spend too much time of my day at the computer ;) I play a game called...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.