Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

support for including XML/HTML sections/xpath refs in dexy docs

#23

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

Reported by Ana Nelson · March 9th, 2012 @ 12:17 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Ana Nelson
    Ana Nelson
    • 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 create parser for HTML documents similar to xxml

    April 12th, 2012 @ 11:06 AM

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.