Fix rendering of XML Attributes in profiles
This commit is contained in:
parent
9da31ae8ad
commit
737c51f2a5
|
@ -848,8 +848,16 @@ public class StructureDefinitionRenderer extends ResourceRenderer {
|
||||||
if (element.hasSliceName())
|
if (element.hasSliceName())
|
||||||
sName = sName +":"+element.getSliceName();
|
sName = sName +":"+element.getSliceName();
|
||||||
used.used = true;
|
used.used = true;
|
||||||
if (logicalModel && element.hasRepresentation(PropertyRepresentation.XMLATTR))
|
if (logicalModel) {
|
||||||
sName = "@"+sName;
|
if (element.hasRepresentation(PropertyRepresentation.XMLATTR)) {
|
||||||
|
sName = "@"+sName;
|
||||||
|
} else if (element.hasUserData("derived.pointer")) {
|
||||||
|
ElementDefinition drv = (ElementDefinition) element.getUserData("derived.pointer");
|
||||||
|
if (drv.hasRepresentation(PropertyRepresentation.XMLATTR)) {
|
||||||
|
sName = "@"+sName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Cell nc = genElementNameCell(gen, element, profileBaseFileName, snapshot, corePath, imagePath, root, logicalModel, allInvariants, profile, typesRow, row, hasDef, ext, used, ref, sName, all);
|
Cell nc = genElementNameCell(gen, element, profileBaseFileName, snapshot, corePath, imagePath, root, logicalModel, allInvariants, profile, typesRow, row, hasDef, ext, used, ref, sName, all);
|
||||||
switch (context.getStructureMode()) {
|
switch (context.getStructureMode()) {
|
||||||
case BINDINGS:
|
case BINDINGS:
|
||||||
|
|
Loading…
Reference in New Issue