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

Re: Special entity characters in Shift-JIS XSL.

Subject: Re: Special entity characters in Shift-JIS XSL.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 16 Dec 1999 22:11:22 GMT
xslt shift jis

> But wouldn't it be nice to have something written into the spec

which spec? there is nothing that could be put into the xsl spec, as
what you are asking for is a change in XML 1.0, this is why your
suggested markup of using &# syntax will always be fragile and flaky.
As soon as your documents are touched by any xml parser the characters
may (or may not) be written out as character data in the document
encoding rather than as character references, since the xml spec makes
it explicit that these are equivalent when used in element character
data. 


SGML had sdata entities, but they were intentionally dropped from xml.
If you want some information in the document to survive to the
application use an element such as <foo/> or use characters but make
your application treat &#1234; _identically_ to the character with
unicode position 1234;


> document, losing its status as an "entity" that would ultimately be needed
> by the final HTML document.

No. firstly the entities are not needed by HTML you can (or should) be
able to use entities or the characters directly, but in any case the
HTML output method for xslt will use entities however the character was
entered. You can put &#160; or that character directly in a stylesheet
but it typically gets linearised as &nbsp;

David


 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.