Commit 0b259955 authored by gerd's avatar gerd

Added a comment what to do to implement namespaces. See

the rule start_tag.


git-svn-id: https://godirepo.camlcity.org/svn/lib-pxp/[email protected] dbe99aee-44db-0310-b2b3-d33182c8eb97
parent fc4cfd41
(* $Id: pxp_yacc.m2y,v 1.22 2001/04/24 21:07:13 gerd Exp $ -*- tuareg -*-
(* $Id: pxp_yacc.m2y,v 1.23 2001/04/27 00:00:14 gerd Exp $ -*- tuareg -*-
* ----------------------------------------------------------------------
* PXP: The polymorphic XML parser for Objective Caml.
* Copyright by Gerd Stolpmann. See LICENSE for details.
......@@ -1688,6 +1688,20 @@ start_tag():
* If the <element ... /> form has been parsed, no element is pushed
* on the stack.
*/
/* TODO: Support for namespaces. xmlns attributes must be identified.
* These atts are not added to the regular attribute list, but the
* contained namespace information is interpreted.
* We need a stack tracking namespace declarations (PUSH for every
* start tag; POP for every end tag). Element names and attribute names
* are splitted into src_prefix and localname. The src_prefix is mapped
* to norm_prefix using the mentioned stack. The element and attributes
* are created with names "norm_prefix:localname".
* If configured, the namespace_info field of elements is set from
* the current contents of the namespace stack.
* New config options:
* - namespace_manager = None or Some mng
* - namespace_objects = true or false
*/
tag: Tag_beg
$ {{ let position =
if config.store_element_positions then
......@@ -2363,6 +2377,10 @@ end
* History:
*
* $Log: pxp_yacc.m2y,v $
* Revision 1.23 2001/04/27 00:00:14 gerd
* Added a comment what to do to implement namespaces. See
* the rule start_tag.
*
* Revision 1.22 2001/04/24 21:07:13 gerd
* New option ~alt in from_channel and from_file.
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment