Subject: Re: [xsl] misc. confusion on "footnote" handling From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 25 Aug 2004 18:19:29 -0400 |
A1.xsl imports A.xsl A2.xsl imports A.xsl
<speech><sp>Miranda</sp> <l>O, wonder!</l> <l>How many goodly creatures are there here!</l> <l>How beauteous mankind is! O <emph>brave new world</emph>,</l> <l>That has such people in't!</l> </speech>
<xsl:template match="speech"> <div> <xsl:apply-templates/> </div> </xsl:template>
<xsl:template match="emph"> <i> <xsl:apply-templates/> </i> </xsl:template>
<xsl:template match="l"> <h1> <xsl:apply-templates/> </h1> </xsl:template>
<xsl:template match="sp"> <h2 style="color:green"> <xsl:apply-templates/> </h2> </xsl:template>
<xsl:template match="l"> <h2> <xsl:apply-templates/> </h2> </xsl:template>
<xsl:template match="l"> <h3> <xsl:apply-templates/> </h3> </xsl:template>
Cheers, Wendell
Incidentally, another design pattern of which you might not be aware is to place most of your code in a common core, but have different stylesheets to invoke for running in different "modes".
This sounds interesting. Could you give me an example of what this might look like?
Currently I have a main stylesheet that looks just like this:
<!-- read the external citation style file --> <xsl:param name="citation-style" required="yes" as="xs:string" />
<xsl:variable name="styles" as="document-node()" select="doc(concat('styles/',$citation-style, '.csl'))" />
<!-- set the citation class parameter (e.g. author-year) as specified in the style file -->
<xsl:param name="citation-class" select="$styles/cs:citationstyle/@class"/>
<xsl:include href="drivers/biblio-driver.xsl" /> <xsl:include href="drivers/document-driver.xsl" /> <xsl:include href="output/biblio-output.xsl" /> <xsl:include href="output/citation-output.xsl" />
Bruce
====================================================================== 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] misc. confusion on "footn, Bruce D'Arcus | Thread | Re: [xsl] misc. confusion on "footn, Bruce D'Arcus |
Re: [xsl] Converting WordML to a XH, cking | Date | Re: [xsl] Merging and sorting files, cking |
Month |