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

RE: output escaping (i just dont get it)

Subject: RE: output escaping (i just dont get it)
From: "McKeever, Marty" <marty.mckeever@xxxxxxxxxxxxxxxxx>
Date: Fri, 26 Oct 2001 10:13:14 -0400
jsp get output
> > Anyway, to get the result that i wanted, i changed the rule 
> as follows:
> > <h2><xsl:value-of select="$heading"
> > disable-output-escaping="yes"/></h2>
> 
> using d-o-e is almost always the wrong thing to do.
> here you surely just want <xsl:value-of select="$heading"/> 
> and pass in
> the value of the heading as a string.
> 

Ahh but what i WANT is to require that these heading strings are always
created as valid xml data.  

They originate as attributes to custom jsp tags (ie <jsp:content
heading="This &amp; That" src="foo.xml" />) which is "nearly" a valid XML
format.

The longer term goal being to create a 'page builder' application that
stores input data in an xml structure, passed to an XSLT that outputs the
actual JSP file.

So you can see why i would want to require these attributes to contain
proper entities.  Now, is my d-o-e solution a valid way to enforce this
rule, or not?


 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.