How do I format XML ampersands for XSL transform

∥☆過路亽.° 提交于 2019-12-13 05:03:41

问题


I am attempting to transform the XML I'm retrieving from an RSS feed. This links within this feed contain ampersands which, as I mentioned here, are causing the transform to bomb. (Replacing all of the "&" with "&" in the RSS's XML allows the transform to complete.)

Can anyone recommend a good approach for reformatting the RSS XML, or is there no good way to do this?


回答1:


In XML you need to use & to escape an ampersand. XSLT is XML so the same rule applies.



来源:https://stackoverflow.com/questions/26162954/how-do-i-format-xml-ampersands-for-xsl-transform

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!