[xsl] sql if exists

Subject: [xsl] sql if exists
From: "Szabo, Patrick \(LNG-VIE\)" <patrick.szabo@xxxxxxxxxxxxx>
Date: Wed, 15 Apr 2009 09:32:14 +0200
Hi,

IB4m using saxon 9 and xslt 2.

I want to insert data into a database with my xslt-sheet which is no problem.
The problem is that i only want to do that under certain conditions.

In SQL thatB4d look like this:

"IF EXISTS ( select * from...)
	Do something
ELSE
	do something else"

Is there a way to use that code in my xslt-sheet ?!

Currently iB4m using "java:/net.sf.saxon.sql.SQLElementFactory" to insert
something at all.

Thx already

cheers

Patrick Szabo
EPD / XSLT Konvertierung
Tel.: +43-1-534 52-1573
Fax.: +43-1-534 52-1573
patrick.szabo@xxxxxxxxxxxxx

LexisNexis Verlag ARD Orac GmbH & Co KG
Marxergasse 25, 1030 Wien
FN 8333f, Handelsgericht Wien
www.lexisnexis.at <http://www.lexisnexis.at/>

 <file://C:\Dokumente und
Einstellungen\szaboP\Anwendungsdaten\Microsoft\Signatures\LN Vienna
signature-Dateien\image001.jpg>




Patrick Szabo
XSLT-Entwickler

Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146

Patrick.Szabo@xxxxxxxxxxxxx

LexisNexis Verlag ARD Orac GmbH & Co KG
Marxergasse 25, 1030 Wien
FN 8333f, Handelsgericht Wien
http://www.lexisnexis.at/

Current Thread