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
currently, ternary expressions in attributes do not work, though they are parsed without generating an error. The results are garbage:
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