Showing results for 
Search instead for 
Did you mean: 

How do I reference extended attributes in the XML definition

Former Member
0 Kudos

I have an XSD model with a simple string extended attribute at the Element level and I'd like to update the XML Language definition to include the value of my extended attribute in the XML as a commented field.

What syntax do I need to use to access the extended attribute?

View Entire Topic
Former Member
0 Kudos

I have found the resolution. Bridging pages 248-249 of the Customizing PowerDesigner guide, there is "Note: To access an extended attribute defined in another extension file attached to the model, prefix the name with the .D formatting option. For example: %.D:MyExtAtt%"

I can put the following code in the 'extendedAttributesDecl' to comment my Elements with the value of my extended attribute:


  <!-- element UIR: %.D:oURI%-->


Bonus item was finding that './/' or '.comment' can be used to add inline comments to the GTL code that won't be output in the generated result.