[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Wrapper for XSL for offline development

Subject: Wrapper for XSL for offline development
From: "Harbaugh, Alan (FUSA)" <AlanHarbaugh@xxxxxxxxxxxx>
Date: Tue, 07 Nov 2000 10:47:49 -0500
xsl wrapper
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.