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, 2326🔥, 0💬
Popular Posts:
How To Move Uploaded Files To Permanent Directory in PHP? PHP stores uploaded files in a temporary d...
What Is HTML? HTML (HyperText Markup Language) is the standard markup language for creating Web page...
How to Instantiate Chaincode on BYFN Channel? You can follow this tutorial to Instantiate Chaincode ...
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
Where to find tutorials on API Management Services at Azure Portal? Here is a list of tutorials to a...