Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Option for Explicit Closing Tags #1072

Open
T-Betts opened this issue Sep 19, 2024 · 1 comment
Open

Feature Request - Option for Explicit Closing Tags #1072

T-Betts opened this issue Sep 19, 2024 · 1 comment

Comments

@T-Betts
Copy link

T-Betts commented Sep 19, 2024

Hi Jonas,

Power Pages documentation says that any fetchXML used in liquid on portals should not use self-closing tags:

When using fetchxml to query data, ensure you don't use self-closing tags. For example, instead of <attribute name="title"/>, use <attribute name="title"></attribute> with explicit closure tag .

https://learn.microsoft.com/en-us/power-pages/configure/liquid/template-tags#fetchxml

Would it be possible to add a flag to FetchXMLBuilder so that we can pick between self-closing tags and explicit closing tags?

Thanks,

Tom

@rappen
Copy link
Owner

rappen commented Sep 20, 2024

Thanks, that documentation seems a bit off to me...
Self-closing is a standard XML format. I'll contact MS to find out why Liquid doesn't fully support XML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants