Skip to content

Commit

Permalink
https://github.com/metanorma/isodoc/issues/637
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Feb 6, 2025
1 parent 6871264 commit 4ef5526
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions grammars/isodoc-presentation.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,9 @@ fmt_termsource = element fmt-termsource {
TextElement*
}

## UNWRAP: replace <concept> with the rendered form of the crossreference
concept = element concept {
## replace <concept> with the rendered form of the crossreference
concept &= fmt-concept
fmt-concept = element fmt-concept {
## refterm and renderterm are removed. The crossrefence, eref, erefstack, xref, termref, is replaced with
## the content of renderterm if present and requested (@ref),
## with the attributes of Semantic XML concept used to determine its rendering:
Expand All @@ -326,8 +327,9 @@ concept = element concept {
## Link to a definition of the term in an element of the current document
xref |
## Link to a definition of the term in a termbase
termref
)
termref |
TextElement
)+
}

## replace <related> with the crossreference to the term being related to (wrapped in semx for related)
Expand Down

0 comments on commit 4ef5526

Please sign in to comment.