|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: design question on function namespaces
On May 3, 2005, at 8:58 AM, Michael Kay wrote:
The thinking here is that it's often useful to create a library of reusable Yes, I understand this. But say you want to implement a function for your "does this chapter have any footnotes" example, but you deal with DocBook NG, TEI 5 and OpenOffice. Would you reimplement the function three times, or would there be a way to make it generic so that it could be reused across the different document types and namespaces. If you do the former, then they're not THAT reusable. My thinking here is partly conditioned by learning more about the SRU and SRW search and retrieve protocols, and their CQL query language, all of which come out of the library world. There you have abstract queries defined in indices. So, if you query the Library of Congress SRU (RESTful) server, you don't do "mods:titleInfo/mods:title="whatever"; you do "title=whatever" and let the server determine what to do with that. Example: http://z3950.loc.gov:7090/Voyager? operation=searchRetrieve&version=1.1&query=dc.title=XSLT&recordSchema=mo ds&startRecord=1&maximumRecords=20 I know XSLT presents limitations to implement this sort of thing, but I guess I'm thinking about the possibility of a similar sort of abstract functions -- like "bib:getYearIssued" -- that could be extended to take different input sources. Bruce
|
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
|

Cart








