Re: Want serialized (rather than DOM-tree) output from XSL t
>"Duffy, Bruce" <Bruce.Duffy@xxxxxxxxxxxxx> writes: > > My question is this: At West, we want to apply an XSL style sheet to > an XML document to produce a result that *is not a tree*, but is > instead a string or stream in West's "WestPro" data stream format. > Here is one approach:- 1) Construct a DTD for WestPro. Depending on the nature of the WestPro format, that DTD may be quite weak and "loose" but that is OKAY. Make the DTD as close as possible to a trivial mapping of WestPro constructs. 2) Write a prorgam to convert from the WestPro-XML to true WestPro. (Should be very straightforward in something like Python or Perl.) 3) Use XSL stylesheets to produce XML that conforms to that DTD, and translate to WestPro with your conversion program. I have used this approach in the SGML world to target formats such as RTF, Folio Flat File etc. from stylesheet languages. <Sean uri="http://www.digitome.com/sean.html"/> 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