Re: Problems with XM_CALLBACKS_TO_TREE_FILTER
"Franck Arnaud" <[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Message-ID | <[email protected]> |
Bernd Schoeller: > I have tried to implement an application using the XM_EIFFEL_PARSER > together with the XM_CALLBACKS_TO_TREE_FILTER, to produce a > XM_DOCUMENT from an xml-file. > > I get the following precondition violation in > XM_CALLBACKS_TO_TREE_FILTER: > Feature: on_start_tag > Tag: unresolved_namespace_is_void > > The precondition says that the namespace parameter must noch be Void > when 'has_resolved_namespace' is set (which is always 'True' in the > tree filter). You must also have a namespace resolver filter between the parser and the tree filter, that's what the precondition explains. The parser issues unresolved events, because namespaces are optional and not all XML application need them, and the implementation fits well in event filter. See XM_TREE_CALLBACKS_PIPE for a ready made solution. ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h4ld6sj/M=362335.6886445.7839731.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124334082/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font> --------------------------------------------------------------------~-> To Post a message, send it to: [email protected] To Unsubscribe, send a blank message to: [email protected] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/gobo-eiffel/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/