cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Per Kreipke" <...@onclave.com>
Subject RE: HTML inside XML
Date Tue, 17 Oct 2000 17:56:31 GMT
> > > > You should be able to simply enclose the HTML inside a
> CDATA section.
> > > >
> > > > XML allows marked off portions of text. The sections are
> marked off with
> > > > PCDATA (parsed canonical data) or CDATA (unparsed canonical data).
> > > >
> > > > Simply surround your text section like this:
> > > >
> > > > <![CDATA[
> > > > your <funky> text here
> > > > ]]>
> > >
> > > nope, it'll be serialized using entities.
> >
> > True, I didn't pay attention to his intent. You (and Robin) are
> saying that
> > any markup content that isn't also well-formed can't be run
> though Cocoon.
> >
> > As an aside, for content without markup, wouldn't one need
> CDATA sections to
> > fix emails like below?
> >
> > "If Bill & Bob want to meet on sunday, that's great."
>
> only if that text appears directly in the xml file. if you're including it
> from a dynamic data source, e.g. with the mail logicsheet, the string
> doesn't need to be parsed because it's being added to the DOM object (or
> SAX stream) programmatically.

Ok, I understand how that could be. But downstream, when the XSL processor
gets it, how can it not be mal-formed?

Per.


Mime
View raw message