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

Re: schema -> HTML Forms

Subject: Re: schema -> HTML Forms
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Mon, 6 Jan 2003 18:27:52 +0000
xml schema to html forms
Hi Simon,

> Thanks Jeni. I'm using an RNG (relax ng) schema so I think I'll try
> to roll my own and keep yours as a backup in case I get stuck.

Well done for using RELAX NG :) I doubt that my W3C XML Schema
stylesheet will be much use to you.

> I guess an issue I'm going to hit eventually is dealing with
> situations where a schema allows zeroOrMore or oneOrMore (to use rng
> terms) of a set of items ... if the user wants to add more than I
> provided on the forms there's going to have to be some feedback back
> and forth.

Yes. You can probably do that all client-side.

> Also I notice that you seem to be using javascript for validation ..
> that's cool.

Actually, that's a bit that you can probably reuse, since RELAX NG can
use the same set of facets as WXS.

> Overall though, your code looks at first glance like it's very
> procedural rather than functional/declarative. Was that a matter of
> style or did you find that to be necessary in this instance?

I'm not sure which bits you're referring to, and it's a while since I
wrote it, but I do remember that working through the content model
against an instance document was a particular challenge and I may have
resorted to some "procedural" code to do that. Or perhaps it's just my
style, I don't know. Feel free to email me offlist if you want
rationales for the design of particular pieces of the code.

Cheers,

Jeni

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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.