Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Author field -->
- <xsl:for-each select="a1">
- <dcvalue element="contributor" qualifier="author">
- <xsl:choose> <!-- Adds a space after the comma that seperates first and last names -->
- <xsl:when test="contains(.,',')">
- <xsl:variable name="last" select="substring-before(.,',')"/>
- <xsl:variable name="first" select="substring-after(.,',')"/>
- <xsl:value-of select="concat($last,', ',$first)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
- </xsl:choose>
- </dcvalue>
- </xsl:for-each>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement