Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Add multiple attributes to element via conversion table?

Advisor ,
Jun 14, 2013 Jun 14, 2013

Copy link to clipboard

Copied

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

TOPICS
Structured

Views

615
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Jun 17, 2013 Jun 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

Votes

Translate
Guide ,
Jun 17, 2013 Jun 17, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 17, 2013 Jun 17, 2013

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines