473,414 Members | 1,674 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,414 software developers and data experts.

how i can attach a simple apostroph ( ' ) to a string?

Hi,
does anybody know, how i can attach a simple apostroph ( ' ) to a string.
I want to create a string with concat(..), which starts and ends with a
simple apostroph.
The output should be: 'Examplestring'

In my Stylesheet it looks as follows:
<xsl:variable name="hochkomma" select="'&#39'"/>
<xsl:for-each
select="//T_BSL_RBE_RAW[@id1=$rbe_cid][contains($rbe_bea,concat($hochkomma,T
_BSL_RBE_RAW.BSL_ATT_NAME,$hochkomma))]">

I have tried Escape-Sequences and CDATA but i always get an error message.

The head of the Stylesheet looks as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:saxon="http://icl.com/saxon"
extension-element-prefixes="saxon"
version="1.0">

I'm using saxon and fop and i'm working with windows 2000.
Thanks and Greetings
Dennis

Jul 20 '05 #1
2 2443
Dennis Westermann wrote:
Hi,
does anybody know, how i can attach a simple apostroph ( ' ) to a string.
I want to create a string with concat(..), which starts and ends with a
simple apostroph.
The output should be: 'Examplestring'

In my Stylesheet it looks as follows:
<xsl:variable name="hochkomma" select="'&#39'"/>
<xsl:for-each
select="//T_BSL_RBE_RAW[@id1=$rbe_cid][contains($rbe_bea,concat($hochkomma,T
_BSL_RBE_RAW.BSL_ATT_NAME,$hochkomma))]">

I have tried Escape-Sequences and CDATA but i always get an error message.

The head of the Stylesheet looks as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:saxon="http://icl.com/saxon"
extension-element-prefixes="saxon"
version="1.0">

I'm using saxon and fop and i'm working with windows 2000.
Thanks and Greetings
Dennis


Hi,

try this :

<xsl:for-each
select="//T_BSL_RBE_RAW[@id1=$rbe_cid][contains($rbe_bea,concat(&quot;'&quot;,T
_BSL_RBE_RAW.BSL_ATT_NAME,&quot;'&quot;))]">

Jul 20 '05 #2

"Philippe Poulard" <Ph**************@sophia.inria.fr> schrieb im Newsbeitrag
news:be**********@news-sop.inria.fr...
Dennis Westermann wrote:
Hi,
does anybody know, how i can attach a simple apostroph ( ' ) to a string. I want to create a string with concat(..), which starts and ends with a
simple apostroph.
The output should be: 'Examplestring'

In my Stylesheet it looks as follows:
<xsl:variable name="hochkomma" select="'&#39'"/>
<xsl:for-each
select="//T_BSL_RBE_RAW[@id1=$rbe_cid][contains($rbe_bea,concat($hochkomma,T _BSL_RBE_RAW.BSL_ATT_NAME,$hochkomma))]">

I have tried Escape-Sequences and CDATA but i always get an error message.
The head of the Stylesheet looks as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:saxon="http://icl.com/saxon"
extension-element-prefixes="saxon"
version="1.0">

I'm using saxon and fop and i'm working with windows 2000.
Thanks and Greetings
Dennis

Hi,

try this :

<xsl:for-each

select="//T_BSL_RBE_RAW[@id1=$rbe_cid][contains($rbe_bea,concat(&quot;'&quot
;,T _BSL_RBE_RAW.BSL_ATT_NAME,&quot;'&quot;))]">

Jul 20 '05 #3

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

Similar topics

15
by: tabonni | last post by:
Hi I try to grab the checked files from HTML page and then send those PDF files as attachments. It can just send email, there are no PDF files attached. Can anybody point out my error? My...
4
by: Julie J. | last post by:
When working w/ forms and controls, in 95% of the cases, the value of the control is used somewhere in the program (duh!). However, there doesn't seem to be an easy way to attach a value variable...
7
by: Axel Dahmen | last post by:
Hi, within a DataGrid control I'm using a DataTable containing a string column to fill a Hyperlink's href attribute. Unfortunately HttpUtility.UrlEncode() doesn't escape the apostroph character,...
7
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
9
by: ME | last post by:
I have a application that someone else has wrote that runs in a console window. It does not take parameters, but when running it asks three questions and then exits. I would like to write a small...
2
by: harel.moshe | last post by:
Hey everybody, I'm looking for a way to attach non-void events to a server control i wrote. Relevant code parts: the control: mycontrol : WebControl {
3
by: Freddie | last post by:
hi, i try to get the asp.net 2.0 security controls to work with SQL Server 2005 Dev RTM, this is my connetion string in mashine.config <connectionStrings> <add name="LocalSqlServer"...
2
by: calebmichaud | last post by:
Hi I am having trouble understanding how to attach a file or files to a record. I want to (in form view0 allow the user to attach one or more than one file to the associated record, and then...
0
by: DR | last post by:
Unable to start TSQL Debugging. Could not attach to SQL Server Process on 'srvname'. The RPC server is unavailable. I get this error when I try to run a SQL Server Project with a CLR stored...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.