Changeset 3515 for cats/ISOcat/trunk/various/import/csv2dcif.xsl
- Timestamp:
- 09/03/13 14:08:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cats/ISOcat/trunk/various/import/csv2dcif.xsl
r2029 r3515 273 273 <xsl:otherwise> 274 274 <xsl:message>WRN: multiple columns for definition in a language section, will use only the first one!</xsl:message> 275 </xsl:otherwise> 276 </xsl:choose> 277 </xsl:for-each> 278 <xsl:for-each select="dcif:colLookups($ss,('definition source'),(),$row)[. ge $col][. lt $nxt]"> 279 <xsl:choose> 280 <xsl:when test="position() eq 1"> 281 <definition-source col="{.}"/> 282 </xsl:when> 283 <xsl:otherwise> 284 <xsl:message>WRN: multiple columns for definition source in a language section, will use only the first one!</xsl:message> 285 </xsl:otherwise> 286 </xsl:choose> 287 </xsl:for-each> 288 <xsl:for-each select="dcif:colLookups($ss,('access date'),(),$row)[. ge $col][. lt $nxt]"> 289 <xsl:choose> 290 <xsl:when test="position() eq 1"> 291 <access-date col="{.}"/> 292 </xsl:when> 293 <xsl:otherwise> 294 <xsl:message>WRN: multiple columns for access date in a language section, will use only the first one!</xsl:message> 275 295 </xsl:otherwise> 276 296 </xsl:choose> … … 491 511 <dcif:source> 492 512 <xsl:choose> 513 <xsl:when test="not(normalize-space($lang/definition-source/@col)=('','UNK'))"> 514 <xsl:variable name="src" select="normalize-space($line/value[f:int($lang/definition-source/@col)])"/> 515 <xsl:if test="$src!=''"> 516 <xsl:value-of select="$src"/> 517 <xsl:if test="not(normalize-space($lang/access-date/@col)=('','UNK'))"> 518 <xsl:variable name="access" select="normalize-space($line/value[f:int($lang/access-date/@col)])"/> 519 <xsl:if test="$access!=''"> 520 <xsl:text> (</xsl:text> 521 <xsl:value-of select="$access"/> 522 <xsl:text>)</xsl:text> 523 </xsl:if> 524 </xsl:if> 525 </xsl:if> 526 </xsl:when> 493 527 <xsl:when test="not(normalize-space($map/source)=('','UNK'))"> 494 528 <xsl:value-of select="$map/source"/>
Note: See TracChangeset
for help on using the changeset viewer.