|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: regexs, grouping (?) and XSLT2?
OK, going back to this:
On Aug 10, 2004, at 11:10 AM, Bruce D'Arcus wrote: I'd really like to make the stylesheet configurable via an XML style file. The style file would basically define variables, lay them out in the appropriate order, and give instructions on surrounding punctuation. Think BibTeX .bst files, but in XML.
Does the below seem like the right approach? And conceptually how do I think about reading a non-xsl file and getting the xslt to apply the below logic? <!-- begin configuration options --> <!-- biborder template called by main bib template to determine order of processing Note: this of course leaves the author-year ordering fixed; not a problem now, but would be if I want to allow greater configuration options. --> <xsl:template name="biborder"> <xsl:apply-templates select="mods:titleInfo"/> <xsl:apply-templates select="mods:originInfo"/> <xsl:apply-templates select="mods:relatedItem"/> <xsl:apply-templates select="mods:location"/> </xsl:template> <!-- punctuation variables --> <xsl:variable name="title-before"> <xsl:text></xsl:text> </xsl:variable> <xsl:variable name="title-after"> <xsl:text> </xsl:text> </xsl:variable> <xsl:variable name="year-before"> <xsl:text>(</xsl:text> </xsl:variable> <xsl:variable name="year-after"> <xsl:text>) </xsl:text> </xsl:variable> <xsl:variable name="creator-before"> <xsl:text></xsl:text> </xsl:variable> <xsl:variable name="creator-after"> <xsl:text> </xsl:text> </xsl:variable> .... etc. Bruce PS - I get the same weird virus warning as Mike.
|
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








