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

Discussion in 'XML' started by Dennis Westermann, Jul 9, 2003.

  1. 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
     
    Dennis Westermann, Jul 9, 2003
    #1
    1. Advertising

  2. 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;))]">
     
    Philippe Poulard, Jul 9, 2003
    #2
    1. Advertising

  3. That works. Thanks!

    "Philippe Poulard" <> schrieb im Newsbeitrag
    news:begngv$jdb$...
    > 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;))]">
    >
     
    Dennis Westermann, Jul 9, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Axel Dahmen

    Correctly Escape Apostroph in URI?

    Axel Dahmen, Sep 5, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    2,842
    Axel Dahmen
    Sep 15, 2005
  2. oziris
    Replies:
    2
    Views:
    677
    ~kurt
    May 10, 2007
  3. Replies:
    0
    Views:
    667
  4. Warren Tang
    Replies:
    1
    Views:
    561
    Warren Tang
    Sep 17, 2008
  5. eAddict
    Replies:
    8
    Views:
    947
    Arne Vajhøj
    Nov 5, 2011
Loading...

Share This Page