Ha. You call this off-topic? This is nothing.
but what's the difference between a data connection
to an XML file which is a resource in a template, and creating your own
instance of the XML DOM loaded from a resource in the template? Other than
the caching being done in a different place? (The data interop example
caches the DOM, though I didn't look closely to see at what time.)
I created a new form, saved it, and then tried adding 1 of the 2 XSL
files in the Data Interop sample and saved it again. The addition of
the XSL caused the addition of 9KB (2KB compressed) worth of XSD
files. If I add the second XSL file, I get another 9KB of XSD files.
Those 6 additional XSD files will have to be cached.
The manifest.xsf has details on the added XSD files themselves as well
as the secondary datasource. Also, because I have SP1, a bunch of
junk related to the XSL structure got added to the sampledata.xml
file.
Aside from file sizes, there are thing that happen at runtime like the
XSL being validated against the schema when it is loaded and (SP1)
determining whether to fire change events as the secondary datasource
is loaded.
Granted, the performance degradation probably won't amount to much and
the increased file size probably won't be noticed by anyone except
over a slow link, but it's still more than nothing.
Regards,
Steve