cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alistair Hopkins <alist...@berthengron.co.uk>
Subject RE: loading external HTML as XML CDATA sections
Date Mon, 07 Aug 2000 12:57:17 GMT
I would say that's an error: it looks like a PI for internal use that's 
getting output my mistake.

I'm afraid that my thing has always worked so I don't understand it very 
well yet!

Sorry I can't help more.

At 08:14 AM 8/7/00 -0400, you wrote:

>Alistair,
>
>I end up with the following PI in front of my escaped text:
>
>         <?xslt-next-is-raw formatter-to-dom?>
>
>Is something broken in the serialization routines?
>
>Paul
>
>
>
> > -----Original Message-----
> > From: Alistair Hopkins [mailto:alistair@berthengron.co.uk]
> > Sent: Monday, August 07, 2000 7:09 AM
> > To: cocoon-users@xml.apache.org
> > Subject: Re: loading external HTML as XML CDATA sections
> >
> >
> > Use disable-output-escaping="yes" in the value-of tags, not text tags.
> >
> >                                  <xsl:value-of
> > select="my_cdata_section"
> > disable-output-escaping="yes"/>
> >
> >
> > At 06:49 AM 8/7/00 -0400, you wrote:
> >
> > >I'm trying to load external HTML in to my XSP pages. The
> > HTML is embedded as
> > >CDATA elements of an XML document. Unfortunately the tokens
> > in the CDATA
> > >region get escaped when I don't want them to be. Thus, the browser
> > >recognizes them as text instead of HTML.
> > >I've implemented a custom tag to parse the XML at run time using the
> > >XSP-supplied DOM parser and to load it in to my XSP page.
> > >(xspCurrentNode.appendChild(....). etc)
> > >How can I convert the CDATA regions to something that the
> > browser will
> > >interpret as HTML?  I've tried using <xsl:text
> > >disable-output-escaping="yes"> but this does not work
> > >(I end up with a PI surrounding my escaped text--is this broken?).
> > >
> > >Here is an example of the XML
> > ><?xml version="1.0"?>
> > ><templateItems template="/Templates/skeleton.dwt">
> > >         <item name="doctitle"><![CDATA[<title>Add Domain</title>
> > >                                         ]]></item>
> > >         <item name="Title"><![CDATA[<SPAN class="inclSize3">iAdd
> > >                                                 Domain
> > </SPAN>]]></item>
> > >         <item name="main"><![CDATA[
> > >                 <form method="POST" action="ProcessDomainForm.xsp"
> > >name="xxx">
> > >                         stuff deleted for brevity
> > >                                 ]]
> > >                 </form>
> > >         </item>
> > ></templateItems>
> > >
> > >Another problem I have is that I've noticed in the DOM tree
> > that the nodes
> > >corresponding to the CDATA regions show up as *siblings* of the item
> > >elements instead of *children* of them. Perhaps I'm misinterpreting
> > >something here, but when I iterate through the children of the
> > ><templateItems> element and print out the result of
> > getNodeName() I see
> > >nodes named both "item" and "#text". I presume that the
> > later are the CDATA
> > >regions.
> > >
> > >In case you're wondering, I'm trying to use Dreamweaver to
> > generate some of
> > >the pages in my application. I've generated a set of
> > template pages in
> > >Dreamweaver which correspond to some XSL skeletons that I've
> > implemented.
> > >Dreamweaver has a mechanism to export the editable regions
> > of a page to XML.
> > >I'm inserting this XML in my XSPs.
> > >I'm doing this so I can use the graphical editing features
> > of Dreamweaver to
> > >design parts of pages (mainly forms), while also incoporating other
> > >data/logic/styling to the pages that I can't do dynamically with
> > >Dreamweaver.
> > >Thanks in advance for any assistance.
> > >Paul
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > >For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message