Skip to content

Commit

Permalink
Also skip Documentation children of Attribute elements when downgradi…
Browse files Browse the repository at this point in the history
…ng components

Refs #5
  • Loading branch information
twagoo committed Aug 9, 2016
1 parent 3c787bd commit d8424f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
</Type>
</xsl:if>
<!-- @Required is skipped -->
<xsl:apply-templates select="node()"/>
<xsl:apply-templates select="node() except Documentation"/>
</Attribute>
</xsl:template>

Expand Down
4 changes: 3 additions & 1 deletion src/test/resources/toolkit/downgrade/profiles/test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
ConceptLink="" name="test">
<Documentation>Element documentation</Documentation>
<AttributeList>
<Attribute name="test" Required="true" ValueScheme="string"/>
<Attribute name="test" Required="true" ValueScheme="string">
<Documentation>Attribute documentation</Documentation>
</Attribute>
</AttributeList>
</Element>
</Component>
Expand Down

0 comments on commit d8424f1

Please sign in to comment.