Raul wrote:
>  Given an xpath and an xml document, I would like to create the bit
>  vector which selects the characters from the xml document which
>  correspond to text which would be selected by that xpath.

>  Does anyone have a useful approach here?

(A)  It would help if you could supply example inputs (XML & XPATH) and
outputs (char or boxed vector).

(B)  Look into x2j .  It is an abstraction of SAX, and is more applicable if
you don't have XSLT, just XPath.

        Intro to x2j:
http://www.jsoftware.com/jwiki/Addons/xml/sax#x2j-XMLtoJ
        x2j examples:
http://www.jsoftware.com/jwiki/Addons/xml/sax/x2j%20Examples
        x2j in action:
http://rosettacode.org/wiki/Rosetta_Code/Rank_languages_by_popularity#J 

        You can also search the Forum for references to x2j .

-Dan



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to