-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Units children of Component to Model element. #8
base: main
Are you sure you want to change the base?
Conversation
<!-- 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()"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will result in attributes on the units
elements being ignored, since the template for @*
above does nothing. Have you checked this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Fixes #4.