MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/share/xalan-j2/samples/extensions/sql/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/xalan-j2/samples/extensions/sql/Xalan SQL Extension.doc
аЯрЁБс>ўџ	DFўџџџCџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџьЅСY	П™%bjbjѓWѓW	<‘=‘=™!џџџџџџ]ЊЊЊЊЊЊЊОООООк$О6ЖЂММММ—ТY
Ь%hћ§§§§§§$ьєр„!Њ——!3
ЊЊММл3
3
3
HЊМЊМћООЊЊЊЊћ3
Ш3
ћЊЊћМўn]kћЋРООе^ћXalan SQL Extension
Connections and Queries
 TOC \o "2-3" \t "Heading 1,1" Database Connections	 PAGEREF _Toc509119435 \h 1
Providing Connection information in the XSL File	 PAGEREF _Toc509119436 \h 1
XConnection(Sring DBDriver, String DBurl)	 PAGEREF _Toc509119437 \h 1
XConnection(String DBDriver, String DBurl, String User, String Password)	 PAGEREF _Toc509119438 \h 1
XConnection(String DBDriver, String DBurl, NodeList Properties)	 PAGEREF _Toc509119439 \h 1
Providing Connection information in the XML File	 PAGEREF _Toc509119440 \h 1
XConnection(NodeList ConnectionData)	 PAGEREF _Toc509119441 \h 1
Using Existing Connections in a connection pool	 PAGEREF _Toc509119442 \h 2
XConnection(String ConnectionName)	 PAGEREF _Toc509119443 \h 2
Connection Pools	 PAGEREF _Toc509119444 \h 2
Overview	 PAGEREF _Toc509119445 \h 2
Creating a new wrapper	 PAGEREF _Toc509119446 \h 2
The Default Connection Pool	 PAGEREF _Toc509119447 \h 2
Queries	 PAGEREF _Toc509119448 \h 2
Standard queries	 PAGEREF _Toc509119449 \h 2
Parameter based queries	 PAGEREF _Toc509119450 \h 2
Overview	 PAGEREF _Toc509119451 \h 2
Handling Value and Type Information	 PAGEREF _Toc509119452 \h 2
Examples	 PAGEREF _Toc509119453 \h 3
Basic	 PAGEREF _Toc509119454 \h 3
External Connections	 PAGEREF _Toc509119455 \h 3
PQuery	 PAGEREF _Toc509119456 \h 3

Database Connections
The SQL Extension provides 2 basic mechanisms to connect to the database. The connection information can either be provided in the XSL/XML or pulled from a Connection Pool that was created outside the Xalan library.
The XConnection object is used to represent a connection to the database. The actual connection is established through the object constructor. Each of the different mechanisms differs with the signature of the extension.
When the connection information is provided in the XSL or XML sources, a default connection pool will be created on its behalf but due to restrictions in some drivers, the actual pooling of connections will disabled by default. See Connection Pools, The Default Connection Pool.
Providing Connection information in the XSL File
When providing Connection Information from the XSL or XML input sources, the XConnection object will create a default connection pool that will exist for the lifetime of the Transformation object.
XConnection(Sring DBDriver, String DBurl)
Create a standard JDBC connection using the specified driver and URL. This is used primarily for local databases that do not return user identification.
XConnection(String DBDriver, String DBurl, String User, String Password)
Create a standard JDBC Connection, which also provides user identification.
XConnection(String DBDriver, String DBurl, NodeList Properties)
Create a standard JDBC connection that loads the database driver using the specified URL. The NodeList provides will then be converted into a properties object which will be passes in when getting the JDBC connection.
Providing Connection information in the XML File
XConnection(NodeList ConnectionData)
Create connection and pass in the complete connection information as a Nodelist. This allows the XML data to provide the connection information. The node list will be used to create a named value pair list where the Node Name will represent the name and the Node Value will be the value. Required Tags consist of “dbdriver” and “dburl”. Optional tags can include “user” and “password” to specify the user identification but can also include any other database connection property.
Using Existing Connections in a connection pool
XConnection(String ConnectionName)
The Xalan SQL Extensions allows the controlling program to create an external JDBC Connection Pool and reference the connection pools by name inside the Stylsheet. Besides providing a mechanism to share connection resources with Xalan, is also allows the Stylesheet to not be concerned with the Connection properties all together.
Connection Pools
Overview
Connection pools allow the Xalan Transformer to share connections with the rest of the application. Any existing JDBC Connection pool should be compatible with the Xalan Transformer by creating a wrapper class around the specific connection pool and registering it with the XConnectionPoolManager.
Creating a new wrapper
The org.apache.xalan.lib.sql.connection is the interface that needs to be implemented be compatible with the Xalan Transformer.
The Default Connection Pool
To provide a uniform internal programming model, the XConnection object will create an instance of the DefaultConnectionPool. By default the Default Connection Pool will
Queries
Standard queries
query(XConnection conn, String SQL)
Standard queries take a connection as arguments, an XConnection and the SQL String. It is the responsibility of the Stylesheet designer to format the SQL String completely including any quotes that are necessary. For static queries this is fine because the sting can be assembled at design time.
Parameter based queries
Overview
Parameter based queries are used when data that dynamically changes the query needs to be supplied from the XML Data.
The Stylesheet will provide the skeleton template of the query with place holders where the data goes, then provides several mechanisms to apply that data from the XML Data.
Parameter based queries take advantage of the JDBC Prepared statement semantics.
Handling Value and Type Information
When using parameterized query the place markers in the query (a “?”) will be replaced with data that is provided using one of the addParameter.. methods. When adding data to a parameter based query, the type of each value must also be included so that real query can be produced. The type information can be passed in as a component of the Query or the Data which ever is more convenient to the Stylesheet designer. 
If the type information is missing for a data point, the default type is set to String.
The list of possible value types include, string,  bigdecimal, boolean, bytes, date, double, float, long, short, time, timestamp.
pquery(XConnection, query)
When just the query statement is passed as a parameter, the Type information must be passed in as a component of the data. 
pquery(XConnection, query, typeinfo)
This allows the query to be specified using the “?” place holders and defining the type for each of the placeholders as a comma separated value string. i.e. “string,int,string,datetime”
addParameter(XConnection, value)
Add a new value to be used with a pquery, each new value is appended to a list that will be merged into the query statement when the pquery statement is executed. All data points must be added prior to executing the pquery statement.
addParameterWithType(XConnection, value,type)
Add a new value specifying the type information also.
addParameterFromElement(XConnection, NodeList)
Add a block of data points from a node list queried from the XML Data Source.  Each tag name at the START_TAG and TAG1 level are irrelevant, the only significant information is the value and possibly the type attribute.
If the type attribute is present, it will set the current type. If the type information is missing, it will either be provide through one of the other mechanisms or default to a string.
<START_TAG>
  <TAG1> type=”int”>value</TAG1>
</START_TAG

Typical implementation 
<xsl:param name=”plist” select=”/START_TAG” />
<xsl:addParameterFromElement( $conn, $plist);
Examples
All of the following examples use the Enhydra InstantDB which is included as part of the Xalan distribution to operate. Please read the Enhydra documentation on managing an InstantDB http://www.instantdb.co.uk/
Basic
The XML/XSL Files (dbinfo.xml and dbtest.xsl) provide an example of implementing a basic connection where the connection information is provided in the XSL file using a static query.
The XML/XSL Files (dbinfo.xml and dbtest-cinfo.xsl) provide an example of implementing a basic connection where the connection information is provided as a node list in the XML file using a static query.
External Connections
The java file ExternalConnection demonstrates how to build a JDBC connection pool that is independent of Xalan. The actual connection pool used is the Default Connection pool inside the Xalan SQL Extension, which already implements the ConnectionPool interface so no wrapper was required. To implement a third party connection pool, a wrapper function must be implemented.
PQuery
The XML/XSL file (dbInfo.xml and dbtest.xsl) provide an example of implementing a parameter based query.
,-LMbc}~€ГДЮЯабв§ўfg‚ƒ„…ЦЧстуфх23456\]wxyz{Ќ­ЧШЩЪЫя№
њњї№їц№ї№ї№їм№ї№ї№їв№ї№ї№їШ№ї№ї№їО№ї№ї№їД№ї№ї№їЊ№ї№ї№ї №ї№ї№їjkUmHjюUmHjqUmHjєUmHjwUmHjњUmHj}UmHjUmH
jUmHmH	jU?,‚г†ц7|Ь@i м5m–к	)	^	…	‡	œ	§§їёыыыёыёыїёёёїёёыыїёёёщч
ЦЖ!

ЦЖ!

ЦЖ!
,‚г†ц7|Ь@i м5m–к	)	^	…	‡	œ	t
Qh™^
ˆ
!jќќїђэшуойдЯЪХРЛЖБЌЇЂ˜“Ž‹ˆƒ~ysnhc]
Gўџџжџџџ

џџџЯџџџ
§џџ6ўџџџџџыџџџњџџЖњџџыњџџћџџ:ћџџ~ћџџЇћџџпћџџќџџ8ќџџtќџџЋќџџдќџџ§џџH§џџ˜§џџн§џџ.ўџџŽўџџїўџџAџџџ’џџџшџџџ"

 !;<=>?IJdefgh€›œžŸМНзийклфхџ01234MNhijklvw‘’“”•КѕюыюыюысюыюыюызюыюыюыЭюыюыюыУюыюыюыЙюыюыюыЏюыюыюыЅюыюыюы›юыюыjаUmHjSUmHjжUmHjYUmHjмUmHj_UmHjтUmHjeUmHmH
jUmHjшUmH=КЛежзийуфўџ					
	$	%	&	'	(	>	?	Y	Z	[	\	]	e	f	€		‚	ƒ	„	…	†	™%јѕыјѕјѕјѕсјѕјѕјѕзјѕјѕјѕЭјѕјѕјѕУјѕјѕО	jUjA
UmHjФ	UmHjG	UmHjЪUmHjMUmHmH
jUmH%œ	t
Qh™^
ˆ
!jЖіа&7ZЅЖПщ€œFN_ƒЋ§§§ћљїљїѕїѕћїѕћїѕѓћљћљћљѓћѕѕjЖіа&7ZЅЖПщ€œFN_ƒЋУЬB№Ae_сќxWћѕ№ъфпйгЮЫХРКЕЏЊЫЄŸš”މ„ytojd_Yп
Щќџџхџџџ
`§џџт§џџ:ўџџмџџџ
jўџџгўџџџџџїџџџ
шџџџ
›ўџџЫџџџяџџџ
јџџџфџџџ
%ўџџщџџџ
Мўџџїџџџ
яџџџнџџџ
аџџџ
€їџџлџџџ
Яџџџ
ЗљџџРџџџ
В§џџЗџџџ!ЋУЬB№Ae_сќxWxbЦѕб‹ — И Ф Х н !:!C!§ћљљљћљљљїѕїљїѕїѕїљљљљљљљљљѓWxbЦѕб‹ — И Ф Х н !:!C!""г"Ÿ#Д#)%0%™%њѕяъфпкеаЫЦСМЗДЏЉЄŸ™”މљџџџ
ќџџыџџџ
›§џџCџџџњџџџ
$џџџїџџџК§џџщ§џџўџџўџџўџџ/ўџџ;ўџџѕўџџбџџџ
{њџџвџџџ
пњџџпџџџ
ъћџџC!""г"Ÿ#Д#)%0%™%§ћљљћљћљАа/ Ар=!А"А# $ %А}DаЩъyљКЮŒ‚ЊKЉ_Toc509119435}DаЩъyљКЮŒ‚ЊKЉ_Toc509119436}DаЩъyљКЮŒ‚ЊKЉ_Toc509119437}DаЩъyљКЮŒ‚ЊKЉ_Toc509119438}DаЩъyљКЮŒ‚ЊKЉ_Toc509119439}DаЩъyљКЮŒ‚ЊKЉ_Toc509119440}DаЩъyљКЮŒ‚ЊKЉ_Toc509119441}DаЩъyљКЮŒ‚ЊKЉ_Toc509119442}DаЩъyљКЮŒ‚ЊKЉ_Toc509119443}DаЩъyљКЮŒ‚ЊKЉ_Toc509119444}DаЩъyљКЮŒ‚ЊKЉ_Toc509119445}DаЩъyљКЮŒ‚ЊKЉ_Toc509119446}DаЩъyљКЮŒ‚ЊKЉ_Toc509119447}DаЩъyљКЮŒ‚ЊKЉ_Toc509119448}DаЩъyљКЮŒ‚ЊKЉ_Toc509119449}DаЩъyљКЮŒ‚ЊKЉ_Toc509119450}DаЩъyљКЮŒ‚ЊKЉ_Toc509119451}DаЩъyљКЮŒ‚ЊKЉ_Toc509119452}DаЩъyљКЮŒ‚ЊKЉ_Toc509119453}DаЩъyљКЮŒ‚ЊKЉ_Toc509119454}DаЩъyљКЮŒ‚ЊKЉ_Toc509119455}DаЩъyљКЮŒ‚ЊKЉ_Toc509119456
[$@ёџ$NormalmH	H@H	Heading 1$Є№Є<@&5CJKHOJQJJ@J	Heading 2$„hЄ№Є<@&56CJOJQJL@L	Heading 3$„аЄ№Є<@&
Ц’CJOJQJH`H	Heading 4$„аЄ№Є<@&5CJOJQJ6@6	Heading 5
Є№Є<@&CJ<A@ђџЁ<Default Paragraph Font@>@ђ@Title$Є№Є<@&5CJ KHOJQJ,@,TOC 1
ЄxЄx5;&@&TOC 2„Ш:&@&TOC 3„6&@&TOC 4„XCJ&@&TOC 5„ CJ&@&TOC 6„шCJ&@&TOC 7„АCJ&@&TOC 8„xCJ&@&TOC 9„@CJ*ўO’*body3
$„а„8&ўoЂ&body4
„а„8.ўOВ.body1$„а„hЄ№"ўo‘Т"body2„а(U@Ђб(	Hyperlink>*B*8V@Ђс8FollowedHyperlink>*B*™!<џџџџ
К™%œ	ЋC!™%jW™%,Lb~€ГЯб§f‚„Цтф35\xzЌШЪя
 <>Ieg€œžМикф13Mikv’”Кжиуџ	%'>Z\eƒ…™!
tџ%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р%tџ•Р•Œ№8№@ёџџџ€€€ї№’№№0№(	№
№№B
№S№ПЫџ	?№џџ
_Toc509062553
_Toc509062554
_Toc509062555
_Toc509119435
_Toc509119436
_Toc509119437
_Toc509119438
_Toc509119439
_Toc509119440
_Toc509119441
_Toc509119442
_Toc509119443
_Toc509119444
_Toc509119445
_Toc509119446
_Toc509119447
_Toc509119448
_Toc509119449
_Toc509119450
_Toc509119451
_Toc509119452
_Toc509119453
_Toc509119454
_Toc509119455
_Toc509119456‡‡h^	!
Ж
а7ЅЖщ€FNЋУA:Ÿ)!›!	

+š›˜‡	i
ѕ
%6YЕОџ›M^ТЫdBГ/!›!ejj	o	p	x		†	4
<
E
J
Щ
б
к
п
$mu`
h
o
t
JX^cѓќ?Dкпchбч'mrqu’œžЅ“››!}Žœ
о
ДЖ†“їџžЅ<!d!›!џџ
John GentilinSD:\Projects\SMART911\Documents\DetailDesign\XalanExtensions\Xalan SQL Extension.doc
John Gentilin<C:\WINDOWS\TEMP\AutoRecovery save of Xalan SQL Extension.asd
John Gentilin<C:\WINDOWS\TEMP\AutoRecovery save of Xalan SQL Extension.asd
John Gentilin<C:\WINDOWS\TEMP\AutoRecovery save of Xalan SQL Extension.asd
John Gentilin<C:\WINDOWS\TEMP\AutoRecovery save of Xalan SQL Extension.asd
John Gentilin<C:\WINDOWS\TEMP\AutoRecovery save of Xalan SQL Extension.asd
John GentilinSD:\Projects\SMART911\Documents\DetailDesign\XalanExtensions\Xalan SQL Extension.doc
John GentilinSD:\Projects\SMART911\Documents\DetailDesign\XalanExtensions\Xalan SQL Extension.htm
John GentilinSD:\Projects\SMART911\Documents\DetailDesign\XalanExtensions\Xalan SQL Extension.htm
John GentilinSD:\Projects\SMART911\Documents\DetailDesign\XalanExtensions\Xalan SQL Extension.docџ@€˜!˜!Œft˜!˜!™!0@G‡:џTimes New Roman5€Symbol3&‡:џArial"qˆаhkSFkSFмД;ДЅРДД€20"™!џџXalan SQL Extension
John Gentilin
John Gentilinўџ
р…ŸђљOhЋ‘+'Гй0tˆЌИам№	
0<
HT\dlфXalan SQL ExtensionalaJohn GentilinnsohnNormal.dotiJohn Gentilinns3hnMicrosoft Word 8.0@FУ#@оNћЋР@jеeћЋРмДўџ
еЭеœ.“—+,љЎDеЭеœ.“—+,љЎXhp”œЄЌДМФЬ
дєфEye Catching Solutions Inc;"jXalan SQL ExtensionTitle˜ 6>
_PID_GUIDфAN{10900386-1725-11D5-8E01-0010A40A4A37}	

ўџџџ !"#$%&ўџџџ()*+,-./012ўџџџ456789:ўџџџ<=>?@ABўџџџ§џџџEўџџџўџџџўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџRoot Entryџџџџџџџџ	РF`ў№xЋРиukћЋРG€Data
џџџџџџџџџџџџ1Tableџџџџџџџџ'dWordDocumentџџџџ<SummaryInformation(џџџџџџџџџџџџ3DocumentSummaryInformation8џџџџџџџџ;CompObjџџџџjObjectPoolџџџџџџџџџџџџиukћЋРиukћЋРўџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџўџ
џџџџ	РFMicrosoft Word Document
MSWordDocWord.Document.8є9Вq

Anon7 - 2021