Cannot get xslt to output an (&) even after escaping the character

后端 未结 13 1734
轮回少年
轮回少年 2020-12-17 10:13

I am trying to create a query string of variable assignments separated by the & symbol (ex: \"var1=x&var2=y&...\"). I plan to pass this

13条回答
  •  粉色の甜心
    2020-12-17 10:41

    org.apache.xalan.xslt.Process, version 2.7.2 outputs to the "Here is a runnable, short and complete demo how to produce such URL" mentioned above:

    http://www.myUrl.com/?vA=a&vX=x&vY=y&vZ=z11522
    

    The XML declaration is suppressed with an additional omit-xml-declaration="yes", but however with output method="text" escaping the ampersands is not justifiable.

提交回复
热议问题