Subject: [xsl] variables vs. modes From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Thu, 25 Nov 2004 17:02:33 -0500 |
<!-- grab all the citation pointers --> <xsl:variable name="citerefs" select="//db:biblioref/@linkend"/>
<!-- construct a list of unique references to pass to a query --> <xsl:variable name="citekeys"> <xsl:text>(</xsl:text> <xsl:for-each-group select="$citerefs" group-by="."> <xsl:if test="position() > 1">,%20</xsl:if> <xsl:text>'</xsl:text> <xsl:value-of select="."/> <xsl:text>'</xsl:text> </xsl:for-each-group> <xsl:text>)</xsl:text> </xsl:variable>
<!-- take raw biblist and format it --> <xsl:variable name="formatted-biblist"> <xsl:for-each select="$raw-biblist/mods:modsCollection/mods:mods"> <p id="{@ID}"> <xsl:apply-templates select="mods:titleInfo"/> </p> </xsl:for-each> </xsl:variable>
<xsl:template match="/"> <div id="bibliography"> <xsl:copy-of select="$formatted-biblist"/> </div> </xsl:template>
<xsl:template match="mods:titleInfo"> <span class="title"> <xsl:apply-templates select="mods:title"/> <xsl:apply-templates select="mods:subTitle"/> </span> </xsl:template>
<xsl:template match="mods:title"> <xsl:value-of select="."/> </xsl:template>
<xsl:template match="mods:subTitle"> <xsl:text>: </xsl:text> <xsl:value-of select="."/> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] alternative to FO?, Michael Kay | Thread | RE: [xsl] variables vs. modes, Michael Kay |
Re: [xsl] alternative to FO?, Bruce D'Arcus | Date | RE: [xsl] variables vs. modes, Michael Kay |
Month |