Skip to content

Commit

Permalink
remove XSLT from Presentation XML grammar: metanorma/isodoc#609
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Nov 11, 2024
1 parent a64c3fa commit 558a143
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 18 deletions.
10 changes: 1 addition & 9 deletions grammars/isodoc-presentation.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tab = element tab { empty }
## * Extract any attachments into an _{output filename}_attachments folder, to be linked to in HTML.
misccontainer = element metanorma-extension {
AnyElement+,
(ext_toc+ & preprocess-xslt* & localized-strings & metanorma-source-container & source-highlighter-css)
(ext_toc+ & localized-strings & metanorma-source-container & source-highlighter-css)
}

## CSS of the Rouge code highlighter for the document: consists of flavour default,
Expand All @@ -29,14 +29,6 @@ ext_toc = element toc {
element title { PureTextElement+ }
}

## Preprocessing XSLT to apply for a specific output format
preprocess-xslt = element preprocess-xslt {
## The format on which to run this Preprocessing XSLT
attribute format { "html" | "pdf" | "doc" },
## The XSLT to run on the Presentation XML, before passing it for processing on to the target format
AnyElement+
}

## i18n equivalents, to be applied in PDF when needing to generate i18n output on the fly
localized-strings = element localized-strings {
localized-string+
Expand Down
10 changes: 5 additions & 5 deletions grammars/isodoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ normative or informative references, some split references into sections organiz
<a:documentation>Content of note</a:documentation>
<oneOrMore>
<choice>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="ul"/>
<ref name="ol"/>
<ref name="dl"/>
Expand Down Expand Up @@ -411,7 +411,7 @@ normative or informative references, some split references into sections organiz
<element name="note">
<ref name="OptionalId"/>
<oneOrMore>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
</oneOrMore>
</element>
</define>
Expand Down Expand Up @@ -1976,7 +1976,7 @@ used in document amendments</a:documentation>
<oneOrMore>
<choice>
<a:documentation>Content of the verbal representation of the term</a:documentation>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="dl"/>
<ref name="ol"/>
<ref name="ul"/>
Expand Down Expand Up @@ -2014,7 +2014,7 @@ used in document amendments</a:documentation>
<oneOrMore>
<choice>
<a:documentation>Content of the term note</a:documentation>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="ul"/>
<ref name="ol"/>
<ref name="dl"/>
Expand All @@ -2036,7 +2036,7 @@ used in document amendments</a:documentation>
<ref name="dl"/>
<ref name="quote"/>
<ref name="sourcecode"/>
<ref name="paragraph"/>
<ref name="paragraph-with-footnote"/>
<ref name="figure"/>
</choice>
</oneOrMore>
Expand Down
2 changes: 1 addition & 1 deletion grammars/relaton-model-bsi
2 changes: 1 addition & 1 deletion grammars/relaton-model-gb
2 changes: 1 addition & 1 deletion grammars/relaton-model-iso
2 changes: 1 addition & 1 deletion grammars/relaton-models

0 comments on commit 558a143

Please sign in to comment.