xml: add some $quotation help.

db4
John Benediktsson 2015-07-18 10:57:45 -07:00
parent 66f6416d34
commit 44ae7264a5
2 changed files with 2 additions and 2 deletions

View File

@ -19,5 +19,5 @@ HELP: entities
{ $see-also with-entities } ;
HELP: with-entities
{ $values { "entities" "a hash table of strings to strings" } { "quot" "a quotation ( -- )" } }
{ $values { "entities" "a hash table of strings to strings" } { "quot" { $quotation ( -- ) } } }
{ $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" } ;

View File

@ -28,7 +28,7 @@ HELP: read-xml-chunk
{ $see-also read-xml } ;
HELP: each-element
{ $values { "stream" "an input stream" } { "quot" "a quotation ( xml-elem -- )" } }
{ $values { "stream" "an input stream" } { "quot" { $quotation ( xml-elem -- ) } } }
{ $description "Parses the XML document, and whenever an event is encountered (a tag piece, comment, parsing instruction, directive or string element), the quotation is called with that event on the stack. The quotation has all responsibility to deal with the event properly. The encoding of the stream is automatically detected, so a binary input stream should be used." }
{ $see-also read-xml } ;