Subject: Re: [xsl] dynamically applying templates From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 15 Sep 2004 15:00:23 -0400 |
.... and add a template to match mods:mods (but notice I pulled the mode, imagining that the "bibliography" mode is to handle nodes in the config document.
...
Within those templates, there were two core modes: full and short.
Originally, I had carried the citation/bibliography thing through the descendants, but that doesn't really make much sense when you consider footnote citations are often full bib references. Hence, full and short (for titles, names, etc.).
I tend to think this logic makes sense to keep.
That's the template where we'll jump trees, so --
<xsl:template match="mods:mods">
<xsl:apply-templates select="$style-biblio/cs:entry/cs:reftype[@name='book']"
mode="bibliography">
<!-- of course the value 'book' should probably be parameterized -->
How and why? ;-)
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.
There the type is just a straight attribute value.
<xsl:with-param name="source" select="."/> <!-- this is where we jump to the other tree, carrying the original context with us as the $source -->
Original context is mods:mods? I am jumping to the other tree with the select statement on the apply-templates, and then jumping back to mods:mods using the with-param select?
Also, a niggle: any particular reason why your configuration couldn't be
<bibliography author-as-sort-order="yes"> <entry reftype="book"> <title font-style="italic" after=", "/> <creator/> </entry> </bibliography>
thereby making it a bit tighter and easier to handle?
I simplified the config file a lot here to keep it as clear as possible. The full structure would be schematically:
citationstyle info (the metadata) content names terms citation bibliography
So, the business I'm dealing with here relates to just the last two, and needs to happen in two respective modes: citation and bibliography.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
--+------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> --+--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] dynamically applying temp, Bruce D'Arcus | Thread | Re: [xsl] dynamically applying temp, Bruce D'Arcus |
Re: [xsl] dynamically applying temp, Bruce D'Arcus | Date | Re: [xsl] dynamically applying temp, Bruce D'Arcus |
Month |