Skip to content

Commit

Permalink
Fix root element namespace
Browse files Browse the repository at this point in the history
cf. #21
  • Loading branch information
physikerwelt committed Feb 22, 2024
1 parent a2c5c76 commit 23ba274
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/data/articles/zb_preview.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?><oai_zbmath_preview xmlns:zbmath="https://zbmath.org/zbmath/elements/1.0/" xmlns:oai_zbmath_preview="https://zbmath.org/OAI/2.0/oai_zbmath_preview/">
<?xml version="1.0" encoding="UTF-8"?><oai_zb_preview:zbmath xmlns:zbmath="https://zbmath.org/zbmath/elements/1.0/" xmlns:oai_zb_preview="https://zbmath.org/OAI/2.0/oai_zbmath_preview/">
<zbmath:author>Maynard, James</zbmath:author>
<zbmath:author_ids>
<zbmath:author_id>maynard.james</zbmath:author_id>
Expand Down Expand Up @@ -143,4 +143,4 @@
we replaced the data with the string 'zbMATH Open Web Interface contents
unavailable due to conflicting licenses.'
</zbmath:rights>
</oai_zbmath_preview>
</oai_zb_preview:zbmath>
6 changes: 3 additions & 3 deletions xslt/articles/xslt-article-transformation.xslt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:oai_zbmath_preview="https://zbmath.org/OAI/2.0/oai_zbmath_preview/"
xmlns:oai_zb_preview="https://zbmath.org/OAI/2.0/oai_zbmath_preview/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:zbmath="https://zbmath.org/zbmath/elements/1.0/"
exclude-result-prefixes="xsi oai_zb_preview">


<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<oai_zbmath_preview>
<oai_zb_preview:zbmath>
<zbmath:author>
<xsl:value-of select="root/result/contributors/authors/name"/>
</zbmath:author>
Expand Down Expand Up @@ -162,6 +162,6 @@
we replaced the data with the string 'zbMATH Open Web Interface contents
unavailable due to conflicting licenses.'
</zbmath:rights>
</oai_zbmath_preview>
</oai_zb_preview:zbmath>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 23ba274

Please sign in to comment.