![]() | Caution |
|---|---|
This example uses spaces and line breaks for formatting, indicated with a "¬" character. The values in the elements of your IncludeMap.xml file may not contain line breaks, and they may contain only those spaces explicitly intended. |
<?xml version="1.0"?>
<XMLP_Includes>
<!-- Exactly one <XMLP_Includes> tag is required. It is the
root element and may contain:
- zero or one <Text> tag
- zero or one <Binary> tag -->
<Text>
<!-- Zero or one <JDBC_Pull> tag is allowed and if it
exists it must contain one or more <JDBC_Resource>
elements. You cannot have an empty <JDBC_Pull>
tag. -->
<JDBC_Pull>
<JDBC_Resource>
<Driver_Name>com.microsoft.sqlserver.jdbc.SQLServerDriver</Driver_Name>
<Connection_String>jdbc:sqlserver://hostName:1174;databaseName= ¬
XMLP_XSL;user=name;password=passwd</Connection_String>
<Query_String>SELECT xsl.query('/*') FROM tablename</Query_String>
<Column_Index>1</Column_Index>
<XInclude_FileName>chapter_num.xml</XInclude_FileName>
<JDBC_Resource>
<JDBC_Resource>
<Driver_Name>com.ibm.db2.jcc.DB2Driver</Driver_Name>
<Connection_String>jdbc:db2://swhitlat9:50000/databaseName: ¬
user=name;password=psswd;</Connection_String>
<Query_String>XQUERY db2-fn:xmlcolumn ('TABLENAME.XSL')</Query_String>
<Column_Index>1</Column_Index>
<XInclude_FileName>chapter_num.xml</XInclude_FileName>
</JDBC_Resource>
<JDBC_Resource>
<Driver_Name>com.mysql.jdbc.Driver</Driver_Name>
<Connection_String>jdbc:mysql://hostname:3306/databaseName? ¬
user=name&password=passwd</Connection_String>
<Query_String>select XML_Source from tableName where
FileName='Shared_1.xml'</Query_String>
<Column_Index>1</Column_Index>
<XInclude_FileName>chapter_num.xml</XInclude_FileName>
</JDBC_Resource>
<JDBC_Resource>
<Driver_Name>com.sybase.jdbc3.jdbc.SybDriver</Driver_Name>
<Connection_String>jdbc:sybase:Tds:hostname:5000/databaseName? ¬
USER=user&PASSWORD=passwd</Connection_String>
<Query_String>select xmlextract('/chapter[@id="chap1"]', ¬
XML_Source) from tableName where fileName= ¬
'Chap_1.xml'</Query_String>
<Column_Index>1</Column_Index>
<XInclude_FileName>chapter_num.xml</XInclude_FileName>
</JDBC_Resource>
</JDBC_Pull>
<!-- Zero or one <XMLDB_Pull> tag is allowed and if it
exists it must contain one or more <XMLDB_Resource>
elements. You cannot have an empty <XMLDB_Pull>
tag. -->
<XMLDB_Pull>
<XMLDB_Resource>
<Driver_Name>org.exist.xmldb.DatabaseImpl</Driver_Name>
<URI>xmldb:exist://hostname:8080/exist/xmlrpc/db</URI>
<User_Name>userName</User_Name>
<Password>passwd</Password>
<Service_Name>XQueryService</Service_Name>
<Service_Version>1.0</Service_Version>
<Query_String>document("/db/XMLP/collectionName/doc.xml") ¬
</Query_String>
<XInclude_FileName>chapter_num.xml</XInclude_FileName>
</XMLDB_Resource>
<XMLDB_Resource>
<Driver_Name>org.apache.xindice.client.xmldb.DatabaseImpl</Driver_Name>
<URI>xmldb:xindice://hostname:8888/db/collectionName</URI>
<User_Name>userName</User_Name>
<Password>passwd</Password>
<Service_Name>XPathQueryService</Service_Name>
<Service_Version>1.0</Service_Version>
<Query_String>//chapter[@id='chap1']</Query_String>
<XInclude_FileName>chapter_num.xml</XInclude_FileName>
</XMLDB_Resource>
</XMLDB_Pull>
<!-- Zero or one <TGL_Pull> tag is allowed and if it
exists it must contain one or more <TGL_Resource>
elements. You cannot have an empty <TGL_Pull>
tag. -->
<TGL_Pull>
<TGL_Resource>
<URI>xql:rdtaxql://hostname:3408/databaseName?RETRY_COUNT=1& ¬
RETRY_DELAY=0</URI>
<Query_String>doc("tig:///databaseName/collectionName/Chap_1.xml") ¬
</Query_String>
<XInclude_FileName>chapter_1.xml</XInclude_FileName>
</TGL_Resource>
<TGL_Resource>
<URI>xql:rdtaxql://hostname:3408/databaseName?RETRY_COUNT=1& ¬
RETRY_DELAY=0</URI>
<Query_String>doc("tig:///databaseName/collectionName/Chap_2.xml") ¬
</Query_String>
<XInclude_FileName>chapter_2.xml</XInclude_FileName>
</TGL_Resource>
</TGL_Pull>
<!-- Zero or one <Oracle_Pull> tag is allowed and if it
exists it must contain one or more <Oracle_Resource>
elements. You cannot have an empty <Oracle_Pull>
tag. -->
<Oracle_Pull>
<Oracle_Resource>
<Driver_Name>oracle.jdbc.driver.OracleDriver</Driver_Name>
<Connection_String>jdbc:oracle:thin:user/passwd@hostname:1521/ ¬
databaseName</Connection_String>
<Query_String>SELECT * from tableName WHERE fileName = ¬
'Chap_1.xml'</Query_String>
<Column_Index>1</Column_Index>
<XInclude_FileName>chapter_num.xml</XInclude_FileName>
</Oracle_Resource>
<Oracle_Resource>
<Driver_Name>oracle.jdbc.driver.OracleDriver</Driver_Name>
<Connection_String>jdbc:oracle:thin:user/passwd@hostname:1521/ ¬
databaseName</Connection_String>
<Query_String>SELECT extract(xml_source, '/*') FROM tableName WHERE ¬
fileName = 'Chap_2.xml'</Query_String>
<Column_Index>1</Column_Index>
<XInclude_FileName>chapter_2.xml</XInclude_FileName>
</Oracle_Resource>
<Oracle_Resource>
<Driver_Name>oracle.jdbc.driver.OracleDriver</Driver_Name>
<Connection_String>jdbc:oracle:thin:user/passwd@hostname:1521/ ¬
databaseName</Connection_String>
<Query_String>SELECT XMLQuery('/*' PASSING xml_source RETURNING ¬
CONTENT) FROM tableName WHERE fileName='Chap_3.xml'</Query_String>
<Column_Index>1</Column_Index>
<XInclude_FileName>chapter_3.xml</XInclude_FileName>
</Oracle_Resource>
</Oracle_Pull>
<!-- Zero or one <MKL_Pull> tag is allowed and if it
exists it must contain one or more <MKL_Resource>
elements. You cannot have an empty <MKL_Pull>
tag. -->
<MKL_Pull>
<MKL_Resource>
<URI>xcc://user:passwd@hostname:8095</URI>
<Query_String>//chapter[@id="chap1"]</Query_String>
<XInclude_FileName>chapter_1.xml</XInclude_FileName>
</MKL_Resource>
<MKL_Resource>
<URI>xcc://user:passwd@hostname:8095</URI>
<Query_String>//chapter[@id="chap2"]</Query_String>
<XInclude_FileName>chapter_2.xml</XInclude_FileName>
</MKL_Resource>
</MKL_Pull>
<!-- Zero or one <XHive_Pull> tag is allowed and if it
exists it must contain one or more <XHive_Resource>
elements. You cannot have an empty <XHive_Pull>
tag. -->
<XHive_Pull>
<XHive_Resource>
<URI>xhive://hostname:1235</URI>
<User_Name>user</User_Name>
<Password>passwd</Password>
<Database_Name>databaseName</Database_Name>
<Query_String>document("/Chap_1.xml")</Query_String>
<XInclude_FileName>chapter_1.xml</XInclude_FileName>
</XHive_Resource>
</XHive_Pull>
<XHive_Pull>
<XHive_Resource>
<URI>xhive://hostname:1235</URI>
<User_Name>user</User_Name>
<Password>passwd</Password>
<Database_Name>databaseName</Database_Name>
<Query_String>document("/Chap_2.xml")</Query_String>
<XInclude_FileName>chapter_2.xml</XInclude_FileName>
</XHive_Resource>
</XHive_Pull>
<!-- Zero or one <Tamino_Pull> tag is allowed and if it
exists it must contain one or more <Tamino_Resource>
elements. You cannot have an empty <Tamino_Pull>
tag. -->
<Tamino_Pull>
<Tamino_Resource>
<URI>http://hostname/tamino/databaseName</URI>
<User_Name>user</User_Name>
<Password>passwd</Password>
<Collection_Name>collectionName</Collection_Name>
<Query_Type>TXQuery</Query_Type>
<Query_String>collection("collectionName")/chapter[@id="chap1"] ¬
</Query_String>
<XInclude_FileName>Chap_1.xml</XInclude_FileName>
</Tamino_Resource>
<Tamino_Resource>
<URI>http://hostname/tamino/mydb</URI>
<User_Name>user</User_Name>
<Password>passwd</Password>
<Collection_Name>ino:etc</Collection_Name>
<Query_Type>TQuery</Query_Type>
<Query_String>Greeting[@ino:id=1]</Query_String>
<XInclude_FileName>test.xml</XInclude_FileName>
</Tamino_Resource>
</Tamino_Pull>
<!-- Zero or one <Sedna_Pull> tag is allowed and if it
exists it must contain one or more <Sedna_Resource>
elements. You cannot have an empty <Sedna_Pull>
tag. -->
<Sedna_Pull>
<Sedna_Resource>
<URI>hostname:5050</URI>
<Database_Name>databaseName</Database_Name>
<User_Name>user</User_Name>
<Password>passwd</Password>
<Query_String>document("Chap_1.xml")/*</Query_String>
<XInclude_FileName>Chap_1.xml</XInclude_FileName>
</Sedna_Resource>
<Sedna_Resource>
<URI>hostname:5050</URI>
<Database_Name>databaseName</Database_Name>
<User_Name>user</User_Name>
<Password>passwd</Password>
<Query_String>document("Chap_2.xml")/*</Query_String>
<XInclude_FileName>Chap_2.xml</XInclude_FileName>
</Sedna_Resource>
</Sedna_Pull>
<!-- Zero or one <XStreamDB_Pull> tag is allowed and if it
exists it must contain one or more <XStreamDB_Resource>
elements. You cannot have an empty <XStreamDB_Pull>
tag. -->
<XStreamDB_Pull>
<XStreamDB_Resource>
<URI>hostname:1223</URI>
<Server_Name>serverName</Server_Name>
<User_Name>user</User_Name>
<Password>passwd</Password>
<Query_String>Root("/databaseName/collectionName")/ ¬
chapter[@id="chap1"]</Query_String>
<XInclude_FileName>chapter_1.xml</XInclude_FileName>
</XStreamDB_Resource>
<XStreamDB_Resource>
<URI>hostname:1223</URI>
<Server_Name>serverName</Server_Name>
<User_Name>user</User_Name>
<Password>passwd</Password>
<Query_String>Root("/databaseName/collectionName")/ ¬
chapter[@id="chap2"] </Query_String>
<XInclude_FileName>chapter_2.xml</XInclude_FileName>
</XStreamDB_Resource>
</XStreamDB_Pull>
</Text>
<Binary>
</Binary>
</XMLP_Includes>