support for including XML/HTML sections/xpath refs in dexy docs
Reported by Ana Nelson | March 9th, 2012 @ 12:17 PM
Currently the xxml filter is available, but this is very inefficient as it creates ALL possible sections.
2 options I can think of for making it easy to include xpath refs
1) in config, create a dict of canonical names/xpath refs. these xpaths are parsed, processed (syntax highlighting etc.), loaded into JSON
2) load and parse full text of HTML/XML document, then put utilities into filter class to parse/syntax highlight on-the-fly
disadvantage of 2) no caching.
disadvnatage of 1) more confusing, more work to do in config
file
Comments and changes to this ticket
-
Ana Nelson April 12th, 2012 @ 11:06 AM
- State changed from new to resolved
Have implemented a filter which pulls out any element that has an 'id' attribute, and the 'id' attribute is used later to reference the content.
https://github.com/ananelson/dexy/blob/master/dexy/filters/xml_filt...
Will also be implementing a more generous HTML parser in #51
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป