Subject: [xsl] dynamically generating css From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Mon, 30 Aug 2004 17:21:48 -0400 |
<reftype name="book"> <creator after=" "> <name/> <role before=" "/> </creator> <date after=". "> <year/> </date> <title font-style="italic" after=". "/> <genre after=" "/> <medium before="[" after="], "/> <origin> <place/> <publisher before=":"/> </origin> <physical-location before=", available at "/> <url/> </reftype> <reftype name="chapter"> <creator/> <date before=" " after=". "> <year/> </date> <title after=". "/> <container before="In "> <title font-style="italic" after=", "/> <creator> <role after=" "/> <name/> </creator> <part-details before=", "> <pages/> </part-details> <origin before="."> <place/> <publisher before=":"/> </origin> </container> <genre before=", "/> <medium before="(" after="), "/> <physical-location/> <url/> </reftype>
..book-title{ font-style: italic; }
..chapter-container-title{ font-style: italic; }
<xsl:template name="css" match="cs:citationstyle"> <xsl:apply-templates select="//cs:reftype"/> </xsl:template>
<xsl:template match="@font-family"> font-family: <xsl:value-of select="."/>; </xsl:template>
<xsl:template match="@font-style"> font-style: <xsl:value-of select="."/>; </xsl:template>
<xsl:template match="@font-weight"> font-weight: <xsl:value-of select="."/>; </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Match node() with excepti, cking | Thread | Re: [xsl] dynamically generating cs, Jeni Tennison |
Re: [xsl] Match node() with excepti, cking | Date | RE: [xsl] how to sort by different , Shen, Ching |
Month |