1 ! Copyright (C) 2005, 2009 Daniel Ehrenberg
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax ;
8 ARTICLE: "xml.entities" "XML entities"
9 "When XML is parsed, entities like &foo; are replaced with the characters they represent. A few entities like & and < are defined by default, but more are available, and the set of entities can be customized. Below are some words involved in XML entities, defined in the vocabulary 'entities':"
10 { $subsection entities }
11 { $subsection with-entities }
12 "For entities used in HTML/XHTML, see " { $vocab-link "xml.entities.html" } ;
15 { $description "A hash table from default XML entity names (like " { $snippet "&" } " and " { $snippet "<" } ") to the characters they represent. This is automatically included when parsing any XML document." }
16 { $see-also with-entities } ;
19 { $values { "entities" "a hash table of strings to strings" } { "quot" "a quotation ( -- )" } }
20 { $description "Calls the quotation using the given table of entity values (symbolizing, eg, that " { $snippet "&foo;" } " represents " { $snippet "\"a\"" } ") on top of the default XML entities" } ;