Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > how i can attach a simple apostroph ( ' ) to a string?

Reply
Thread Tools

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

 
 
Dennis Westermann
Guest
Posts: n/a
 
      07-09-2003
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
xmlnssl="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



 
Reply With Quote
 
 
 
 
Philippe Poulard
Guest
Posts: n/a
 
      07-09-2003
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
> xmlnssl="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)]">

 
Reply With Quote
 
 
 
 
Dennis Westermann
Guest
Posts: n/a
 
      07-09-2003

"Philippe Poulard" <(E-Mail Removed)> schrieb im Newsbeitrag
news:begngv$jdb$(E-Mail Removed)...
> 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
> > xmlnssl="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)]">
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for a simple JAVA code to attach to SQL via ODBC eAddict Java 8 11-05-2011 01:45 AM
Is there any shortcut for "Debug > Attach > Attach to aspnet_wp.exe"? Warren Tang ASP .Net 1 09-17-2008 03:46 PM
attach agent to applet running in firefox (attach api) craiget@gmail.com Java 0 06-14-2007 12:28 AM
Correctly Escape Apostroph in URI? Axel Dahmen ASP .Net 7 09-15-2005 12:58 AM
Remote debugging ASP.NET fails. I can attach to processes but not set breakpoints. Peter Strĝiman ASP .Net 0 12-06-2004 01:23 PM



Advertisments