]> gitweb.factorcode.org Git - factor.git/blob - basis/xml/entities/entities-docs.factor
13cc51bbf26bc9313eca6a99e03b0a270f2ea6a4
[factor.git] / basis / xml / entities / entities-docs.factor
1 ! Copyright (C) 2005, 2009 Daniel Ehrenberg
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax assocs ;
4 IN: xml.entities
5
6 ABOUT: "xml.entities"
7
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 { $subsections
11     entities
12     with-entities
13 }
14 "For entities used in HTML/XHTML, see " { $vocab-link "xml.entities.html" } ;
15
16 HELP: entities
17 { $values { "value" assoc } }
18 { $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." }
19 { $see-also with-entities } ;
20
21 HELP: with-entities
22 { $values { "entities" "a hash table of strings to strings" } { "quot" "a quotation ( -- )" } }
23 { $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" } ;
24