Move Units children of Component to Model element.#8
Open
hsorby wants to merge 12 commits intocellml:mainfrom
Open
Move Units children of Component to Model element.#8hsorby wants to merge 12 commits intocellml:mainfrom
hsorby wants to merge 12 commits intocellml:mainfrom
Conversation
jonc125
reviewed
Aug 17, 2021
| <!-- Units elements can only be declared as a child of the model element --> | ||
| <xsl:for-each select="cellml10:component/cellml10:units | cellml11:component/cellml11:units" > | ||
| <xsl:element name="{local-name()}" namespace="http://www.cellml.org/cellml/2.0#"> | ||
| <xsl:apply-templates select="@* | node()"/> |
Contributor
There was a problem hiding this comment.
I think this will result in attributes on the units elements being ignored, since the template for @* above does nothing. Have you checked this?
Contributor
Author
There was a problem hiding this comment.
You're correct, now I have added a copy command to copy the name attribute. Testing with the van der pol model seems to give the correct result now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4.