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

Re: Note from XSL WG on Extension Concerns

  • From: Leigh Dodds <ldodds@i...>
  • To: xml-dev@x...
  • Date: Thu, 6 Apr 2000 20:22:00 +0100

extension concerns
[Thanks to Steve for posting an update on the status of
the XSL WG]

I thought I'd invite a little discussion, and jot down
some of the notes I've been making on this topic. Obviously
they'll have to be taken in light of Steve's comments.

Namespaces:

Obviously there will be a need to standardise on one or
more namespaces for extension functions. I'd suggest that
for Java based extensions one of two options should be
considered:

- Java/Sun Namespace e.g. java.sun.com/products/jdk/1.2/...classname...
- W3C Java Namespace e.g.
www.w3.org/XSLT/1999/Transform/Java/...classname...

(Personally I prefer the former.)

Language Binding:

Of the two XSLT processors I've had chance to look at
(Xalan and XT), the basic language bindings are largely similar.
Java int, long, etc are mapped to XSLT number; similarly
for boolean and String.

As far as result set fragments and node-sets are concerned
there's a difference. XT uses its own bindings, Xalan uses
the DOM API (i.e. Document Fragment and NodeList).

The latter seems a sensible choice for standardisation, as otherwise
a DOM-a-like API will be required. This seems to be the accepted
process - each spec usually supplies or defines a customised DOM version.

I can envisage that there are other features that an XSLT
processor might expose - such as access to in-scope variable bindings;
exposing XPath querying; and possibly even document parsing functions.

The latter would be useful if I was (for example) writing
an document() (see section 12.1 in spec) extension function which retrieved
documents using a non-standard mechanism, e.g. secure HTTP, whatever.
Having downloaded the relevant document it'd have to be parsed into a
suitable node-set for use by the processor. This requires
the ability to allow the XSLT processor to parse a secondary document.

These additional API functions could also form the basis for a
standardised XSLT processor API.

Standardised Extentsion:

The recent discussions highlighted two potential extensions ripe
for either adding to the XSLT core, or standardising in some way.
These are:

- multiple outputs
- result-set-fragment to node-set 'casts'

I assume that a revised XSLT spec would dictate the signature
of these methods, and expected processing but not provide
an implementation. Also presumably these would fall under
the normal XSLT namespace.


It will be interesting to see the next version of XSLT take
shape. Thanks to the WG for taking notice of the community concerns.

Cheers,

L.


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.