dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: xsl and escaping chars

  1. #1
    Join Date
    Nov 2003
    Posts
    2

    xsl and escaping chars

    is there any xsl paradigm to escape characters like (')

    and printing out \' ??

    thanks

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,136
    If I remember corectly you will need to use HTML entity values or ASCII representation for these chars.such as for
    apaostrophe you will need to use

    '
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Nov 2003
    Posts
    2
    thatěs not what i need...

    i have one xml file that contains something like this:

    <data attr="That's it">

    i would like that my xsl trasformation file
    ....
    <xsl:template match="puntate">
    <xsl:value-of select="@attr"/>
    </xsl:template>
    ...

    to print out
    not " That's it "
    but "That\'s it "

  4. #4
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,136
    Originally posted by kante
    thatěs not what i need...
    ?????

    if you know what you need then how come post a message here?..

    when you use HTML entity values,and once the page is proceesed with an XSL processor the resultant browser will show exactly what you intended.
    Seems like you are too smart for a solution like that..
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles