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

RE: nbsp is not that hard, folks

Subject: RE: nbsp is not that hard, folks
From: "Américo Albuquerque" <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Sat, 9 Nov 2002 14:51:27 -0000
xml nbsp
That makes sense, thanks :)

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Brown
Sent: Saturday, November 09, 2002 1:49 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  nbsp is not that hard, folks

Américo Albuquerque wrote:
> So, what you are saying is that &nbsp; is to XML and HTML has "#define

> nbsp" is to C??

Sigh. No. Think of it like this:

In XSLT you may have <xsl:variable name="nbsp" select="'&#160;'"/>. This
is like <!ENTITY nbsp "&#160;"> in an XML DTD.

In XSLT you may have $nbsp in an XPath expression.
This is like &nbsp; in an XML or HTML document.

In XML you can define your own entities. By default, you only get 5:
quot, apos, amp, lt, gt. Each of these corresponds to just 1 character:
", ', &, <, and >, respectively.

In HTML you cannot define your own. But by default, you get about 252:

quot, amp, lt, gt, nbsp, iexcl, cent, pound, curren, yen, brvbar, sect,
copy, ordf, laquo, not, shy, reg, macr, deg, plusmn, sup2, sup3, acute,
para, middot, cedil, sup1, ordm, raquo, frac14, frac12, frac34, iquest,
Agrave, Aacute, Acirc, Atilde, Auml, Aring, AElig, Ccedil, Egrave,
Ecirc, Euml, Igrave, Iacute, Icirc, Iuml, ETH, Ntilde, Ograve, Oacute,
Otilde, Ouml, times, Oslash, Ugrave, Uacute, Ucirc, Uuml, Yacute, THORN,

szlig, agrave, aacute, acirc, atilde, auml, aring, aelig, ccedil,
eacute, ecirc, euml, igrave, iacute, icirc, iuml, eth, ntilde, ograve,
ocirc, otilde, ouml, divide, oslash, ugrave, uacute, ucirc, uuml,
thorn, yuml, fnof, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Eta, Theta,
Kappa, Lambda, Mu, Nu, Xi, Omicron, Pi, Rho, Sigma, Tau, Upsilon, Phi,
Psi, Omega, alpha, beta, gamma, delta, epsilon, zeta, eta, theta, iota,
lambda, mu, nu, xi, omicron, pi, rho, sigmaf, sigma, tau, upsilon, phi,
psi, omega, thetasym, upsih, piv, bull, hellip, prime, Prime, oline,
weierp, image, real, trade, alefsym, larr, uarr, rarr, darr, harr,
lArr, uArr, rArr, dArr, hArr, forall, part, exist, empty, nabla, isin,
ni, prod, sum, minus, lowast, radic, prop, infin, ang, and, or, cap,
cup, int,
there4, sim, cong, asymp, ne, equiv, le, ge, sub, sup, nsub, sube, supe,

oplus, otimes, perp, sdot, lceil, rceil, lfloor, rfloor, lang, rang,
spades, clubs, hearts, diams, OElig, oelig, Scaron, scaron, Yuml, circ,
ensp, emsp, thinsp, zwnj, zwj, lrm, rlm, ndash, mdash, lsquo, rsquo,
ldquo, rdquo, bdquo, dagger, Dagger, permil, lsaquo, rsaquo, euro.

Each of these has the replacement text of just one character. That's why
they are called "character entities". They cover a variety of Unicode
characters all the way up to &#9830;.

   - Mike
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume:

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

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

Current Thread


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.
First Name
Last Name
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.