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

  • Thread starter Dennis Westermann
  • Start date
D

Dennis Westermann

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
 
P

Philippe Poulard

Dennis said:
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;))]">
 
D

Dennis Westermann

Philippe Poulard said:
Dennis said:
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;))]">
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top