Wrapper for XSL for offline development
Been wrestling with this problem for a while now and I believe my relative lack of experience is preventing me from figuring it out. A good portion of our XML is generated dynamically through PIs, which extract the data from DBs: [[mini sample]] <document> <?fub-process com.fub.demo.EjbWrapper:getUserProfileXMLData:UserName?> <data> <title>Account Summary</title> </data> </document> The PI would result in data such as: [[mini example]] <userprofile> <name>pharrington</name> <userid>444</userid> </userprofile> Our problem is that a lot of our XSL development will occur at a time and place where the databases are unavailable, hence the PIs will not be able to return data correctly. What I would like to be able to do is provide an XSL wrapper that can be used to process the PIs and replace them with pre-generated sample data so that the XSL development can continue as if the data was coming from the DB. My inital thought was to have an offline wrapper for each XML - XSL pair. The wrapper would take each PI, figure out which pre-generated XML fragement to replace it with, and then use document( ) to parse the fragment. Up to this point, I am okay.... but how to take the root nodes from several of these document( ) calls and put them under the root node of my original XML document? And then apply the XSL file that would normally be applied in the online environment? If it matters, we are currently using Xalan and Xerces though we want to avoid any solutions that are processor-specific if we can. Any help/pointers/suggestions would be greatly appreciated. I have spent considerable time perusing the FAQ, Mike Kay's excellent XSLT Reference and various other sources but haven't seen much that clicked as possible solutions. If you need more info, I will happily provide it. Alan Harbaugh First USA Bank, N.A. Information Services 201 N. Walnut Street Tel: (302)282-2098 Wilmington, DE 19801 Fax:(302) 282-2198 DE1-1525 AlanHarbaugh@xxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format