In DocumentAssembler in the power tools we can access attributes that are part of a designated list.
For a table, we start a list within a content control like this:
<Table Select=”./Orders/Order” />
And then we can use another control to access the attribute that has the above XPath:
<Content Select=”@Number”/>
We know then that the xml looks similar to:
<Orders>
<Order Number=”1″/>
</Orders>
But how do I access the attribute if I have xml like this:
<Client FirstName=”John” LastName=”Smith”/>
I tried this
<Content Select =”./Client[@FirstName]”/>
but it didn’t produce anything … but it also didn’t complain.
Is there a way to do this?