En l'instant prĂ©cis du 23/03/07 11:54, Jonathan Harley s'exprimait en ces termes: >> moreover the xml parser itself has no notion of the entity and >> will fail to parse it > the &...; entities are read by xml parser and never seen by facelets, > > Not true, as is defined in the XHTML DTD. As long as the > doctype references this, the XML parser understands it. There are lots of ways to defines as an entity for the parser, but unless you explicitly define it using an included dtd or other mecanism, it does not exist. And what ever you defined entities to, they are used only by parser, facelets does not see the entities, only the character(s) or node(s) represented by that entity. > >> However, non breakable space is only a special character, that is also >> reachable via it's unicode value, so you can simply write >> >>   >> > The XHTML standard mandates that hex references must use lower > case, so you should really put   (or use non-hex i.e.  ), > but most browsers would understand upper case I guess. > Facelets does not take an xhtml input but an xml template made of various namespaces. Specs of xml 1.0 states: [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'
We don't care about browser as our reader is an xml parser that will feed facelets view handler. Even if you write   in your facelets template, you probably won't get the same in facelets output but, as i said, an unicode character that has same behaviour. Anyway, i think the original poster has his answers now :D

