Re: [xsl] XSLT, Web applications, and "native XML databases"
2009-01-08 05:09:33
Andrew Welch wrote:
Once XSLT can work directly directly against
the database, XQuery's days could be numbered.
Bit sweeping Andrew, but it always appeared as
a fairly natural extension to XSLT, to have
it operate on databases rather than files, to keep the dataheads
happy and answer the users who want to play
with dirty great datasets.
I'm surprised it's not on the agenda for the WG
If you really want XSLT to work directly against the database
you could use collection() to return the documents.
false.
How about URIs (e.g. with protocol) directly referencing eXist collections
with i/o "as usual" for XSLT (e.g. doc(), document(), collection(),
result-document()) ?
To explain the difference between what is available now, and what we
mean by XSLT 2.0 working directly against the database, think of this
example:
- You have 1000 xml files stored in the database, and each of them
have a <title>
- You want to get those titles and group, sort and number them using xslt 2.0
- Currently you either a) use xquery to get the title nodes, wrap them
in an arbitrary root element, then supply that document to the
transform (which needs to know about that new document) using the
database's xslt extension, or b) access all documents using say the
rest api and then extract the <title> from within the xslt... not
very feasible, and not taking advantage of the database.
- When xslt can work directly on the database, you would just do
<xsl:for-each-group select="collection(...)//title">
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [xsl] XSLT, Web applications, and "native XML databases", (continued)
- Re: [xsl] XSLT, Web applications, and "native XML databases", Robert Koberg
- Message not available
- Message not available
- Message not available
- Message not available
- Re: [xsl] XSLT, Web applications, and "native XML databases", Robert Koberg
- Re: [xsl] XSLT, Web applications, and "native XML databases", Andrew Welch
- Re: [xsl] XSLT, Web applications, and "native XML databases", Dave Pawson
- RE: [xsl] XSLT, Web applications, and "native XML databases", Houghton,Andrew
- Re: [xsl] XSLT, Web applications, and "native XML databases", Robert Koberg
- Re: [xsl] XSLT, Web applications, and "native XML databases", ac
- Re: [xsl] XSLT, Web applications, and "native XML databases",
Andrew Welch <=
- Re: [xsl] XSLT, Web applications, and "native XML databases", James Fuller
- Re: [xsl] XSLT, Web applications, and "native XML databases", ac
- Re: [xsl] XSLT, Web applications, and "native XML databases", ac
|
Previous by Date: |
Re: [xsl] Testing Text, David Carlisle |
Next by Date: |
Re: [xsl] XSLT, Web applications, and "native XML databases", James Fuller |
Previous by Thread: |
Re: [xsl] XSLT, Web applications, and "native XML databases", ac |
Next by Thread: |
Re: [xsl] XSLT, Web applications, and "native XML databases", James Fuller |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|