如何在xml中输出空格?

snaill 2001-12-05 02:33:15
...全文
210 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
karma 2001-12-07
  • 打赏
  • 举报
回复
replace all spaces in aaa with non-breaking spaces,   is same as  
karma 2001-12-07
  • 打赏
  • 举报
回复
yes, you need the semi-colon at the end, " "
snaill 2001-12-07
  • 打赏
  • 举报
回复
 能直接用吗?
snaill 2001-12-06
  • 打赏
  • 举报
回复
translate(aaa,' ',' ')"是什么意思?
bugcool 2001-12-06
  • 打赏
  • 举报
回复
<![CDATA[ test]]>
karma 2001-12-05
  • 打赏
  • 举报
回复
if you are using XSLT, the space should be there, you just do not see it, try to output:
***<xsl:value-of select="aaa"/>***

if you want non-breaking space, try
<xsl:value-of select="translate(aaa,' ',' ')" />
snaill 2001-12-05
  • 打赏
  • 举报
回复
e.g.
xml file:
<aaa> test</aaa>
xsl file:
<xsl:value-of select="aaa"/>
result:
"test"
可我想输出" test"
怎么办?请教!
osdx 2001-12-05
  • 打赏
  • 举报
回复
不懂你的意思,可以直接输出的啊!

8,909

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧