Skip to content

Commit

Permalink
https://github.com/metanorma/isodoc/issues/617
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Dec 5, 2024
1 parent 54f5326 commit 9c8c383
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions grammars/isodoc-presentation.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ script = element script {
ScriptType
}

## If Semantic XML content is replicated in a Presentation XML element, any @id attributes need to be restricted
## to the Presentation XML element, because that is what anchors in rendered documents will point to.
## Any @id attributes in the source Semantic XML element need to be moved to @original-id, to avoid there
## being two elements in the Presentation XML with the same @id
RequiredId &=
attribute original-id { xsd:ID }?

## As for RequiredId
OptionalId &=
attribute original-id { xsd:ID }?

address =
element address {
## Address decomposed into its component parts
Expand Down

0 comments on commit 9c8c383

Please sign in to comment.