|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Entities
On Tue, Feb 22, 2000 at 01:10:17PM -0500, Ezra Wolfe wrote: > Does anyone know how to use HTML entities in an XSL document? Is there an > escape command? > > For example: > > & is an ampersand (&) > is a non-breaking space. XSLT is XML, so you get the XML entities for free. to generate an entity reference in yr output doc, do &amp; &nbsp; or: > How can I put white space directly in the XSL, not the XML? i believe: <xsl:text> </xsl:text> will (for example) insert a single space into the output. i have a related question. i wish to do an identity transformation on some XML (which is HTML-ish). i need to pass through (and other entity references) unmodified, but i'm having problems. first off, i encountered the UTF-8 encoding with XT issue, which i can work around, but i'm more concerned that i can't seem to reproduce the reference -- for example, becomes a space character. how can i preserve these, that is, emit a &entity; for every instance of &entity; encountered? cheers jonathan -- .sigbot at <contact-j@xxxxxxxxxxxxxxx> for phone/address etc +----------------+-------------------------------------------+ | ECHELON Fodder | T2S2 TSCM ASVC Unit 669 PA598D28 | | | Offensive Information Warfare | +----------------+-------------------------------------------+ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








