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

Re: database and XSL

Subject: Re: database and XSL
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Mon, 7 Dec 2009 15:39:33 +0000 (GMT)
Re:  database and XSL
a kusa wrote:

  Hi,

> I have a requirement to be able to read from a data
base and
> map the data to an xml file.

> Is it possible to write sql
statements in XSLT 2.0? My google
> did not give me good result set.

  Not in
a standard way, but you can write your own extensions,
or use existing one.
Saxon for instance comes with such an
extension (not sure it is in 9.2 HE, but
normally it is in 9.1
B).

  But when I have such a requirement (well, that's
a bit short as
requirement, but usually this is the right way) I define a
document type, write a class that implements XMLReader, and use
this class as
the reader for the source of the transform.

  Either you create some objects
from SQL, and pass them to the
reader's ctor, or you eval the SQL statements
directly within the
reader.

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

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.