[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Preserving XHTML markup

Subject: RE: Preserving XHTML markup
From: Eric Vitiello <xsl-list@xxxxxxxxxxxx>
Date: Mon, 4 Feb 2002 14:08:19 -0500
julian vitiello 2005
-- Michael Kay [Mon, 4 Feb 2002 18:32:11 -0000]:
>>?On 02/04/2002 07:01:59 PM +0100, Markus Spath wrote:
>>?>?<xsl:template match="mycustomtag">
>>?>??<p>
>>?>???<xsl:copy-of select="." />
>>?>??</p>
>>?>?</xsl:template>
>>
>>?Sorry, that's what I tried first. Thing is, it does the <p>?bit,
>>but
>>?doesn't preserve markup: you get:
>
>xsl:copy-of does preserve the markup. Perhaps you did xsl:value-of by
>mistake?


this brings up an interesting question.

which is preferred, using xsl:copy-of or putting the XML in CDATA tags, and using value-of?

I suppose it depends quite a bit on if the data is content or construction - i.e. is his "Some HTML <b>here</b>"

actual content, or is it part of the structure of the XML document?

I think my position is that his would probably be content, therefore the data should be in a CDATA block, and he should use value-of.... of course if he doesn't have control over the XML, then I guess he must use copy-of.

so, am I off base in my assessment of the line between content and structure?


---
Eric Vitiello
Perceive Designs
<www.perceive.net>


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.