Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
This fixes an issue where comments in a file would cause processing
to fail.

Affects: #18
  • Loading branch information
io7m committed Feb 3, 2022
1 parent 3ee67a6 commit 841681f
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README-CHANGES.xml
Expand Up @@ -24,14 +24,23 @@
<c:change date="2020-12-19T00:00:00+00:00" summary="Slightly improve the CSS for table elements"/>
</c:changes>
</c:release>
<c:release date="2021-06-27T16:34:56+00:00" is-open="true" ticket-system="com.github.io7m.xstructural" version="1.3.0">
<c:release date="2022-02-03T00:00:00+00:00" is-open="false" ticket-system="com.github.io7m.xstructural" version="1.3.0">
<c:changes>
<c:change date="2021-06-27T00:00:00+00:00" summary="Add EPUB support">
<c:tickets>
<c:ticket id="13"/>
</c:tickets>
</c:change>
<c:change date="2021-06-27T16:34:56+00:00" summary="Fix a schema bug that rejected valid footnotes in documents"/>
<c:change date="2021-06-27T00:00:00+00:00" summary="Fix a schema bug that rejected valid footnotes in documents"/>
</c:changes>
</c:release>
<c:release date="2022-02-03T22:01:54+00:00" is-open="true" ticket-system="com.github.io7m.xstructural" version="1.4.0">
<c:changes>
<c:change date="2022-02-03T22:01:54+00:00" summary="Fix a bug where documents with comments would be rejected">
<c:tickets>
<c:ticket id="18"/>
</c:tickets>
</c:change>
</c:changes>
</c:release>
</c:releases>
Expand Down
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!-- Comments! -->

<Document xmlns="urn:com.io7m.structural:7:0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
tableOfContentsDepth="3"
tableOfContents="true">

<!-- Comments! -->

<Metadata>
<dc:contributor>A Contributor</dc:contributor>
<dc:creator>A Creator</dc:creator>
Expand Down
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!-- Comments! -->

<Document xmlns="urn:com.io7m.structural:8:0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
tableOfContentsDepth="3"
tableOfContents="true">

<!-- Comments! -->

<Metadata>
<dc:contributor>A Contributor</dc:contributor>
<dc:creator>A Creator</dc:creator>
Expand Down
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!-- Comments! -->

<Document xmlns="urn:com.io7m.structural:7:0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
tableOfContentsDepth="3"
tableOfContents="true">

<!-- Comments! -->

<Metadata>
<dc:contributor>A Contributor</dc:contributor>
<dc:creator>A Creator</dc:creator>
Expand Down
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!-- Comments! -->

<Document xmlns="urn:com.io7m.structural:8:0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
tableOfContentsDepth="3"
tableOfContents="true">

<!-- Comments! -->

<Metadata>
<dc:contributor>A Contributor</dc:contributor>
<dc:creator>A Creator</dc:creator>
Expand Down
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!-- Comments! -->

<Document xmlns="urn:com.io7m.structural:7:0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
tableOfContentsDepth="3"
tableOfContents="true">

<!-- Comments! -->

<Metadata>
<dc:contributor>A Contributor</dc:contributor>
<dc:creator>A Creator</dc:creator>
Expand Down
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!-- Comments! -->

<Document xmlns="urn:com.io7m.structural:8:0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
tableOfContentsDepth="3"
tableOfContents="true">

<!-- Comments! -->

<Metadata>
<dc:contributor>A Contributor</dc:contributor>
<dc:creator>A Creator</dc:creator>
Expand Down
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!-- Comments! -->

<Document xmlns="urn:com.io7m.structural:7:0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
tableOfContentsDepth="3"
tableOfContents="true">

<!-- Comments! -->

<Metadata>
<dc:contributor>A Contributor</dc:contributor>
<dc:creator>A Creator</dc:creator>
Expand Down
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>

<!-- Comments! -->

<Document xmlns="urn:com.io7m.structural:8:0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
tableOfContentsDepth="3"
tableOfContents="true">

<!-- Comments! -->

<Metadata>
<dc:contributor>A Contributor</dc:contributor>
<dc:creator>A Creator</dc:creator>
Expand Down
Expand Up @@ -37,6 +37,8 @@
select="concat('Unexpectedly reached catch-all template: ', namespace-uri(.), ':', node-name(.))"/>
</xsl:template>

<xsl:template match="comment()"/>

<!-- -->
<!-- Top-level web multi templates. -->
<!-- -->
Expand Down
Expand Up @@ -36,6 +36,8 @@
select="concat('Unexpectedly reached catch-all template: ', namespace-uri(.), ':', node-name(.))"/>
</xsl:template>

<xsl:template match="comment()"/>

<!-- -->
<!-- Top-level web single templates. -->
<!-- -->
Expand Down
Expand Up @@ -37,6 +37,8 @@
select="concat('Unexpectedly reached catch-all template: ', namespace-uri(.), ':', node-name(.))"/>
</xsl:template>

<xsl:template match="comment()"/>

<!-- -->
<!-- Top-level web multi templates. -->
<!-- -->
Expand Down
Expand Up @@ -36,6 +36,8 @@
select="concat('Unexpectedly reached catch-all template: ', namespace-uri(.), ':', node-name(.))"/>
</xsl:template>

<xsl:template match="comment()"/>

<!-- -->
<!-- Top-level web single templates. -->
<!-- -->
Expand Down

0 comments on commit 841681f

Please sign in to comment.