[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Advice on dictionary conversion
Ciaran,
On 1/17/2011 5:57 PM, Michael Kay wrote: This is a tough problem for three reasons: I'd hope to have said exactly the same thing as Mike says here, though not so concisely. As it is, I can start by underlining it. Especially point (c). (And Jeroen's and Dan's posts are also good advice.) A little background may also be helpful in developing your strategy: For practical purposes this task is more or less impossible in unassisted XSLT 1.0, but it becomes feasible with features in XSLT 2.0 including for-each-group, string processing for regular expressions, stylesheet functions, and temporary trees (to name only the most important), none of which are part of XSLT 1.0 and none of which are beginner-level topics. Yet the heart of XSLT 1.0, namely processing by templates, remains at least as important as all these features if not more so, as it's the basis of everything else. Accordingly, some experience in plain old-fashioned "down-conversion", of strong XML (not the semantically weak stuff you are starting with, but more like what you want to produce out of it) into display formats like HTML, is more or less essential practice for most beginners. It is also a useful exercise for another reason: you will get a better feel for what makes a strong vs. a weak XML format. (If you have a good head for this kind of work you'll already have an intuitive understanding of this, but there's nothing like experience.) It's critical to be able to think through these issues if you're also faced with the problem of designing the target format for your upconversion. Even if you use a dictionary encoding standard like TEI more or less off the shelf, which will help, you'll face issues here. One way of saying this is that you might find the problems more tractable in development if you start with the later stages of your pipeline and then push it backwards (and then forwards again), working up sample data by hand as you go and taking note of the particulars of the conversions necessary. This will engage you in an iterative design process that will expose the complexities of the problems as you work, rather than face you with all of them in a big tangle from the very start. Cheers, Wendell
|
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
|