Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems inserting   with PL/SQL Developer

I have the following script that I want to insert into a table, but I'm having some issues 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>&nbsp;</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 is the following

<xsl:text>&nbsp;</xsl:text>

I'm using PL/SQL Developer and when I run the script above it recognises

&nbsp;

as an entity and I then have to type in what value I want in it. What I want is a simple whitespace within the XSL such that the first and last name will be separated. I've tried all suggestions from the following link: orafaq - I just cant get it to work. Either it fails when I try to insert or it fails when I extract the data.

Is there some easy way of inserting a whitespace in the XSL?

like image 688
Linora Avatar asked Jan 09 '12 14:01

Linora


People also ask

Why can't I fully insert a tampon?

Potential complication: vaginismus The other reason some people can't insert a tampon is because of a condition called VAGINISMUS, which is when the muscles around the vaginal opening squeeze so tight, they won't let anything in the vagina.

Why can't my daughter insert a tampon?

Some girls are born with a very small opening in the hymen, which prevents them from inserting tampons. However, this is true in only about 2% of teens. Others are just nervous the first time inserting a tampon and need practice.

Why does it hurt when I try to put in a tampon?

It may hurt when you are trying to insert your tampon because you are really stressed out and tensing up your muscles down there, which creates resistance and makes it painful and difficult to insert a tampon.

Why does my body push out tampons?

Tight pelvic floor muscles can be a big cause because it can push out your tampon, making it feel like it won't stay in. In fact, a weak pelvic floor or vaginal walls with less support can also make your tampon difficult to stay in.


2 Answers

use

'<xsl:text>'||'&'||'nbsp;</xsl:text>'

it will solve problem everywhere and forever, and as well as for you - for every future user.

Just isolate the symbol

like image 139
smnbbrv Avatar answered Sep 23 '22 15:09

smnbbrv


Use a command window instead of a SQL window to run scripts in PL/SQL Developer. To transform one kind of window into another type, just right-click anywhere in the window and select "Change Window to" => "Command Window".

Then run your script as in SQL*Plus -- in this case with SET DEFINE OFF as the first line.

like image 27
Vincent Malgrat Avatar answered Sep 21 '22 15:09

Vincent Malgrat