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

Re: Defining non-WXS datatypes


wxs xslt
Hi Bob,

> The only thing that jumped out as a potential issue, which you also
> highlighted, is the incorporation of XSLT into the language. I'm
> afraid this is the camel's nose in the tent. Though your use of XSLT
> in the examples is carefully restricted, leaving the door ajar will
> invite the full language in and effectively prevent any
> implementation other than by XSLT. I am concerned that a process
> that might be performed as a side effect of validation could have
> overheads that swamp those of validation, itself.
>
> My suggestion is to carefully evaluate where you found XSLT useful
> (as in providing a template capability for error messages) and
> design your own language around these requirements. Any
> implementation via XSLT is going to first translate the document
> into an XSLT stylesheet, anyway, and it will have no trouble
> translating those elements (back) into XSLT syntax.

Yep; I think these are very reasonable comments. Looking over the test
datatype libraries that I put together, the parts that were useful
were:

  - the ability to create elements and text
  - the ability to define variables
  - the ability to get the "value-of" an XPath expression
  - conditional code (choose/if)

I also used some XSLT-only functions within the XPaths, in particular
format-number(), but that will hopefully be incorporated into XPath
2.0 anyway.

So I think it will be very easy to restrict what's needed in the code
sections to something a lot less burdensome to implementations.

Thanks,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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.