Skip to content

ternary operator not supported in attributes #69

@philshafer

Description

@philshafer

currently, ternary expressions in attributes do not work, though they are parsed without generating an error. The results are garbage:

% grep '?:' /tmp/foo.slax
                                <sampling not=quite/enough ?: more/than/enough ?: just/enough ?: at-least/enough> {
% slaxproc -x  /tmp/foo.slax | grep '?:'
                  <sampling not="{slax:value($slax-ternary-3) quite/enough ?: slax:value($slax-ternary-2) more/than/enough ?: slax:value($slax-ternary-1) just/enough ?: at-least/enough slax:value($slax-ternary-1) slax:value($slax-ternary-2) slax:value($slax-ternary-3)}">

As a first step, an error should be emitted; longer term, a means of supporting this should be created, assumably via a temporary variable.

Thanks,
Phil

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions