You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having this tss: include { content: data(getInclude(attr(file))); content-mode: replace; format: html; }
and this xml: <include file="path/tofile.xml"></include>
Transphporm tries to calculate the attribute (and obviously fails) instead of passing it as a string to my getInclude($file) function. Instead of the expected string "path/tofile.xml" the function receives "NAN".
If I remove "path/" the function receives "xml", so there's also some weird behaviour with attribute values with a "." in it. Weirdly, Transphporm doesn't try to calculate attribute values with a "-" in it, so it's very inconsistent.
I would expect the value to get passed as-is, i.e. as a string.
Thanks in advance
The text was updated successfully, but these errors were encountered:
This is treating the value as a division. Unfortunately this is the same issue as #221, and a rather large job as it will require rewriting a lot of the parser. I'm glad you've got a workaround in this instance so I'll close this for now, but keep an eye on #221 as I'll update that when I recreate the parser.
Hi,
I'm having this tss:
include { content: data(getInclude(attr(file))); content-mode: replace; format: html; }
and this xml:
<include file="path/tofile.xml"></include>
Transphporm tries to calculate the attribute (and obviously fails) instead of passing it as a string to my getInclude($file) function. Instead of the expected string "path/tofile.xml" the function receives "NAN".
If I remove "path/" the function receives "xml", so there's also some weird behaviour with attribute values with a "." in it. Weirdly, Transphporm doesn't try to calculate attribute values with a "-" in it, so it's very inconsistent.
I would expect the value to get passed as-is, i.e. as a string.
Thanks in advance
The text was updated successfully, but these errors were encountered: