XSLT: need some help on entities

Discussion in 'XML' started by Romeo Disca, Jul 29, 2003.

  1. Romeo Disca

    Romeo Disca Guest

    Hello,

    i just want to make an identity transformation
    of an xhml document and i don't want entities to be resolved.

      should result in   and not ' '.

    Is there any chance to perform this.

    Thanks.

    Romeo
    --
    Romeo Disca
    Email:
     
    Romeo Disca, Jul 29, 2003
    #1
    1. Advertising

  2. Romeo Disca

    Mike Brown Guest

    Re: need some help on entities

    Entity resolution occurs during XML parsing; it is part of the standard. You
    want nonconformant behavior? Why does it matter? A no-break space is a
    no-break space, regardless of whether it is encoded directly or written as a
    numeric character reference or entity reference.

    If you're talking about doing your identity transformation with XSLT,
    setting encoding="us-ascii" in your xsl:eek:utput element will help. At least,
    you'll get   or   when the output method="xml". You can
    post-process this with a simple sed, perl or python script to replace with
     .

    Some XSLT processors offer a special XHTML output method (which is
    nonstandard), which will probably appear to do what you want. (emphasis on
    "appear"...). Some XSLT processors offer additional features to tweak the
    output of the standard xml output method a bit, but they're not going to
    turn non-ASCII characters into XHTML entity references for you.

    "Romeo Disca" <> wrote in message
    news:bg5vnd$gp6$05$-online.com...
    > Hello,
    >
    > i just want to make an identity transformation
    > of an xhml document and i don't want entities to be resolved.
    >
    > &nbsp; should result in &nbsp; and not ' '.
    >
    > Is there any chance to perform this.
    >
    > Thanks.
    >
    > Romeo
    > --
    > Romeo Disca
    > Email:
     
    Mike Brown, Aug 3, 2003
    #2
    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. Iain

    Entities and XSLT

    Iain, Mar 4, 2004, in forum: XML
    Replies:
    2
    Views:
    389
  2. slberry
    Replies:
    0
    Views:
    428
    slberry
    May 15, 2004
  3. Andy Dingley

    Generating entities from XSLT

    Andy Dingley, Jun 4, 2004, in forum: XML
    Replies:
    2
    Views:
    526
    Andy Dingley
    Jun 7, 2004
  4. Jim Higson
    Replies:
    3
    Views:
    250
    Eric Amick
    Jul 25, 2004
  5. Albert
    Replies:
    1
    Views:
    141
    Thomas 'PointedEars' Lahn
    Feb 17, 2006
Loading...

Share This Page