[thelist] XML / XSLT outputting HTML entities
Andrew Martin
andrewdmartin at gmail.com
Sat Apr 23 18:16:57 CDT 2005
Yeah, it just rendered the <br /> literally -- instead of line-breaks,
it showed <br />.
Or should I use <br /> instead?
Andrew
On 4/23/05, Rick den Haan <rick.denhaan at gmail.com> wrote:
> Hi Andrew,
>
> Have you tried putting it in a CDATA section[0]? E.g.:
>
> <entry>
> <body><![CDATA[this is part of an xml file<br /><br />etc]]></body>
> </entry>
>
> HTH,
> Rick.
>
> [0]: http://www.w3.org/TR/REC-xml/#sec-cdata-sect
>
> On 4/24/05, Andrew Martin <andrewdmartin at gmail.com> wrote:
> > I've got an xml file with HTML tags in the elements; something like this:
> > <entry>
> > <body>this is part of an xml file<br /><br />etc</body>
> > </entry>
> >
> > When it's rendered, it just shows up all on one line and strips the
> > HTML. I've tried to change the xml output method from xml to html but
> > that just renders the actual html entities rather than the line
> > breaks.
> >
> > Is there a good way around this?
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list