我们正在将旧版HTML文件转换为DITA.我想在href属性中转换带有反斜杠的Windows路径
<a href="c:\developer\file.html">
Run Code Online (Sandbox Code Playgroud)
转发斜线
<xref href="c:/developer/file.dita">
Run Code Online (Sandbox Code Playgroud)
我试图使用替换和翻译(XSLT是v2)但没有成功.我也尝试了http://geekswithblogs.net/Erik/archive/2008/04/01/120915.aspx上的string.replace方法,结果相同.