Skip to content

Commit

Permalink
Releasing focheck 0.5.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgraham-antenna committed Sep 27, 2017
1 parent 6bf1e74 commit b8f076b
Show file tree
Hide file tree
Showing 33 changed files with 803 additions and 666 deletions.
4 changes: 2 additions & 2 deletions add-on-ja.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oxygenxml.com/ns/extension http://www.oxygenxml.com/ns/extension/extensions.xsd">
<xt:extension id="focheck">
<xt:location href="https://github.com/AntennaHouse/focheck/releases/download/v0.5.5/focheck-framework-ja-0.5.5.zip"/>
<xt:version>0.5.5</xt:version>
<xt:location href="https://github.com/AntennaHouse/focheck/releases/download/v0.5.6/focheck-framework-ja-0.5.6.zip"/>
<xt:version>0.5.6</xt:version>
<xt:oxy_version>14.0+</xt:oxy_version>
<xt:type>framework</xt:type>
<xt:author>Antenna House, Inc.</xt:author>
Expand Down
4 changes: 2 additions & 2 deletions add-on.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oxygenxml.com/ns/extension http://www.oxygenxml.com/ns/extension/extensions.xsd">
<xt:extension id="focheck">
<xt:location href="https://github.com/AntennaHouse/focheck/releases/download/v0.5.5/focheck-framework-0.5.5.zip"/>
<xt:version>0.5.5</xt:version>
<xt:location href="https://github.com/AntennaHouse/focheck/releases/download/v0.5.6/focheck-framework-0.5.6.zip"/>
<xt:version>0.5.6</xt:version>
<xt:oxy_version>14.0+</xt:oxy_version>
<xt:type>framework</xt:type>
<xt:author>Antenna House, Inc.</xt:author>
Expand Down
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Version of current code base. Included in generated files.
# See instructions in 'build.xml'.
version=0.5.5
version=0.5.6

# Location of .jar for Saxon XSLT 2.0 (or later) processor
saxon.jar.windows=C:/saxon/saxon9he.jar
Expand Down
121 changes: 66 additions & 55 deletions build/expanded.sch

Large diffs are not rendered by default.

69 changes: 44 additions & 25 deletions build/schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
</xsl:attribute>
<xsl:attribute name="id">axf</xsl:attribute>
<xsl:attribute name="name">axf</xsl:attribute>
<svrl:text>http://www.antennahouse.com/product/ahf64/ahf-ext.html#axf.document-info</svrl:text>
<svrl:text>http://www.antennahouse.com/product/ahf65/ahf-ext.html#axf.document-info</svrl:text>
<xsl:apply-templates/>
</svrl:active-pattern>
<xsl:apply-templates select="/" mode="M11"/>
Expand All @@ -224,7 +224,7 @@


<!--RULE -->
<xsl:template match="fo:basic-link | fo:bookmark" priority="1023" mode="M4">
<xsl:template match="fo:basic-link | fo:bookmark" priority="1024" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:basic-link | fo:bookmark"/>

Expand All @@ -247,7 +247,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:float" priority="1022" mode="M4">
<xsl:template match="fo:float" priority="1023" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:float"/>

<!--REPORT -->
Expand All @@ -268,7 +268,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:footnote" priority="1021" mode="M4">
<xsl:template match="fo:footnote" priority="1022" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:footnote"/>

<!--REPORT -->
Expand Down Expand Up @@ -330,7 +330,7 @@

<!--RULE -->
<xsl:template match="fo:list-item-body[empty(@start-indent)]"
priority="1020"
priority="1021"
mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:list-item-body[empty(@start-indent)]"/>
Expand All @@ -353,7 +353,7 @@

<!--RULE -->
<xsl:template match="fo:list-item-label[empty(@end-indent)]"
priority="1019"
priority="1020"
mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:list-item-label[empty(@end-indent)]"/>
Expand All @@ -375,7 +375,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:marker" priority="1018" mode="M4">
<xsl:template match="fo:marker" priority="1019" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:marker"/>

<!--ASSERT -->
Expand Down Expand Up @@ -445,7 +445,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:retrieve-marker" priority="1017" mode="M4">
<xsl:template match="fo:retrieve-marker" priority="1018" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:retrieve-marker"/>

<!--ASSERT -->
Expand All @@ -467,7 +467,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:retrieve-table-marker" priority="1016" mode="M4">
<xsl:template match="fo:retrieve-table-marker" priority="1017" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:retrieve-table-marker"/>

Expand All @@ -490,7 +490,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:root" priority="1015" mode="M4">
<xsl:template match="fo:root" priority="1016" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:root"/>

<!--ASSERT -->
Expand All @@ -514,7 +514,7 @@

<!--RULE -->
<xsl:template match="fo:*/@character | fo:*/@grouping-separator"
priority="1014"
priority="1015"
mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:*/@character | fo:*/@grouping-separator"/>
Expand Down Expand Up @@ -543,7 +543,7 @@

<!--RULE -->
<xsl:template match="fo:*/@column-count | fo:*/@number-columns-spanned"
priority="1013"
priority="1014"
mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:*/@column-count | fo:*/@number-columns-spanned"/>
Expand Down Expand Up @@ -571,7 +571,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@column-width" priority="1012" mode="M4">
<xsl:template match="fo:*/@column-width" priority="1013" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:*/@column-width"/>
<xsl:variable name="number-columns-spanned"
select="ahf:parser-runner(../@number-columns-spanned)"/>
Expand All @@ -596,7 +596,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@flow-map-reference" priority="1011" mode="M4">
<xsl:template match="fo:*/@flow-map-reference" priority="1012" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:*/@flow-map-reference"/>

Expand All @@ -617,7 +617,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@flow-name" priority="1010" mode="M4">
<xsl:template match="fo:*/@flow-name" priority="1011" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:*/@flow-name"/>

<!--ASSERT -->
Expand Down Expand Up @@ -656,7 +656,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@flow-name-reference" priority="1009" mode="M4">
<xsl:template match="fo:*/@flow-name-reference" priority="1010" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:*/@flow-name-reference"/>

Expand Down Expand Up @@ -699,7 +699,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@hyphenation-character" priority="1008" mode="M4">
<xsl:template match="fo:*/@hyphenation-character" priority="1009" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:*/@hyphenation-character"/>

Expand Down Expand Up @@ -727,7 +727,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@language" priority="1007" mode="M4">
<xsl:template match="fo:*/@language" priority="1008" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:*/@language"/>
<xsl:variable name="expression" select="ahf:parser-runner(.)"/>

Expand Down Expand Up @@ -785,7 +785,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:marker/@marker-class-name" priority="1006" mode="M4">
<xsl:template match="fo:marker/@marker-class-name" priority="1007" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:marker/@marker-class-name"/>

Expand All @@ -810,7 +810,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@master-name" priority="1005" mode="M4">
<xsl:template match="fo:*/@master-name" priority="1006" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:*/@master-name"/>

<!--ASSERT Warning-->
Expand All @@ -834,7 +834,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@master-reference" priority="1004" mode="M4">
<xsl:template match="fo:*/@master-reference" priority="1005" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:*/@master-reference"/>

Expand Down Expand Up @@ -875,7 +875,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@overflow" priority="1003" mode="M4">
<xsl:template match="fo:*/@overflow" priority="1004" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:*/@overflow"/>

<!--REPORT Warning-->
Expand All @@ -897,7 +897,7 @@

<!--RULE -->
<xsl:template match="fo:index-key-reference/@ref-index-key"
priority="1002"
priority="1003"
mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:index-key-reference/@ref-index-key"/>
Expand Down Expand Up @@ -937,7 +937,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@region-name" priority="1001" mode="M4">
<xsl:template match="fo:*/@region-name" priority="1002" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:*/@region-name"/>

<!--ASSERT Warning-->
Expand Down Expand Up @@ -1051,7 +1051,7 @@
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@region-name-reference" priority="1000" mode="M4">
<xsl:template match="fo:*/@region-name-reference" priority="1001" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
context="fo:*/@region-name-reference"/>

Expand All @@ -1073,6 +1073,25 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<!--RULE -->
<xsl:template match="fo:*/@span" priority="1000" mode="M4">
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl" context="fo:*/@span"/>

<!--REPORT warning-->
<xsl:if test="exists(ancestor::fo:static-content)">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
test="exists(ancestor::fo:static-content)">
<xsl:attribute name="role">warning</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
</xsl:attribute>
<xsl:attribute name="line-number" select="saxon:line-number()"/>
<xsl:attribute name="column-number" select="saxon:column-number()"/>
<svrl:text>@span has effect only on areas returned by an fo:flow.</svrl:text>
</svrl:successful-report>
</xsl:if>
</xsl:template>
<xsl:template match="text()" priority="-1" mode="M4"/>
<xsl:template match="@*|node()" priority="-2" mode="M4">
<xsl:apply-templates select="@*|*" mode="M4"/>
Expand Down
13 changes: 12 additions & 1 deletion build/unabstract.sch
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@
<assert test="count(ancestor::fo:flow-map//fo:region-name-specifier/@region-name-reference[. eq current()]) = 1">region-name-reference="<value-of select="."/>" must be unique within its fo:flow-map.</assert>
</rule>

<rule context="fo:*/@span">

<report test="exists(ancestor::fo:static-content)" sqf:fix="span_fix" role="warning">@span has effect only on areas returned by an fo:flow.</report>
<sqf:fix id="span_fix">
<sqf:description>
<sqf:title>Delete @span</sqf:title>
</sqf:description>
<sqf:delete/>
</sqf:fix>
</rule>

</pattern>
<pattern xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" id="fo-property">
<xsl:include href="file:/E:/Projects/oxygen/focheck-internal/focheck/xsl/parser-runner.xsl"/>
Expand Down Expand Up @@ -3245,7 +3256,7 @@
<pattern id="axf">


<p>http://www.antennahouse.com/product/ahf64/ahf-ext.html#axf.document-info</p>
<p>http://www.antennahouse.com/product/ahf65/ahf-ext.html#axf.document-info</p>
<rule context="axf:document-info[@name = ('author-title', 'description-writer', 'copyright-status', 'copyright-notice', 'copyright-info-url')]" id="axf-1" role="axf-1">
<assert test="empty(../axf:document-info[@name eq 'xmp'])" role="axf-2">name="<value-of select="@name"/>" cannot be used when axf:document-info with name="xmp" is present.</assert>
</rule>
Expand Down
2 changes: 1 addition & 1 deletion schema-ja/axf-inherited.rnc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Autogenerated file. Do not edit.
# Generated using 'focheck' version 0.5.5
# Generated using 'focheck' version 0.5.6
#
# Copyright 2017 Antenna House, Inc.
#
Expand Down
Loading

0 comments on commit b8f076b

Please sign in to comment.