- Timestamp:
- 05/05/08 14:45:57 (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/biball.xml
r60 r62 43 43 <biblioid class="doi">10.1016/j.ocemod.2004.08.003</biblioid> 44 44 --> 45 <biblioid class="d io">AAA</biblioid>45 <biblioid class="doi">AAA</biblioid> 46 46 <biblioset role="journal"> 47 47 <title>Ocean Modelling</title> -
trunk/makefile
r58 r62 186 186 dbkcheck : 187 187 @-rm $(DIRTMP)/err_xmlstarlet_xsd 2> /dev/null 188 @ for file in $(DIRSRC)/biblio.xml $(DIRTMP)/*_full.xml $(DIRTMP)/select_id.xml $(DIRTMP)/superbib01.xml $(DIRTMP)/superbib02.xml $(DIRTMP)/$(PRODUCT)many01.xml $(DIRTMP)/$(PRODUCT)many02.xml $(DIRTMP)/user_db.xml $(DIRTMP)/template_db.xml; do \188 @-for file in $(DIRSRC)/biblio.xml $(DIRTMP)/*_full.xml $(DIRTMP)/select_id.xml $(DIRTMP)/superbib01.xml $(DIRTMP)/superbib02.xml $(DIRTMP)/$(PRODUCT)many01.xml $(DIRTMP)/$(PRODUCT)many02.xml $(DIRTMP)/user_db.xml $(DIRTMP)/template_db.xml; do \ 189 189 xml val --err \ 190 190 --xsd http://www.docbook.org/xml/5.0/xsd/docbook.xsd \ -
trunk/surname_id.xsl
r56 r62 10 10 update : 11 11 $Id$ 12 fplod 2008-05-05T12:13:12Z aedon.locean-ipsl.upmc.fr (Darwin) 13 simplification and replace single quote by underscore 12 14 fplod 2007-05-18T13:03:39Z aedon.locean-ipsl.upmc.fr (Darwin) 13 15 creation … … 25 27 <xsl:template name="surname_id"> 26 28 <xsl:param name="surname"/> 27 <xsl:choose> 28 <xsl:when test="contains($surname ,' ')"> 29 <xsl:call-template name="space_surname" > 30 <xsl:with-param name="text" select="$surname"/> 31 </xsl:call-template> 32 </xsl:when> 33 <xsl:otherwise> 34 <xsl:value-of select="translate($surname, 'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> 35 </xsl:otherwise> 36 </xsl:choose> 37 </xsl:template> 29 <xsl:variable name="surname1"> 30 <xsl:variable name="single-quote">'</xsl:variable> 31 <xsl:variable name="underscore">_</xsl:variable> 32 <xsl:value-of select="translate($surname,$single-quote,$underscore)"/> 33 </xsl:variable> 34 <xsl:value-of select="translate($surname1, 'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> 38 35 39 <xsl:template name="space_surname">40 <xsl:param name="text"/>41 <xsl:choose>42 <xsl:when test="contains($text, ' ')">43 <xsl:variable name="transform">44 <xsl:value-of select="translate(substring-before($text, ' '), 'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/>45 </xsl:variable>46 <xsl:value-of select="$transform"/>47 <xsl:text>_</xsl:text>48 <xsl:call-template name="space_surname">49 <xsl:with-param name="text" select="substring-after($text,' ')"/>50 </xsl:call-template>51 </xsl:when>52 <xsl:otherwise>53 <xsl:value-of select="translate($text, 'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/>54 </xsl:otherwise>55 </xsl:choose>56 36 </xsl:template> 57 37 </xsl:stylesheet>
Note: See TracChangeset
for help on using the changeset viewer.