Skip to content

Commit

Permalink
XSL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonskichov committed May 13, 2019
1 parent 164ad1a commit 04d1399
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/common/java/transform/catalogue_2_02.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<xsl:if test="not(@book = '') and generate-id() = generate-id(key('bookId', @book)[1])">
<publication>
<!-- Attributes -->
<xsl:attribute name="id"><xsl:value-of select="substring(/bsc:catalogue/@id, 1, 9)"/>-pub<xsl:value-of select="generate-id(key('bookId', @book))"/></xsl:attribute>
<xsl:attribute name="id"><xsl:value-of select="substring(/bsc:catalogue/@id, 1, 9)"/>-pub<xsl:value-of select="generate-id(key('bookId', @book)[1])"/></xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="@book"/></xsl:attribute>
</publication>
</xsl:if>
Expand All @@ -41,7 +41,7 @@
<!-- PublicationLink -->
<xsl:template match="@book">
<xsl:if test="not(. = '')">
<xsl:attribute name="publicationId"><xsl:value-of select="substring(/bsc:catalogue/@id, 1, 9)"/>-pub<xsl:value-of select="generate-id(key('bookId', .))"/></xsl:attribute>
<xsl:attribute name="publicationId"><xsl:value-of select="substring(/bsc:catalogue/@id, 1, 9)"/>-pub<xsl:value-of select="generate-id(key('bookId', .)[1])"/></xsl:attribute>
</xsl:if>
</xsl:template>

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/common/java/transform/game_system_2_02.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<xsl:if test="not(@book = '') and generate-id() = generate-id(key('bookId', @book)[1])">
<publication>
<!-- Attributes -->
<xsl:attribute name="id"><xsl:value-of select="substring(/bsg:gameSystem/@id, 1, 9)"/>-pub<xsl:value-of select="generate-id(key('bookId', @book))"/></xsl:attribute>
<xsl:attribute name="id"><xsl:value-of select="substring(/bsg:gameSystem/@id, 1, 9)"/>-pub<xsl:value-of select="generate-id(key('bookId', @book)[1])"/></xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="@book"/></xsl:attribute>
</publication>
</xsl:if>
Expand All @@ -42,7 +42,7 @@
<!-- PublicationLink -->
<xsl:template match="@book">
<xsl:if test="not(. = '')">
<xsl:attribute name="publicationId"><xsl:value-of select="substring(/bsg:gameSystem/@id, 1, 9)"/>-pub<xsl:value-of select="generate-id(key('bookId', .))"/></xsl:attribute>
<xsl:attribute name="publicationId"><xsl:value-of select="substring(/bsg:gameSystem/@id, 1, 9)"/>-pub<xsl:value-of select="generate-id(key('bookId', .)[1])"/></xsl:attribute>
</xsl:if>
</xsl:template>

Expand Down

0 comments on commit 04d1399

Please sign in to comment.