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
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.