[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Ranking Random Nodes from Top to Bottom
J. Zhang wrote:
an example would help a great deal here. You've talked of unstructured text in your first post, now I understand that it is actually about real nodes. It seems to me that you have strings of XPaths and that for some reason (why?) you want to show them to the user in the order equal to what the XPaths would select from the (a?) document. If so, what about an XPath that selects multiple nodes? To know whether one node is before the other, you can use the preceding:: axis (but this is an expensive operation). But you'll first have to write an XPath parser in XSLT if you want the xpaths to be given as strings. If you can (or want to) rely on extensions, you can use saxon:evaluate() when you run your stylesheets with Saxon.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|