|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: dynamically applying templates
On Sep 15, 2004, at 3:00 PM, Wendell Piez wrote:
Within those templates, there were two core modes: full and short. Well, the sample document is really simplified. In a real document, the bibliography mode is going to be the templates applied at the end of a long document. The other mode is going to get applied to the citations within the paragraphs. I can only hope that this doesn't cause me further problems! I went through a lot of pain just sorting out the namespaces and modes issues a few weeks back. Note: I do have a function (again, with Jeni's help) that determines the type of mods record (book, etc.), but I've not thought about whether and how to bring that over to the cs:* stuff. MODS doesn't really have explicit typing, so the function does the typing. It says, in really simplistic terms, if the record has two titles and is issued once, it's a chapter; if only one title, it's a book. That way, even those things that aren't technically chapters or books but have the same characteristics get formatted fairly accurately. I'm not really sure the implications of that for the templates; it sounds like you're suggesting it'd be easiest to have a fixed list of "types" and have a bunch of templates like the below, where mods:type is created in the temporary tree? <xsl:template match="mods:mods[mods:type='book']"> 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








