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

Re: XML DB - anything new and interesting?

  • From: "Andrew Welch" <andrew.j.welch@g...>
  • To: rob@k...
  • Date: Fri, 11 Jul 2008 10:24:56 +0100

Re:  XML DB - anything new and interesting?
> I realize you can easily add support for XSL on top of those that do not
> support it natively, but that loses appeal when you have convert the
> XQuery result into something consumable by a transformation.

I did that and came to same conclusion... I added XSLT 2.0 support to
eXist in that you could browse to an XSLT to run it, just like how
eXist runs XQueries (a great feature that would be better if it was
XSLT instead of XQuery).  The transforms are "standalone" which means
they run with no input using "main" as the initial template.  The
input is fetched through the doc() function by calling an XQuery
through the same rest interface.

The problem was as you say, the query would have to be something like:

<countries>
  { for $x in //countries return
    <country>...

....eg it has to return a well-formed XML file as it get serialized
and then reparsed for the transform.

What I was really after was something like:

<xsl:variable name="countries" select="runQuery($getCountries)"
as="xs:string*"/>

so I get back a sequence of atomics from the db....

(my way of distinguishing a stylesheet that should be executed rather
than returned as-is (say for inclusion into another) was to make the
url pattern ".xslx" so specific.xsl could be executed by browsing to
specific.xslx, whilst allowing that to import common.xsl)

All of which led me towards Cocoon and then Orbeon...

>> * You use XHTML+XForms as your templating language.
>> * You use REST and XQuery to interface with services and XML databases.

I'm only a couple of days into it, but it appears you could happily
create your XHTML + XForms using XSLT 2.0 and that could be really
powerful.  Hopefully I'll understand a bit more on that today...

The thing is, with XRX because everything is done through REST don't
you encounter the same serialise/reparse issue?  Either XSLT 2.0 needs
to operate directly on the db, or you need an extension that can run
the query and return the nodes directly.  Or is this a non-issue...
going through the REST interface is perfectly fine?

As I say, I'm only a few days in so this might be nonsense, but
hopefully will prompt some discussion.


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.