1 <?xml version=
"1.0" encoding=
"windows-1250"?>
2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
6 <!-- ********************************************************************
7 $Id: biblio-iso690.xsl,v 1.1 2007/03/10 05:15:13 scott Exp $
8 ********************************************************************
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://nwalsh.com/docbook/xsl/ for copyright
12 and other information.
14 The original code for processing bibliography in ISO690 style
15 was provided by Jana Dvorakova <jana4u@seznam.cz>
17 ******************************************************************** -->
19 <!-- ==================================================================== -->
21 <!-- if biblioentry.alt.primary.seps is set to nonzero value then use alternative separators for primary responsibility - $alt.person.two.sep, $alt.person.last.sep, $alt.person.more.sep -->
22 <xsl:param name=
"biblioentry.alt.primary.seps" select=
"0"/>
24 <!-- how many authors will be printed if there is more than three authors - set to number 1 (default value), 2 or 3 -->
25 <xsl:param name=
"biblioentry.primary.count" select=
"1"/>
27 <!-- ==================================================================== -->
29 <xsl:template name=
"iso690.makecitation">
30 <!-- Types of resources -->
33 <!-- SYSTEMS OF ELECTRONIC COMMUNICATION : ENTIRE MESSAGE SYSTEM -->
34 <!-- same as Monographs -->
35 <xsl:when test=
"./@role='messagesystem'">
36 <xsl:call-template name=
"iso690.monogr"/>
39 <!-- SYSTEMS OF ELECTRONIC COMMUNICATION : ELECTRONIC MESSAGES -->
40 <!-- same as Contributions to Monographs -->
41 <xsl:when test=
"./@role='message'">
42 <xsl:call-template name=
"iso690.paper.mon"/>
46 <xsl:when test=
"./@role='serial' or ./biblioid/@class='issn' or ./issn">
47 <xsl:call-template name=
"iso690.serial"/>
50 <!-- PARTS OF MONOGRAPHS -->
51 <xsl:when test=
"./@role='part' or (./bibliomisc[@role='secnum']|./bibliomisc[@role='sectitle'])">
52 <xsl:call-template name=
"iso690.monogr.part"/>
55 <!-- CONTRIBUTIONS TO MONOGRAPHS -->
56 <xsl:when test=
"./@role='contribution' or (./biblioset/@relation='part' and ./biblioset/@relation='book')">
57 <xsl:call-template name=
"iso690.paper.mon"/>
60 <!-- ARTICLES, ETC., IN SERIALS -->
61 <xsl:when test=
"./@role='article' or (./biblioset/@relation='journal' and ./biblioset/@relation='article')">
62 <xsl:call-template name=
"iso690.article"/>
65 <!-- PATENT DOCUMENTS -->
66 <xsl:when test=
"./@role='patent' or (./bibliomisc[@role='patenttype'] and ./bibliomisc[@role='patentnum'])">
67 <xsl:call-template name=
"iso690.patent"/>
72 <xsl:call-template name=
"iso690.monogr"/>
78 <!-- ==================================================================== -->
81 <xsl:template name=
"iso690.monogr">
82 <!-- Primary responsibility -->
83 <xsl:call-template name=
"iso690.primary"/>
84 <!-- Title and Type of medium -->
85 <xsl:call-template name=
"iso690.title"/>
86 <!-- Subordinate responsibility -->
87 <xsl:call-template name=
"iso690.secondary"/>
89 <xsl:call-template name=
"iso690.edition"/>
90 <!-- Place of publication, Publisher, Year/Date of publication, Date of update/revision, Date of citation -->
91 <xsl:call-template name=
"iso690.pub"/>
93 <xsl:call-template name=
"iso690.extent"/>
95 <xsl:call-template name=
"iso690.serie"/>
97 <xsl:call-template name=
"iso690.notice"/>
98 <!-- Avaibility and access -->
99 <xsl:call-template name=
"iso690.access"/>
100 <!-- Standard number -->
101 <xsl:call-template name=
"iso690.isbn"/>
105 <xsl:template name=
"iso690.serial">
106 <!-- Title and Type of medium -->
107 <xsl:call-template name=
"iso690.title"/>
108 <!-- Responsibility [nonEL] -->
109 <xsl:if test=
"not(./bibliomisc[@role='medium'])">
110 <xsl:call-template name=
"iso690.secondary"/>
113 <xsl:call-template name=
"iso690.edition">
114 <xsl:with-param name=
"after" select=
"./bibliomisc[@role='issuing']"/>
116 <!-- Issue designation (date and/or n°) [nonEL] -->
117 <xsl:if test=
"not(./bibliomisc[@role='medium'])">
118 <xsl:call-template name=
"iso690.issuing"/>
120 <!-- Place of publication, Publisher, Year/Date of publication, Date of update/revision, Date of citation -->
121 <xsl:call-template name=
"iso690.pub"/>
123 <xsl:call-template name=
"iso690.serie"/>
125 <xsl:call-template name=
"iso690.notice"/>
126 <!-- Avaibility and access -->
127 <xsl:call-template name=
"iso690.access"/>
128 <!-- Standard number -->
129 <xsl:call-template name=
"iso690.issn"/>
132 <!-- PARTS OF MONOGRAPHS -->
133 <xsl:template name=
"iso690.monogr.part">
134 <!-- Primary responsibility of host document -->
135 <xsl:call-template name=
"iso690.primary"/>
136 <!-- Title and Type of medium of host document -->
137 <xsl:call-template name=
"iso690.title"/>
138 <!-- Subordinate responsibility of host document [EL] -->
139 <xsl:if test=
"./bibliomisc[@role='medium']">
140 <xsl:call-template name=
"iso690.secondary"/>
143 <xsl:call-template name=
"iso690.edition">
144 <xsl:with-param name=
"after" select=
"./volumenum"/>
146 <!-- Numeration of the part [nonEL]-->
147 <xsl:if test=
"not(./bibliomisc[@role='medium'])">
148 <xsl:call-template name=
"iso690.partnr"/>
149 <!-- Subordinate responsibility [nonEL] -->
150 <xsl:call-template name=
"iso690.secondary"/>
152 <!-- Place of publication, Publisher, Year/Date of publication, Date of update/revision, Date of citation -->
153 <xsl:call-template name=
"iso690.pub"/>
154 <!-- Location within host -->
155 <xsl:call-template name=
"iso690.part.location"/>
156 <xsl:if test=
"./bibliomisc[@role='medium']">
157 <!-- Numeration within host document [EL] -->
159 <xsl:call-template name=
"iso690.notice"/>
160 <!-- Avaibility and access [EL] -->
161 <xsl:call-template name=
"iso690.access"/>
162 <!-- Standard number [EL] -->
163 <xsl:call-template name=
"iso690.isbn"/>
167 <!-- CONTRIBUTIONS TO MONOGRAPHS -->
168 <xsl:template name=
"iso690.paper.mon">
169 <!-- Contribution -->
170 <xsl:apply-templates mode=
"iso690.paper.part" select=
"./biblioset[@relation='part']"/>
172 <xsl:text>In
</xsl:text>
174 <xsl:apply-templates mode=
"iso690.paper.book" select=
"./biblioset[@relation='book']"/>
177 <xsl:template match=
"biblioset" mode=
"iso690.paper.part">
178 <!-- Contribution -->
179 <!-- Primary responsibility -->
180 <xsl:call-template name=
"iso690.primary"/>
182 <xsl:call-template name=
"iso690.title">
183 <xsl:with-param name=
"italic" select=
"0"/>
187 <xsl:template match=
"biblioset" mode=
"iso690.paper.book">
189 <!-- Primary responsibility -->
190 <xsl:call-template name=
"iso690.primary"/>
191 <!-- Title and Type of medium -->
192 <xsl:call-template name=
"iso690.title"/>
193 <!-- Subordinate responsibility [EL] -->
194 <xsl:if test=
"./bibliomisc[@role='medium']">
195 <xsl:call-template name=
"iso690.secondary"/>
198 <xsl:call-template name=
"iso690.edition"/>
199 <!-- Place of publication, Publisher, Year/Date of publication, Date of update/revision, Date of citation -->
200 <xsl:call-template name=
"iso690.paper.pub"/>
201 <!-- Numeration within host document [EL] -->
202 <!-- Location within host -->
203 <xsl:call-template name=
"iso690.location"/>
204 <xsl:if test=
"./bibliomisc[@role='medium']">
206 <xsl:call-template name=
"iso690.notice"/>
207 <!-- Avaibility and access [EL] -->
208 <xsl:call-template name=
"iso690.access"/>
209 <!-- Standard number [EL] -->
210 <xsl:call-template name=
"iso690.isbn"/>
214 <!-- ARTICLES, ETC., IN SERIALS -->
215 <xsl:template name=
"iso690.article">
217 <xsl:apply-templates mode=
"iso690.article.art" select=
"./biblioset[@relation='article']"/>
219 <xsl:apply-templates mode=
"iso690.article.jour" select=
"./biblioset[@relation='journal']"/>
222 <xsl:template match=
"biblioset" mode=
"iso690.article.art">
224 <!-- Primary responsibility -->
225 <xsl:call-template name=
"iso690.primary"/>
227 <xsl:call-template name=
"iso690.title">
228 <xsl:with-param name=
"italic" select=
"0"/>
230 <!-- Subordinate responsibility [nonEL] -->
231 <xsl:if test=
"not(../*/bibliomisc[@role='medium'])">
232 <xsl:call-template name=
"iso690.secondary"/>
236 <xsl:template match=
"biblioset" mode=
"iso690.article.jour">
238 <!-- Title and Type of medium -->
239 <xsl:call-template name=
"iso690.title"/>
241 <xsl:call-template name=
"iso690.edition">
242 <xsl:with-param name=
"after" select=
"./pubdate[not(@role='issuing')]|./volumenum|./issuenum|./pagenums"/>
244 <!-- Number designation [EL] -->
245 <!-- Location within host -->
246 <xsl:call-template name=
"iso690.article.location"/>
247 <xsl:if test=
"./bibliomisc[@role='medium']">
249 <xsl:call-template name=
"iso690.notice"/>
250 <!-- Avaibility and access [EL] -->
251 <xsl:call-template name=
"iso690.access"/>
252 <!-- Standard number [EL] -->
253 <xsl:call-template name=
"iso690.issn"/>
257 <!-- PATENT DOCUMENTS -->
258 <xsl:template name=
"iso690.patent">
259 <!-- Primary responsibility (applicant) -->
260 <xsl:call-template name=
"iso690.primary"/>
261 <!-- Title of the invention -->
262 <xsl:call-template name=
"iso690.title"/>
263 <!-- Subordinate responsibility -->
264 <xsl:call-template name=
"iso690.secondary"/>
266 <xsl:call-template name=
"iso690.notice"/>
267 <!-- Identification -->
268 <xsl:call-template name=
"iso690.pat.ident"/>
271 <!-- ==================================================================== -->
274 <!-- Primary responsibility -->
275 <xsl:template name=
"iso690.primary">
276 <xsl:param name=
"primary.sep">
277 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'primary.sep'"/></xsl:call-template>
280 <xsl:when test=
"./authorgroup/author|./author">
281 <xsl:call-template name=
"iso690.author.list">
282 <xsl:with-param name=
"person.list" select=
".//authorgroup/author|.//author"/>
285 <xsl:when test=
"./authorgroup/editor|./editor">
286 <xsl:call-template name=
"iso690.author.list">
287 <xsl:with-param name=
"person.list" select=
".//authorgroup/editor|.//editor"/>
290 <xsl:when test=
"./authorgroup/corpauthor|./corpauthor">
291 <xsl:call-template name=
"iso690.author.list">
292 <xsl:with-param name=
"person.list" select=
".//authorgroup/corpauthor|.//corpauthor"/>
296 <xsl:if test=
"(./firstname)and(./surname)">
297 <xsl:call-template name=
"iso690.author"/>
298 <xsl:call-template name=
"iso690.endsep">
299 <xsl:with-param name=
"text" select=
"string(./firstname[1])"/>
300 <xsl:with-param name=
"sep" select=
"$primary.sep"/>
307 <xsl:template name=
"iso690.author.list">
308 <xsl:param name=
"person.list"
309 select=
"author|corpauthor|editor"/>
310 <xsl:param name=
"person.count" select=
"count($person.list)"/>
311 <xsl:param name=
"count" select=
"1"/>
312 <xsl:param name=
"group" select=
"./authorgroup[@role='many']"/>
313 <xsl:param name=
"many" select=
"0"/>
315 <xsl:param name=
"primary.many">
316 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'primary.many'"/></xsl:call-template>
318 <xsl:param name=
"primary.editor">
319 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'primary.editor'"/></xsl:call-template>
321 <xsl:param name=
"primary.sep">
322 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'primary.sep'"/></xsl:call-template>
326 <xsl:when test=
"$count > $person.count"></xsl:when>
329 <xsl:when test=
"$person.count < 4 and not($group)">
330 <xsl:call-template name=
"iso690.author">
331 <xsl:with-param name=
"node" select=
"$person.list[position()=$count]"/>
334 <xsl:when test=
"$person.count = 2 and $count = 1 and $biblioentry.alt.primary.seps != 0">
335 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'alt.person.two.sep'"/></xsl:call-template>
337 <xsl:when test=
"$person.count = 2 and $count = 1">
338 <xsl:call-template name=
"gentext.template">
339 <xsl:with-param name=
"context" select=
"'authorgroup'"/>
340 <xsl:with-param name=
"name" select=
"'sep2'"/>
343 <xsl:when test=
"$person.count > 2 and $count+1 = $person.count and $biblioentry.alt.primary.seps != 0">
344 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'alt.person.last.sep'"/></xsl:call-template>
346 <xsl:when test=
"$person.count > 2 and $count+1 = $person.count">
347 <xsl:call-template name=
"gentext.template">
348 <xsl:with-param name=
"context" select=
"'authorgroup'"/>
349 <xsl:with-param name=
"name" select=
"'seplast'"/>
352 <xsl:when test=
"$count < $person.count and $biblioentry.alt.primary.seps != 0">
353 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'alt.person.more.sep'"/></xsl:call-template>
355 <xsl:when test=
"$count < $person.count">
356 <xsl:call-template name=
"gentext.template">
357 <xsl:with-param name=
"context" select=
"'authorgroup'"/>
358 <xsl:with-param name=
"name" select=
"'sep'"/>
361 <xsl:when test=
"($count = $person.count)">
363 <xsl:when test=
"$many!=0">
364 <xsl:if test=
"name($person.list[position()=$count])='editor'">
365 <xsl:value-of select=
"$primary.editor"/>
367 <xsl:value-of select=
"$primary.many"/>
368 <xsl:call-template name=
"iso690.endsep">
369 <xsl:with-param name=
"text" select=
"$primary.many"/>
370 <xsl:with-param name=
"sep" select=
"$primary.sep"/>
373 <xsl:when test=
"name($person.list[position()=$count])='editor'">
374 <xsl:value-of select=
"$primary.editor"/>
375 <xsl:value-of select=
"$primary.sep"/>
377 <xsl:when test=
"name($person.list[position()=$count])='corpauthor'">
378 <xsl:call-template name=
"iso690.endsep">
379 <xsl:with-param name=
"text" select=
"string($person.list[position()=$count])"/>
380 <xsl:with-param name=
"sep" select=
"$primary.sep"/>
384 <xsl:call-template name=
"iso690.endsep">
385 <xsl:with-param name=
"text" select=
"string($person.list[position()=$count]//firstname[1])"/>
386 <xsl:with-param name=
"sep" select=
"$primary.sep"/>
393 <xsl:call-template name=
"iso690.author.list">
394 <xsl:with-param name=
"person.list" select=
"$person.list"/>
395 <xsl:with-param name=
"person.count" select=
"$person.count"/>
396 <xsl:with-param name=
"count" select=
"$count+1"/>
397 <xsl:with-param name=
"many" select=
"$many"/>
398 <xsl:with-param name=
"group"/>
404 <xsl:when test=
"($biblioentry.primary.count>=3) and ($person.count>=3)">
405 <xsl:call-template name=
"iso690.author.list">
406 <xsl:with-param name=
"person.list" select=
"$person.list[1]|$person.list[2]|$person.list[3]"/>
407 <xsl:with-param name=
"person.count" select=
"3"/>
408 <xsl:with-param name=
"count" select=
"1"/>
409 <xsl:with-param name=
"many" select=
"1"/>
410 <xsl:with-param name=
"group"/>
413 <xsl:when test=
"($biblioentry.primary.count>1) and ($person.count>1)">
414 <xsl:call-template name=
"iso690.author.list">
415 <xsl:with-param name=
"person.list" select=
"$person.list[1]|$person.list[2]"/>
416 <xsl:with-param name=
"person.count" select=
"2"/>
417 <xsl:with-param name=
"count" select=
"1"/>
418 <xsl:with-param name=
"many" select=
"1"/>
419 <xsl:with-param name=
"group"/>
423 <xsl:call-template name=
"iso690.author.list">
424 <xsl:with-param name=
"person.list" select=
"$person.list[1]"/>
425 <xsl:with-param name=
"person.count" select=
"1"/>
426 <xsl:with-param name=
"count" select=
"1"/>
427 <xsl:with-param name=
"many" select=
"1"/>
428 <xsl:with-param name=
"group"/>
438 <xsl:template name=
"iso690.author">
439 <xsl:param name=
"node" select=
"."/>
440 <xsl:param name=
"lastfirst.sep">
441 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'lastfirst.sep'"/></xsl:call-template>
444 <xsl:when test=
"name($node)!='corpauthor'">
445 <span style=
"text-transform:uppercase">
446 <xsl:apply-templates mode=
"iso690.mode" select=
"$node//surname[1]"/>
448 <xsl:if test=
"$node//surname and $node//firstname">
449 <xsl:value-of select=
"$lastfirst.sep"/>
451 <xsl:apply-templates mode=
"iso690.mode" select=
"$node//firstname[1]"/>
454 <span style=
"text-transform:uppercase">
455 <xsl:apply-templates mode=
"iso690.mode" select=
"$node"/>
461 <xsl:template match=
"corpauthor|firstname|surname" mode=
"iso690.mode">
462 <xsl:apply-templates mode=
"iso690.mode"/>
465 <!-- Title and Type of medium -->
466 <xsl:template name=
"iso690.title">
467 <xsl:param name=
"medium" select=
"./bibliomisc[@role='medium']"/>
468 <xsl:param name=
"italic" select=
"1"/>
469 <xsl:param name=
"sep">
470 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'title.sep'"/></xsl:call-template>
473 <xsl:apply-templates mode=
"iso690.mode" select=
"./title">
474 <xsl:with-param name=
"medium" select=
"$medium"/>
475 <xsl:with-param name=
"italic" select=
"$italic"/>
476 <xsl:with-param name=
"sep" select=
"$sep"/>
477 </xsl:apply-templates>
480 <xsl:template match=
"title" mode=
"iso690.mode">
481 <xsl:param name=
"medium"/>
482 <xsl:param name=
"italic" select=
"1"/>
483 <xsl:param name=
"sep">
484 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'title.sep'"/></xsl:call-template>
486 <xsl:param name=
"medium1">
487 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'medium1'"/></xsl:call-template>
489 <xsl:param name=
"medium2">
490 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'medium2'"/></xsl:call-template>
493 <xsl:when test=
"$italic=1">
494 <xsl:call-template name=
"iso690.italic.title"/>
497 <xsl:call-template name=
"iso690.make.title"/>
500 <xsl:if test=
"$medium">
501 <xsl:value-of select=
"$medium1"/>
502 <xsl:apply-templates mode=
"iso690.mode" select=
"$medium"/>
503 <xsl:value-of select=
"$medium2"/>
505 <xsl:call-template name=
"iso690.endsep">
506 <xsl:with-param name=
"text" select=
"concat(string(.),string(../subtitle))"/>
507 <xsl:with-param name=
"sep" select=
"$sep"/>
511 <xsl:template name=
"iso690.italic.title">
513 <xsl:call-template name=
"iso690.make.title"/>
517 <xsl:template name=
"iso690.make.title">
518 <xsl:param name=
"submaintitle.sep">
519 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'submaintitle.sep'"/></xsl:call-template>
521 <xsl:apply-templates mode=
"iso690.mode"/>
522 <xsl:if test=
"../subtitle">
523 <xsl:value-of select=
"$submaintitle.sep"/>
524 <xsl:apply-templates mode=
"iso690.mode" select=
"../subtitle"/>
528 <xsl:template match=
"subtitle" mode=
"iso690.mode">
529 <xsl:apply-templates mode=
"iso690.mode"/>
532 <xsl:template match=
"bibliomisc[@role='medium']" mode=
"iso690.mode">
533 <xsl:apply-templates mode=
"iso690.mode"/>
536 <!-- Subordinate responsibility -->
537 <xsl:template name=
"iso690.secondary">
538 <xsl:param name=
"secondary.sep">
539 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'secondary.sep'"/></xsl:call-template>
541 <xsl:param name=
"secondary.person.sep">
542 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'secondary.person.sep'"/></xsl:call-template>
544 <xsl:for-each select=
"./bibliomisc[@role='secondary']">
545 <xsl:apply-templates mode=
"iso690.mode" select=
"."/>
547 <xsl:when test=
"position()=count(../bibliomisc[@role='secondary'])">
548 <xsl:call-template name=
"iso690.endsep">
549 <xsl:with-param name=
"text" select=
"string(.)"/>
550 <xsl:with-param name=
"sep" select=
"$secondary.sep"/>
554 <xsl:value-of select=
"$secondary.person.sep"/>
560 <xsl:template match=
"bibliomisc[@role='secondary']" mode=
"iso690.mode">
561 <xsl:apply-templates mode=
"iso690.mode"/>
565 <xsl:template name=
"iso690.edition">
566 <xsl:param name=
"after"/>
567 <xsl:param name=
"edition.serial.sep">
568 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'edition.serial.sep'"/></xsl:call-template>
571 <xsl:when test=
"string($after)!=''">
572 <xsl:apply-templates mode=
"iso690.mode" select=
"./edition">
573 <xsl:with-param name=
"sep" select=
"$edition.serial.sep"/>
574 </xsl:apply-templates>
577 <xsl:apply-templates mode=
"iso690.mode" select=
"./edition"/>
582 <xsl:template match=
"edition" mode=
"iso690.mode">
583 <xsl:param name=
"sep">
584 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'edition.sep'"/></xsl:call-template>
586 <xsl:apply-templates mode=
"iso690.mode"/>
587 <xsl:call-template name=
"iso690.endsep">
588 <xsl:with-param name=
"text" select=
"string(.)"/>
589 <xsl:with-param name=
"sep" select=
"$sep"/>
593 <!-- Issue designation (date and/or n°) -->
594 <xsl:template name=
"iso690.issuing">
595 <xsl:param name=
"issuing.div">
596 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'issuing.div'"/></xsl:call-template>
598 <xsl:param name=
"issuing.range">
599 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'issuing.range'"/></xsl:call-template>
601 <xsl:param name=
"issuing.sep">
602 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'issuing.sep'"/></xsl:call-template>
605 <xsl:when test=
"./pubdate[@role='issuing'] and ./volumenum[2] and ./issuenum[2]">
606 <xsl:call-template name=
"iso690.issuedate"/>
607 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum[1]">
608 <xsl:with-param name=
"sep" select=
"$issuing.div"/>
609 </xsl:apply-templates>
610 <xsl:apply-templates mode=
"iso690.mode" select=
"./issuenum[1]">
611 <xsl:with-param name=
"sep" select=
"$issuing.range"/>
612 </xsl:apply-templates>
613 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum[2]">
614 <xsl:with-param name=
"sep" select=
"$issuing.div"/>
615 </xsl:apply-templates>
616 <xsl:apply-templates mode=
"iso690.mode" select=
"./issuenum[2]">
617 <xsl:with-param name=
"sep" select=
"$issuing.sep"/>
618 </xsl:apply-templates>
620 <xsl:when test=
"./pubdate[@role='issuing'] and ./volumenum[2]">
621 <xsl:call-template name=
"iso690.issuedate"/>
622 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum[1]">
623 <xsl:with-param name=
"sep" select=
"$issuing.range"/>
624 </xsl:apply-templates>
625 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum[2]">
626 <xsl:with-param name=
"sep" select=
"$issuing.sep"/>
627 </xsl:apply-templates>
629 <xsl:when test=
"./pubdate[@role='issuing'] and ./volumenum and ./issuenum">
630 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[@role='issuing']">
631 <xsl:with-param name=
"sep" select=
"$issuing.div"/>
632 </xsl:apply-templates>
633 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum">
634 <xsl:with-param name=
"sep" select=
"$issuing.div"/>
635 </xsl:apply-templates>
636 <xsl:apply-templates mode=
"iso690.mode" select=
"./issuenum">
637 <xsl:with-param name=
"sep" select=
"$issuing.sep"/>
638 </xsl:apply-templates>
640 <xsl:when test=
"./pubdate[@role='issuing']">
641 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[@role='issuing']">
642 <xsl:with-param name=
"sep" select=
"$issuing.sep"/>
643 </xsl:apply-templates>
645 <xsl:when test=
"./volumenum">
646 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum">
647 <xsl:with-param name=
"sep" select=
"$issuing.sep"/>
648 </xsl:apply-templates>
650 <xsl:when test=
"./issuenum">
651 <xsl:apply-templates mode=
"iso690.mode" select=
"./issuenum">
652 <xsl:with-param name=
"sep" select=
"$issuing.sep"/>
653 </xsl:apply-templates>
658 <xsl:template name=
"iso690.issuedate">
659 <xsl:param name=
"issuing.div">
660 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'issuing.div'"/></xsl:call-template>
662 <xsl:param name=
"issuing.range">
663 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'issuing.range'"/></xsl:call-template>
665 <xsl:param name=
"issuing.sep">
666 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'issuing.sep'"/></xsl:call-template>
669 <xsl:when test=
"./pubdate[@role='issuing'][2]">
670 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[@role='issuing'][1]">
671 <xsl:with-param name=
"sep" select=
"$issuing.range"/>
672 </xsl:apply-templates>
673 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[@role='issuing'][2]">
674 <xsl:with-param name=
"sep" select=
"$issuing.div"/>
675 </xsl:apply-templates>
678 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[@role='issuing']">
679 <xsl:with-param name=
"sep" select=
"$issuing.div"/>
680 </xsl:apply-templates>
685 <xsl:template match=
"pubdate[@role='issuing']" mode=
"iso690.mode">
686 <xsl:param name=
"sep"/>
687 <xsl:variable name=
"substr" select=
"substring(string(.),string-length(string(.)))"/>
688 <xsl:apply-templates mode=
"iso690.mode"/>
689 <xsl:call-template name=
"iso690.space">
690 <xsl:with-param name=
"text" select=
"$substr"/>
693 <xsl:when test=
"$substr='-'">
694 <xsl:call-template name=
"iso690.endsep">
695 <xsl:with-param name=
"text" select=
"' '"/>
696 <xsl:with-param name=
"sep" select=
"$sep"/>
700 <xsl:call-template name=
"iso690.endsep">
701 <xsl:with-param name=
"text" select=
"string(.)"/>
702 <xsl:with-param name=
"sep" select=
"$sep"/>
708 <!-- Numeration of the part -->
709 <xsl:template name=
"iso690.partnr">
710 <xsl:param name=
"partnr.sep">
711 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'partnr.sep'"/></xsl:call-template>
713 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum">
714 <xsl:with-param name=
"sep" select=
"$partnr.sep"/>
715 </xsl:apply-templates>
718 <!-- Place of publication, Publisher, Year/Date of publication, Date of update/revision, Date of citation -->
719 <xsl:template name=
"iso690.pub">
720 <xsl:param name=
"onlydate" select=
"0"/>
721 <xsl:param name=
"placesep">
722 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'placepubl.sep'"/></xsl:call-template>
724 <xsl:param name=
"pubsep">
725 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'publyear.sep'"/></xsl:call-template>
727 <xsl:param name=
"endsep">
728 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'pubinfo.sep'"/></xsl:call-template>
731 <xsl:when test=
"(./publisher/publishername|./publishername|./publisher/address/city)and($onlydate=0)and(./pubdate[not(@role='issuing')]|./copyright/year|./date[@role='upd']|./date[@role='upd'])">
732 <xsl:apply-templates mode=
"iso690.mode" select=
"./publisher/address/city">
733 <xsl:with-param name=
"sep" select=
"$placesep"/>
734 </xsl:apply-templates>
735 <xsl:apply-templates mode=
"iso690.mode" select=
"./publisher/publishername|./publishername">
736 <xsl:with-param name=
"sep" select=
"$pubsep"/>
737 </xsl:apply-templates>
738 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[not(@role='issuing')]|./copyright/year">
739 <xsl:with-param name=
"sep" select=
"$endsep"/>
740 </xsl:apply-templates>
741 <xsl:if test=
"not(./pubdate[not(@role='issuing')]|./copyright/year)">
742 <xsl:call-template name=
"iso690.data">
743 <xsl:with-param name=
"sep" select=
"$endsep"/>
747 <xsl:when test=
"(./publisher/publishername|./publishername)and(./publisher/address/city)and($onlydate=0)">
748 <xsl:apply-templates mode=
"iso690.mode" select=
"./publisher/address/city">
749 <xsl:with-param name=
"sep" select=
"$placesep"/>
750 </xsl:apply-templates>
751 <xsl:apply-templates mode=
"iso690.mode" select=
"./publisher/publishername|./publishername">
752 <xsl:with-param name=
"sep" select=
"$endsep"/>
753 </xsl:apply-templates>
755 <xsl:when test=
"($onlydate=1)or(./pubdate[not(@role='issuing')]|./copyright/year)">
756 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[not(@role='issuing')]|./copyright/year">
757 <xsl:with-param name=
"sep" select=
"$endsep"/>
758 </xsl:apply-templates>
759 <xsl:if test=
"$onlydate=1">
760 <xsl:call-template name=
"iso690.location">
761 <xsl:with-param name=
"onlypages" select=
"1"/>
765 <xsl:when test=
"not(./pubdate[not(@role='issuing')]|./copyright/year)">
766 <xsl:call-template name=
"iso690.data">
767 <xsl:with-param name=
"sep" select=
"$endsep"/>
773 <xsl:template name=
"iso690.paper.pub">
774 <xsl:param name=
"spec.pubinfo.sep">
775 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'spec.pubinfo.sep'"/></xsl:call-template>
778 <xsl:when test=
"./volumnum|./issuenum|./pagenums">
779 <xsl:call-template name=
"iso690.pub">
780 <xsl:with-param name=
"endsep" select=
"$spec.pubinfo.sep"/>
784 <xsl:call-template name=
"iso690.pub"/>
789 <xsl:template name=
"iso690.data">
790 <xsl:param name=
"sep"/>
791 <xsl:param name=
"datecit2">
792 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'datecit2'"/></xsl:call-template>
794 <xsl:apply-templates mode=
"iso690.mode" select=
"./date[@role='upd']">
795 <xsl:with-param name=
"sep"/>
796 </xsl:apply-templates>
797 <xsl:apply-templates mode=
"iso690.mode" select=
"./date[@role='cit']"/>
799 <xsl:when test=
"./date[@role='cit']">
800 <xsl:call-template name=
"iso690.endsep">
801 <xsl:with-param name=
"text" select=
"$datecit2"/>
802 <xsl:with-param name=
"sep" select=
"$sep"/>
805 <xsl:when test=
"./date[@role='upd']">
806 <xsl:call-template name=
"iso690.endsep">
807 <xsl:with-param name=
"text" select=
"string(./date[@role='upd'])"/>
808 <xsl:with-param name=
"sep" select=
"$sep"/>
814 <xsl:template match=
"publisher/address/city|publishername" mode=
"iso690.mode">
815 <xsl:param name=
"sep"/>
816 <xsl:param name=
"upd" select=
"0"/>
817 <xsl:apply-templates mode=
"iso690.mode"/>
818 <xsl:call-template name=
"iso690.endsep">
819 <xsl:with-param name=
"text" select=
"string(.)"/>
820 <xsl:with-param name=
"sep" select=
"$sep"/>
824 <xsl:template match=
"pubdate|copyright/year" mode=
"iso690.mode">
825 <xsl:param name=
"sep"/>
826 <xsl:param name=
"upd" select=
"1"/>
827 <xsl:param name=
"datecit2">
828 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'datecit2'"/></xsl:call-template>
830 <xsl:variable name=
"substr" select=
"substring(string(.),string-length(string(.)))"/>
831 <xsl:if test=
"name(.)!='pubdate'">
832 <xsl:value-of select=
"'©'"/><!-- copyright -->
834 <xsl:apply-templates mode=
"iso690.mode"/>
835 <xsl:call-template name=
"iso690.space">
836 <xsl:with-param name=
"text" select=
"$substr"/>
838 <xsl:if test=
"$upd!=0">
840 <xsl:when test=
"name(.)='pubdate'">
841 <xsl:apply-templates mode=
"iso690.mode" select=
"../date[@role='upd']"/>
842 <xsl:apply-templates mode=
"iso690.mode" select=
"../date[@role='cit']"/>
845 <xsl:apply-templates mode=
"iso690.mode" select=
"../../date[@role='upd']"/>
846 <xsl:apply-templates mode=
"iso690.mode" select=
"../../date[@role='cit']"/>
851 <xsl:when test=
"../date[@role='cit']|../../date[@role='cit'] and $upd!=0">
852 <xsl:call-template name=
"iso690.endsep">
853 <xsl:with-param name=
"text" select=
"$datecit2"/>
854 <xsl:with-param name=
"sep" select=
"$sep"/>
857 <xsl:when test=
"../date[@role='upd']|../../date[@role='upd'] and $upd!=0">
858 <xsl:call-template name=
"iso690.endsep">
859 <xsl:with-param name=
"text" select=
"string(../date[@role='upd'])"/>
860 <xsl:with-param name=
"sep" select=
"$sep"/>
863 <xsl:when test=
"$substr='-'">
864 <xsl:call-template name=
"iso690.endsep">
865 <xsl:with-param name=
"text" select=
"' '"/>
866 <xsl:with-param name=
"sep" select=
"$sep"/>
870 <xsl:call-template name=
"iso690.endsep">
871 <xsl:with-param name=
"text" select=
"string(.)"/>
872 <xsl:with-param name=
"sep" select=
"$sep"/>
878 <xsl:template name=
"iso690.space">
879 <xsl:param name=
"text" select=
"substring(string(.),string-length(string(.)))"/>
880 <xsl:if test=
"$text='-'">
881 <xsl:value-of select=
"' '"/>
885 <!-- Date of update/revision -->
886 <xsl:template match=
"date[@role='upd']" mode=
"iso690.mode">
887 <xsl:param name=
"sep">
888 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'upd.sep'"/></xsl:call-template>
890 <xsl:value-of select=
"$sep"/>
891 <xsl:apply-templates mode=
"iso690.mode"/>
894 <!-- Date of citation -->
895 <xsl:template match=
"date[@role='cit']" mode=
"iso690.mode">
896 <xsl:param name=
"datecit1">
897 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'datecit1'"/></xsl:call-template>
899 <xsl:param name=
"datecit2">
900 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'datecit2'"/></xsl:call-template>
902 <xsl:value-of select=
"$datecit1"/>
903 <xsl:apply-templates mode=
"iso690.mode"/>
904 <xsl:value-of select=
"$datecit2"/>
908 <xsl:template name=
"iso690.extent">
909 <xsl:param name=
"extent.sep">
910 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'extent.sep'"/></xsl:call-template>
912 <xsl:apply-templates mode=
"iso690.mode" select=
"./pagenums">
913 <xsl:with-param name=
"sep" select=
"$extent.sep"/>
914 </xsl:apply-templates>
917 <!-- Location within host -->
918 <xsl:template name=
"iso690.part.location">
919 <xsl:param name=
"location.sep">
920 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'location.sep'"/></xsl:call-template>
923 <xsl:when test=
"./pagenums">
924 <xsl:apply-templates mode=
"iso690.mode" select=
"./bibliomisc[@role='secnum']"/>
925 <xsl:apply-templates mode=
"iso690.mode" select=
"./bibliomisc[@role='sectitle']"/>
926 <xsl:apply-templates mode=
"iso690.mode" select=
"./pagenums"/>
928 <xsl:when test=
"./bibliomisc[@role='sectitle']">
929 <xsl:apply-templates mode=
"iso690.mode" select=
"./bibliomisc[@role='secnum']"/>
930 <xsl:apply-templates mode=
"iso690.mode" select=
"./bibliomisc[@role='sectitle']">
931 <xsl:with-param name=
"sep" select=
"$location.sep"/>
932 </xsl:apply-templates>
935 <xsl:apply-templates mode=
"iso690.mode" select=
"./bibliomisc[@role='secnum']">
936 <xsl:with-param name=
"sep" select=
"$location.sep"/>
937 </xsl:apply-templates>
942 <xsl:template name=
"iso690.article.location">
943 <xsl:param name=
"location.sep">
944 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'location.sep'"/></xsl:call-template>
946 <xsl:param name=
"locs.sep">
947 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'locs.sep'"/></xsl:call-template>
950 <xsl:when test=
"not(./date[@role='upd']|./date[@role='cit'])">
952 <xsl:when test=
"./volumenum|./issuenum|./pagenums">
953 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[not(@role='issuing')]">
954 <xsl:with-param name=
"upd" select=
"0"/>
955 <xsl:with-param name=
"sep" select=
"$locs.sep"/>
956 </xsl:apply-templates>
957 <xsl:call-template name=
"iso690.location"/>
960 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[not(@role='issuing')]">
961 <xsl:with-param name=
"sep" select=
"$location.sep"/>
962 </xsl:apply-templates>
968 <xsl:when test=
"./volumenum|./issuenum|./pagenums">
969 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[not(@role='issuing')]">
970 <xsl:with-param name=
"upd" select=
"0"/>
971 <xsl:with-param name=
"sep" select=
"$locs.sep"/>
972 </xsl:apply-templates>
975 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[not(@role='issuing')]">
976 <xsl:with-param name=
"upd" select=
"0"/>
977 <xsl:with-param name=
"sep" select=
"$location.sep"/>
978 </xsl:apply-templates>
982 <xsl:when test=
"./issuenum">
983 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum"/>
984 <xsl:apply-templates mode=
"iso690.mode" select=
"./issuenum">
985 <xsl:with-param name=
"sep"/>
986 </xsl:apply-templates>
989 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum">
990 <xsl:with-param name=
"sep"/>
991 </xsl:apply-templates>
995 <xsl:when test=
"./pagenums">
996 <xsl:call-template name=
"iso690.data">
997 <xsl:with-param name=
"sep" select=
"$locs.sep"/>
999 <xsl:apply-templates mode=
"iso690.mode" select=
"./pagenums"/>
1002 <xsl:call-template name=
"iso690.data">
1003 <xsl:with-param name=
"sep" select=
"$location.sep"/>
1004 </xsl:call-template>
1011 <xsl:template name=
"iso690.location">
1012 <xsl:param name=
"location.sep">
1013 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'location.sep'"/></xsl:call-template>
1016 <xsl:when test=
"./volumenum and not(./issuenum) and not(./pagenums)">
1017 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum">
1018 <xsl:with-param name=
"sep" select=
"$location.sep"/>
1019 </xsl:apply-templates>
1021 <xsl:when test=
"./issuenum and not(./pagenums)">
1022 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum"/>
1023 <xsl:apply-templates mode=
"iso690.mode" select=
"./issuenum">
1024 <xsl:with-param name=
"sep" select=
"$location.sep"/>
1025 </xsl:apply-templates>
1027 <xsl:when test=
"./pagenums">
1028 <xsl:apply-templates mode=
"iso690.mode" select=
"./volumenum"/>
1029 <xsl:apply-templates mode=
"iso690.mode" select=
"./issuenum"/>
1030 <xsl:apply-templates mode=
"iso690.mode" select=
"./pagenums"/>
1035 <xsl:template match=
"bibliomisc[@role='secnum']|bibliomisc[@role='sectitle']" mode=
"iso690.mode">
1036 <xsl:param name=
"sep">
1037 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'locs.sep'"/></xsl:call-template>
1039 <xsl:apply-templates mode=
"iso690.mode"/>
1040 <xsl:call-template name=
"iso690.endsep">
1041 <xsl:with-param name=
"text" select=
"string(.)"/>
1042 <xsl:with-param name=
"sep" select=
"$sep"/>
1043 </xsl:call-template>
1046 <xsl:template match=
"volumenum|issuenum" mode=
"iso690.mode">
1047 <xsl:param name=
"sep">
1048 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'locs.sep'"/></xsl:call-template>
1050 <xsl:apply-templates mode=
"iso690.mode"/>
1051 <xsl:call-template name=
"iso690.endsep">
1052 <xsl:with-param name=
"text" select=
"string(.)"/>
1053 <xsl:with-param name=
"sep" select=
"$sep"/>
1054 </xsl:call-template>
1057 <xsl:template match=
"pagenums" mode=
"iso690.mode">
1058 <xsl:param name=
"sep">
1059 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'location.sep'"/></xsl:call-template>
1061 <xsl:apply-templates mode=
"iso690.mode"/>
1062 <xsl:call-template name=
"iso690.endsep">
1063 <xsl:with-param name=
"text" select=
"string(.)"/>
1064 <xsl:with-param name=
"sep" select=
"$sep"/>
1065 </xsl:call-template>
1069 <xsl:template name=
"iso690.serie">
1070 <xsl:apply-templates mode=
"iso690.mode" select=
".//bibliomisc[@role='serie']"/>
1074 <xsl:template name=
"iso690.notice">
1075 <xsl:apply-templates mode=
"iso690.mode" select=
".//bibliomisc[not(@role)]"/>
1078 <xsl:template match=
"bibliomisc[not(@role)]|bibliomisc[@role='serie']" mode=
"iso690.mode">
1079 <xsl:param name=
"notice.sep">
1080 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'notice.sep'"/></xsl:call-template>
1082 <xsl:apply-templates mode=
"iso690.mode"/>
1083 <xsl:call-template name=
"iso690.endsep">
1084 <xsl:with-param name=
"text" select=
"string(.)"/>
1085 <xsl:with-param name=
"sep" select=
"$notice.sep"/>
1086 </xsl:call-template>
1089 <!-- Avaibility and access -->
1090 <xsl:template name=
"iso690.access">
1091 <xsl:for-each select=
"./biblioid[@class='uri']|./bibliomisc[@role='access']">
1093 <xsl:when test=
"position()=1">
1094 <xsl:apply-templates mode=
"iso690.mode" select=
"."/>
1097 <xsl:apply-templates mode=
"iso690.mode" select=
".">
1098 <xsl:with-param name=
"firstacc" select=
"0"/>
1099 </xsl:apply-templates>
1105 <xsl:template match=
"biblioid[@class='uri']/ulink|bibliomisc[@role='access']/ulink" mode=
"iso690.mode">
1106 <xsl:param name=
"link1">
1107 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'link1'"/></xsl:call-template>
1109 <xsl:param name=
"link2">
1110 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'link2'"/></xsl:call-template>
1112 <xsl:value-of select=
"$link1"/>
1113 <xsl:call-template name=
"ulink"/>
1114 <xsl:value-of select=
"$link2"/>
1117 <xsl:template match=
"biblioid[@class='uri']|bibliomisc[@role='access']" mode=
"iso690.mode">
1118 <xsl:param name=
"firstacc" select=
"1"/>
1119 <xsl:param name=
"access">
1120 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'access'"/></xsl:call-template>
1122 <xsl:param name=
"acctoo">
1123 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'acctoo'"/></xsl:call-template>
1125 <xsl:param name=
"onwww">
1126 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'onwww'"/></xsl:call-template>
1128 <xsl:param name=
"oninet">
1129 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'oninet'"/></xsl:call-template>
1131 <xsl:param name=
"access.end">
1132 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'access.end'"/></xsl:call-template>
1134 <xsl:param name=
"access.sep">
1135 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'access.sep'"/></xsl:call-template>
1138 <xsl:when test=
"$firstacc=1">
1139 <xsl:value-of select=
"$access"/>
1142 <xsl:value-of select=
"$acctoo"/>
1146 <xsl:when test=
"(./ulink)and(string(./ulink)=string(.))">
1148 <xsl:when test=
"(starts-with(./ulink/@url,'http://')or(starts-with(./ulink/@url,'https://')))">
1149 <xsl:value-of select=
"$onwww"/>
1150 <xsl:value-of select=
"$access.end"/>
1151 <xsl:apply-templates mode=
"iso690.mode" select=
"./ulink"/>
1154 <xsl:value-of select=
"$oninet"/>
1155 <xsl:value-of select=
"$access.end"/>
1156 <xsl:apply-templates mode=
"iso690.mode" select=
"./ulink"/>
1160 <xsl:when test=
"(./ulink)and(string(./ulink)!=string(.))">
1161 <xsl:value-of select=
"text()[1]"/>
1162 <xsl:call-template name=
"iso690.endsep">
1163 <xsl:with-param name=
"text" select=
"text()[1]"/>
1164 <xsl:with-param name=
"sep" select=
"$access.end"/>
1165 </xsl:call-template>
1166 <xsl:apply-templates mode=
"iso690.mode" select=
"./ulink"/>
1169 <xsl:apply-templates mode=
"iso690.mode"/>
1172 <xsl:value-of select=
"$access.sep"/>
1175 <!-- Standard number - ISBN -->
1176 <xsl:template name=
"iso690.isbn">
1178 <xsl:when test=
"./biblioid/@class='isbn'">
1179 <xsl:apply-templates mode=
"iso690.mode" select=
"./biblioid[@class='isbn']"/>
1181 <xsl:when test=
"./isbn">
1182 <xsl:apply-templates mode=
"iso690.mode" select=
"./isbn"/>
1187 <xsl:template match=
"isbn|biblioid[@class='isbn']" mode=
"iso690.mode">
1188 <xsl:param name=
"isbn">
1189 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'isbn'"/></xsl:call-template>
1191 <xsl:param name=
"stdnum.sep">
1192 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'stdnum.sep'"/></xsl:call-template>
1194 <xsl:value-of select=
"$isbn"/>
1195 <xsl:apply-templates mode=
"iso690.mode"/>
1196 <xsl:value-of select=
"$stdnum.sep"/>
1199 <!-- Standard number - ISSN -->
1200 <xsl:template name=
"iso690.issn">
1202 <xsl:when test=
"./biblioid/@class='issn'">
1203 <xsl:apply-templates mode=
"iso690.mode" select=
"./biblioid[@class='issn']"/>
1205 <xsl:when test=
"./issn">
1206 <xsl:apply-templates mode=
"iso690.mode" select=
"./issn"/>
1211 <xsl:template match=
"issn|biblioid[@class='issn']" mode=
"iso690.mode">
1212 <xsl:param name=
"issn">
1213 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'issn'"/></xsl:call-template>
1215 <xsl:param name=
"stdnum.sep">
1216 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'stdnum.sep'"/></xsl:call-template>
1218 <xsl:value-of select=
"$issn"/>
1219 <xsl:apply-templates mode=
"iso690.mode"/>
1220 <xsl:value-of select=
"$stdnum.sep"/>
1223 <!-- Identification of patent document -->
1224 <xsl:template name=
"iso690.pat.ident">
1225 <xsl:param name=
"patdate.sep">
1226 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'patdate.sep'"/></xsl:call-template>
1228 <xsl:apply-templates mode=
"iso690.mode" select=
"./address/country"/>
1229 <xsl:apply-templates mode=
"iso690.mode" select=
"./bibliomisc[@role='patenttype']"/>
1231 <xsl:when test=
"./biblioid[@class='other' and @otherclass='patentnum']">
1232 <xsl:apply-templates mode=
"iso690.mode" select=
"./biblioid[@class='other' and @otherclass='patentnum']"/>
1235 <xsl:apply-templates mode=
"iso690.mode" select=
"./bibliomisc[@role='patentnum']"/>
1238 <xsl:apply-templates mode=
"iso690.mode" select=
"./pubdate[not(@role='issuing')]">
1239 <xsl:with-param name=
"sep" select=
"$patdate.sep"/>
1240 </xsl:apply-templates>
1243 <!-- Country or issuing office -->
1244 <xsl:template match=
"address/country" mode=
"iso690.mode">
1245 <xsl:param name=
"patcountry.sep">
1246 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'patcountry.sep'"/></xsl:call-template>
1249 <xsl:apply-templates mode=
"iso690.mode"/>
1251 <xsl:value-of select=
"$patcountry.sep"/>
1254 <!-- Kind of patent document -->
1255 <xsl:template match=
"bibliomisc[@role='patenttype']" mode=
"iso690.mode">
1256 <xsl:param name=
"pattype.sep">
1257 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'pattype.sep'"/></xsl:call-template>
1260 <xsl:apply-templates mode=
"iso690.mode"/>
1262 <xsl:value-of select=
"$pattype.sep"/>
1266 <xsl:template match=
"biblioid[@class='other' and @otherclass='patentnum']|bibliomisc[@role='patentnum']" mode=
"iso690.mode">
1267 <xsl:param name=
"patnum.sep">
1268 <xsl:call-template name=
"gentext.template"><xsl:with-param name=
"context" select=
"'iso690'"/><xsl:with-param name=
"name" select=
"'patnum.sep'"/></xsl:call-template>
1270 <xsl:apply-templates mode=
"iso690.mode"/>
1271 <xsl:value-of select=
"$patnum.sep"/>
1274 <!-- ==================================================================== -->
1275 <!-- Supplementary templates -->
1277 <xsl:template name=
"iso690.endsep">
1278 <xsl:param name=
"text"/>
1279 <xsl:param name=
"sep" select=
". "/>
1281 <xsl:when test=
"substring($text,string-length($text))!=substring($sep,1,1)">
1282 <xsl:value-of select=
"$sep"/>
1284 <xsl:when test=
"substring($text,string-length($text))=' '">
1287 <xsl:value-of select=
"' '"/>
1292 <!-- ==================================================================== -->
1294 <xsl:template match=
"*" mode=
"iso690.mode">
1295 <xsl:apply-templates select=
"."/><!-- try the default mode -->
1298 <!-- ==================================================================== -->