Skip to main content
ScottPrentice
Inspiring
June 14, 2013
Answered

Add multiple attributes to element via conversion table?

  • June 14, 2013
  • 1 reply
  • 665 views

Hi...

I'm pretty sure I know the answer to this question, but am looking for validation.

Is it possible to add multiple attribute values to an element using a conversion table? The following conversion table creates the <some-elem> element with the @attrname attribute set to "attrval" .. but what if I wanted to set two attributes? I tried this .. some-elem[attrname="attrval"][otherattrname="attrval2"] .. but the second definition was ignored. Is there any way to do this (with conversion tables)?

Wrap this objectIn this elementWith this qualifier
P:some-para-tagsome-elem[attrname="attrval"]



Thanks!

...scott

This topic has been closed for replies.
Correct answer Van Kurtz

Scott,

The structured apps reference says to separate the two attribute assignments with an ampersand, as in

some-elem[atttrname="attrval" & otherattrname="attrval2"]

I have never done it, so it is not tested.

Van

1 reply

Van Kurtz
Van KurtzCorrect answer
Inspiring
June 17, 2013

Scott,

The structured apps reference says to separate the two attribute assignments with an ampersand, as in

some-elem[atttrname="attrval" & otherattrname="attrval2"]

I have never done it, so it is not tested.

Van

ScottPrentice
Inspiring
June 17, 2013

Thanks Van!

That certainly does work. You can even add more than two attributes with this technique! I can't tell you how many times I've read through the Structure App Dev Guie, and never seen that.

Cheers!

...scott