I'm still not sure why the browser can't do it. Some browsers don't have a tree view, but are you aware that cq's 'explore' feature does its own browser-side XSLT-based tree-view, for safari and chrome? The browser part is https://github.com/marklogic/cq/blob/master/xml-tree.xsl - it could have been done in XQuery too, but I wanted to offload the work onto the browser.
-- Mike On 28 May 2011, at 13:31 , Tim Meagher wrote: > It's a custom xquery app with an XML-to-HTML viewer given any doc($uri). > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Michael > Blakeley > Sent: Saturday, May 28, 2011 4:06 PM > To: General MarkLogic Developer Discussion > Subject: Re: [MarkLogic Dev General] Discovering element namespaces > > How would this differ from the tree view that most browsers (and XML > editors) implement? Have you done any UI mockups? > > -- Mike > > On 28 May 2011, at 12:10 , Tim Meagher wrote: > >> Hi Folks, >> >> I would like to develop a general purpose browser that allows me to >> open any XML document and to recursively list the contents of each >> element and attribute in a browser, but it seems to me that is >> difficult to do without being able to predetermine namespaces starting >> with the root element. Any ideas? >> >> Thank you! >> >> Tim Meagher >> >> >> _______________________________________________ >> General mailing list >> [email protected] >> http://developer.marklogic.com/mailman/listinfo/general >> > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
