[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Why XT doesn't use the DOM
Don Park wrote: > 3. Source information (line and URL) > > This is probably worth considering. Something like: > > interface Document2 { > attribute url; > } > > interface Node2 { > Location getLocation(Node node); > // returns node's physical location information using Node > ... > } > > interface Location : Node { > // node value could be XML attribute list syntax like this: > // i.e. "href='foobar.xml' line='123' col='22' pos='23123'" > // getAttributes could return NamedNodeMap to attributes > DOMString nodeURL; > long lineNumber; > long lineOffset; > long streamOffset; > } I really don't like using line numbers for this other than in an editing environment because if you are programmatically building up a DOM tree, line numbers do not apply. However some sort of XPOINTER mechanism for flagging errors would be great IMHO. In other words location is defined by an XPointer rather than a line number relative to the owner document. I think this sort of error flagging would be much more useful. Tyler XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|