Skip to content

Commit

Permalink
adding xslt for software
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazztok45 committed Feb 9, 2024
1 parent f4e2ffc commit ceecb36
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions xslt/xslt-software-transformation.xslt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:oai_zb_preview="https://zbmath.org/OAI/2.0/oai_zb_preview/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:zbmath="https://zbmath.org/zbmath/elements/1.0/">
<xsl:template match="/">
<oai_zb_preview>
<xsl:for-each select="root/result/contributors/authors/name">
<author><xsl:value-of select="."/></author>
</xsl:for-each>
<author_ids>
<xsl:for-each select="root/result/contributors/authors/codes">
<author_id><xsl:value-of select="."/></author_id>
</xsl:for-each>
</author_ids>
<classifications>
<xsl:for-each select="root/result/msc/code">
<classification><xsl:value-of select="."/></classification>
</xsl:for-each>
</classifications>
<zbmath:review_language>
<xsl:value-of select="root/result/editorial_contributions/language/languages"/>
</zbmath:review_language>
<zbmath:review_sign>
<xsl:value-of select="root/result/editorial_contributions/reviewer/sign"/>
</zbmath:review_sign>
<zbmath:review_text>
<xsl:value-of select="root/result/editorial_contributions/text"/>
</zbmath:review_text>
<zbmath:review_type>
<xsl:value-of select="root/result/editorial_contributions/contribution_type"/>
</zbmath:review_type>
<reviewer>
<zbmath:reviewer>
<xsl:value-of select="root/result/editorial_contributions/reviewer/reviewer_id"/>
</zbmath:reviewer>
<zbmath:reviewer_id>
<xsl:value-of select="root/result/editorial_contributions/reviewer/author_code"/>
</zbmath:reviewer_id>
</reviewer>
<zbmath:zbl_id>
<xsl:value-of select="root/result/identifier"/>
</zbmath:zbl_id>
<zbmath:keywords>
<xsl:for-each select="root/result/keywords">
<zbmath:keyword>
<xsl:value-of select="."/>
</zbmath:keyword>
</xsl:for-each>
</zbmath:keywords>
</oai_zb_preview>
</xsl:template>
</xsl:stylesheet>

0 comments on commit ceecb36

Please sign in to comment.