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

Re: Newbie questions

Subject: Re: Newbie questions
From: Chris Maden <crism@xxxxxxxxxxx>
Date: Sat, 28 Nov 1998 16:33:12 -0500 (EST)
Re: Newbie questions
[\"Pasqualino \\\"Titto\\\" Assini\"]
> I need to output a " but if I write any of those I get &quot;
> instead:
> 
> what is the solution ?

There isn't one in XSL.  XSL is designed for transformation into XML,
and in XML, " and &quot; are exactly identical.  The only reason it
could matter for you is if you're trying to produce something other
than XML, in which case, you should take the output of your XSL
processor and run it through some normalizer which dereferences your
entities.

> Also, what is the difference between:
> 
> <xsl:template match="/">
>    <xml:text>Some text</xml:text>
> </xsl:template>
> 
> and
> 
> <xsl:template match="/">
>    Some text
> </xsl:template>

In this case, there is no difference.  XSL processors may ignore
whitespace unless that behavior is overridden.  So the whitespace
around "Some text" in the latter example is ignored, leaving a result
identical to the former example.  However, if you'd placed a new line
*inside* the <xml:text> element, you would see a difference.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


 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.