[xwiki-devs] [Idea] Add document XDOM structure content to XML page export
Hi, I think it might be interesting to export a document's structure (the XDOM) to the XML we generate for pages (?xpage=xml), in addition to the unparsed content and the rendered content. This would make it easy for external tools to process page structures and extract required information. More importantly it's something easy to do now. WDYT? This is low priority but I thought it could be interesting. Technically this means writing a DOMListener (which creates a w3c Document from a XDOM). Thanks -Vincent
I would love that. I don't think that using W3C dom is the best performance choice though... using StAX would be considerably better. But then, maybe this goes into some other grounds I don't know of. I would consider making good use of this export and, ideally, it should be "meta linked" (as the RSS stream is). paul Le 30-déc.-08 à 11:28, Vincent Massol a écrit :
I think it might be interesting to export a document's structure (the XDOM) to the XML we generate for pages (?xpage=xml), in addition to the unparsed content and the rendered content.
This would make it easy for external tools to process page structures and extract required information. More importantly it's something easy to do now.
WDYT? This is low priority but I thought it could be interesting.
Technically this means writing a DOMListener (which creates a w3c Document from a XDOM).
On Dec 30, 2008, at 12:01 PM, Paul Libbrecht wrote:
I would love that. I don't think that using W3C dom is the best performance choice though... using StAX would be considerably better. But then, maybe this goes into some other grounds I don't know of.
I would consider making good use of this export and, ideally, it should be "meta linked" (as the RSS stream is).
hmmm... thinking more about it it's not very different from an HTML export so maybe it's not needed after all. Maybe we could simply make the HTML export more easily accessible (right now it creates a zip with the skin)? -Vincent
Le 30-déc.-08 à 11:28, Vincent Massol a écrit :
I think it might be interesting to export a document's structure (the XDOM) to the XML we generate for pages (?xpage=xml), in addition to the unparsed content and the rendered content.
This would make it easy for external tools to process page structures and extract required information. More importantly it's something easy to do now.
WDYT? This is low priority but I thought it could be interesting.
Technically this means writing a DOMListener (which creates a w3c Document from a XDOM).
Paul Libbrecht wrote:
I would love that. I don't think that using W3C dom is the best performance choice though... using StAX would be considerably better. But then, maybe this goes into some other grounds I don't know of.
I would consider making good use of this export and, ideally, it should be "meta linked" (as the RSS stream is).
This could be an interesting media type (e.g., application/vnd.xwiki.org.xdom+xml) for representing pages that could be exposed also through the REST API. -Fabio
On Tue, Dec 30, 2008 at 11:28 AM, Vincent Massol <[email protected]> wrote:
Hi,
I think it might be interesting to export a document's structure (the XDOM) to the XML we generate for pages (?xpage=xml), in addition to the unparsed content and the rendered content.
This would make it easy for external tools to process page structures and extract required information. More importantly it's something easy to do now.
WDYT? This is low priority but I thought it could be interesting.
Technically this means writing a DOMListener (which creates a w3c Document from a XDOM).
I think it should not be in the default xar export format as it's useless informations for exporter but we could have another export format just for that or simply having a event-xml renderer we would use instead of xhtml renderer.
Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (4)
-
Fabio Mancinelli -
Paul Libbrecht -
Thomas Mortagne -
Vincent Massol