Tools, FAQ, Tutorials:
Use '@(...)' Expressions in XML Attributes
When using "@(...)" expressions in XML attributes as part of an policy statement, do I need to worry about string quotations?
✍: FYIcenter.com
If you are using a "@(...)" expression in XML attributes as part of an policy statement,
and string literals are used in the "@(...)" expression, the syntax of
the final policy statement is confusing:
For example, the following "set-variable" policy statement uses a "@(...)" expression as part of an attribute value to set a new variable to be used later:
<set-variable name="message" value="@("Hello world!")" />
From XML syntax point of view, the above XML element is actually not valid. Because the XML attribute value can not have nested quotes.
But Azure.com has no problem take the above XML statement.
It could be that Azure.com is processing the @(...) expression first, before processing the XML element.
⇒ Use < Sign in '@(...)' Expressions
2017-11-12, 2094👍, 0💬
Popular Posts:
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
How To Control Vertical Alignment? By default, text in all table cells are aligned to the top vertic...
How to add request URL Template Parameters to my Azure API operation 2017 version to make it more us...
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...
Where to get a JSON.stringify() Example Code in JavaScript? Here is a good JSON.stringify() example ...