473,406 Members | 2,345 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,406 software developers and data experts.

backquote in xsl file

I'm working with a web application that uses xslt to diplay info
contained in a xml file. The xslt file also contains input fields
to be submitted to the database. When I have a backquote, `, in as
the first character of a field it seems to break the xslt.
For some reason it uses that backquote as ending quote for the value
field.

In the xsl file the input tag reads as follows:

<input type='text' name='fname' DisplayText='First Name' size='`0'
onChange='OnDataChange();' value='{@FIRST_NAME}'>
Jul 20 '05 #1
2 2021
Tony wrote:
I'm working with a web application that uses xslt to diplay info
contained in a xml file. The xslt file also contains input fields
to be submitted to the database. When I have a backquote, `, in as
the first character of a field it seems to break the xslt.
For some reason it uses that backquote as ending quote for the value
field.

In the xsl file the input tag reads as follows:

<input type='text' name='fname' DisplayText='First Name' size='`0'
onChange='OnDataChange();' value='{@FIRST_NAME}'>


Are you using Microsoft Windows, and is your XSLT edit application
doing some unwarranted substitution on the ` character you type,
turning it into a ' character? What happens if you use the double
quote mark instead of the single quote mark for the attribute values?

///Peter

Jul 20 '05 #2
Peter Flynn <pe***@silmaril.ie> wrote in message news:<2g************@uni-berlin.de>...
Tony wrote:
I'm working with a web application that uses xslt to diplay info
contained in a xml file. The xslt file also contains input fields
to be submitted to the database. When I have a backquote, `, in as
the first character of a field it seems to break the xslt.
For some reason it uses that backquote as ending quote for the value
field.

In the xsl file the input tag reads as follows:

<input type='text' name='fname' DisplayText='First Name' size='`0'
onChange='OnDataChange();' value='{@FIRST_NAME}'>


Are you using Microsoft Windows, and is your XSLT edit application
doing some unwarranted substitution on the ` character you type,
turning it into a ' character? What happens if you use the double
quote mark instead of the single quote mark for the attribute values?

///Peter

Yes, I'm using Windows. So I have a xsl file that combines with an xml
file that is presented to a user as an html form, through IE6. Only a part
of the form is shown at a time, using hide and unhide functionality
of DHTML. Basically the web page looks like a tabbed form.
So when a user enters a backquote, `, into a field of the form, in TAB 1
and then clicks TAB 2, then clicks back to TAB 1, the field where the backquote
was typed into no longer exists and instead the actual html code is displayed.
It appears as if the backquote is no longer considered the "value" of the
text box but part of the code. This only happens when the backquote
is the first value in the text box. When a backquote is in any other position
of the text box it is considered the value and therefore doesn't interfere
with the displaying of the code.
Is there a way to encapsulate the backquote or to tell the value field
that a backquote may be used and to use all input as the value only. Perhaps
a way to escape all values typed into that field?

-Tony
Jul 20 '05 #3

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

Similar topics

2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
7
by: Joseph | last post by:
Hi, I'm having bit of questions on recursive pointer. I have following code that supports upto 8K files but when i do a file like 12K i get a segment fault. I Know it is in this line of code. ...
3
by: StGo | last post by:
How can i read/write file's custom attributs(like subject,author...) in C#??? Thanks :))
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.