Her*_*ter 5 oracle xslt whitespace plsql html-entities
我有以下脚本要插入表中,但我遇到了一些问题.
declare
v_xslt9 varchar2(32767) := '<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" encoding="UTF-8" indent="yes"/> <xsl:template name="Template"> <xsl:text>Kære </xsl:text> <xsl:value-of select="/nameValueMap/entry[string=''FIRST_NAME'']/string[2]"/> <xsl:text> </xsl:text> <xsl:value-of select="/nameValueMap/entry[string=''LAST_NAME'']/string[2]"/></xsl:template> </xsl:stylesheet>'
begin
insert into XSLT values ('','Note',sysdate,v_xslt9,sysdate,'T','')
end;
Run Code Online (Sandbox Code Playgroud)
感兴趣的部分如下
<xsl:text> </xsl:text>
Run Code Online (Sandbox Code Playgroud)
我正在使用PL/SQL Developer,当我运行上面的脚本时,它识别出来
Run Code Online (Sandbox Code Playgroud)
作为一个实体,然后我必须输入我想要的价值.我想要的是XSL中的一个简单的空格,以便分隔名字和姓氏.我已经尝试了以下链接中的所有建议:orafaq - 我只是无法让它工作.我尝试插入时失败,或者在提取数据时失败.
是否有一些简单的方法在XSL中插入空格?
使用
'<xsl:text>'||'&'||'nbsp;</xsl:text>'
Run Code Online (Sandbox Code Playgroud)
它将解决各地和永远的问题,以及为您解决问题 - 为每个未来的用户.
只需隔离符号即可