You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Christoffer Soop <ch...@soop.org> on 2002/05/03 17:41:29 UTC

XPath sources

I have several different xml-data sources: HTTP Posts, relational databases and a legacy Enterprise Information System and would like to tie them up in a "virtual" xml document which I will be using for XPath queries.  The virtual document is on the form:

<data>
	<request>...</request>
	<rdbm>...</rdbm>
	<eis>...</eis>
</data>

The virtual part is due to the fact that the <rdbm> and <eis> elements must not be expanded until certain parameters have been found in the <request> element, in fact under certain conditions they must not be expanded at all.  The parameters are used for creating the queries. 

Now, if I create a custom implementation of org.w3c.dom.Node that makes the database queries when the Nodes are expanded, can I trust the XPath API not to expand the nodes unless demanded by the XPath queries I am using?

Does anybody know?

/Christoffer

-- 
Christoffer Soop <ch...@soop.org>
+46 (0)730 74 68 15 / +46 (0)8 651 24 36