I have the following script that I want to insert into a table, but I have some problems with it.
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;
The part of interest consists of the following
<xsl:text> </xsl:text>
I am using PL / SQL Developer and when I run the script above it will recognize
as an object, and then I need to enter the value that I want in it. I want a simple space inside XSL, so the first and last name will be separated. I tried all the suggestions at the following link: orafaq - I just can't get it to work. Either it fails when I try to insert, or it fails when I retrieve data.
Is there an easy way to insert a space in XSL?
source share