DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help in HTML Decoding

Hybrid View

  1. #1
    Rohit Wason Guest

    Help in HTML Decoding


    This post of mine went unanswered a couple of weeks back. I need an urgent
    solution. Any help would be appriciated.
    Tkanks in anticipation
    Rohit

    "I have HTMLEncode()ed HTML content (stored in a table) to pass as XML data
    thru ASP.
    At the client end, I want to render the HTML as Output in some DIV/TABLE.

    My problem is that XSL is not able to identify the content as html (since
    it has been encoded <,> etc)
    Is there any way, I can render that? <![CDATA[]]> doesn't work (or at least
    I dunno the way to use it here)

    Any Help?
    Rohit"

  2. #2
    Manish Gupta Guest

    Re: Help in HTML Decoding


    "Rohit Wason" <rohitw@futuresoftindia.com> wrote:
    >
    >This post of mine went unanswered a couple of weeks back. I need an urgent
    >solution. Any help would be appriciated.
    >Tkanks in anticipation
    >Rohit
    >
    >"I have HTMLEncode()ed HTML content (stored in a table) to pass as XML data
    >thru ASP.
    >At the client end, I want to render the HTML as Output in some DIV/TABLE.
    >
    >My problem is that XSL is not able to identify the content as html (since
    >it has been encoded <,> etc)
    >Is there any way, I can render that? <![CDATA[]]> doesn't work (or at least
    >I dunno the way to use it here)
    >


    Rohit:
    Put the HTML content that has > or< between <xsl:comment><![CDATA[ here
    ]]></xsl:comment>. I think your problem will be solved
    >Any Help?
    >Rohit"



  3. #3
    Rohit Wason Guest

    Re: Help in HTML Decoding


    >Rohit:
    > Put the HTML content that has > or< between <xsl:comment><![CDATA[ here
    > ]]></xsl:comment>. I think your problem will be solved
    >>Any Help?
    >>Rohit"

    >


    Manish,
    I did explained, I've used CDATA[], but it doesn't work here. Anyways, mine
    was an urgent problem, I spent time and founda solution to it. Publishing
    static HTML (like my case) thru XML docs requires a couple of thinks to keep
    in mind:

    . The HTML content should be XHTML (<BR/> <HR/> and so on..). We can take
    care of this at the time of inserting the content into DB
    . We should use <xsl:copy> syntax to copy the content as is in the form of
    "HTML nodes"


    That's what works in my case. CDATA[] (sorry) fails to work in this scenario.
    It simply tries to render my contents as is on the display:
    "<B>Message</B>. Hello <I>World</I>."

    Rohit


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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center