Novell Home

Converting to XDS

Novell Cool Solutions: Question & Answer

Posted: 19 Jan 2006

Q:
From an application I get XML documents that I would really like to convert to the proper XDS for processing in a Delimited Text driver. Are there some good examples of this anywhere?

A:
XSLT stylesheets are typically used to convert from one type of XML to another. Since XDS is just a certain flavor of XML, you should be able to come up with XSLT to make the proper translations from your application. A good XSLT reference is "XSLT Programmer's Reference" by Michael Kay and published by Wrox. You'll also want to know what the XDS should look like. For that, you should check the DirXML Driver Kit documentation (try the "NDS DTD Documentation" link):
http://developer.novell.com/ndk/doc/dirxml/dirxmlbk/ref/index.html

There are a couple of examples of how to accomplish this type of XML translation in other drivers. For example, check the sample configurations for the SOAP driver. It comes with both a DSML and a SPML sample configuration and both of those have stylesheets that convert from those formats to XDS.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.