This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Preserving XHTML markup


> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Eric Vitiello
> Sent: Monday, February 04, 2002 7:31 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] Preserving XHTML markup
>
>
> -- Adam Sherman [Mon, 04 Feb 2002 12:37:53 -0500]:
> >(Newbie Alert!)
> >
> >xml:
> ><mycustomtag>
> >    Some html <b>here</b>.
> ></mycustomtag>
> >
> >
> >How do I preserve things so I end up with:
> >
> ><p>
> >    Some html <b>here</b>.
> ></p>
> >
> >My XSLT stylesheet loses all the markup in the children of
> >selected/processed nodes...
>
> your problem is your XML itself.  it should be:

Nope. If it ain't broke, don't fix it.

> <mycustomtag>
> 	<![CDATA[Some html <b>here</b>.]]>
> </mycustomtag>
>
>
> then your XSL should be:
> <p>
> <xsl:value-of select="mycustomtag" disable-output-escaping="true"/>
> </p>

Unportable und not necessary here.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]