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

RE: Looking for a schema->html form XSL transform


form xsl
An XML Schema is not generative; i.e., doesn't have enough information in it
to provide the basic structure of a document, so you need to start with
something that says what the root element it, what elements come next, etc.

If you start with a sample XML document with blanks for the content, then
you can use any XForms processor to do what you're asking.  You do need to
provide the human-readable labels for the fields you want the user to edit,
and an XPath expression that says where those fields are in the initial
document.  If you specify one or more XML Schemas, they will be used to
validate the resulting document before it is POSTed back as XML.  

See http://www.w3.org/MarkUp/Forms and
http://www.w3.org/MarkUp/Forms/Test/ImplementationReport.html two
fully-conformant implementations, one of which runs inside Internet
Explorer.  There are also some JavaScript-based implementations; they aren't
fully conformant with the XForms spec, but might be good enough for your
purposes.  IBM has one available form download and testing.

Leigh.

-----Original Message-----
From: Cameron Shorter [mailto:cameron@s...] 
Sent: Friday, August 08, 2003 2:01 PM
To: xml-dev@l...
Subject:  Looking for a schema->html form XSL transform


Hi,
I want to:
1. Use XSL to build a HTML form from a schema, then
2. Build XML from the elements in the form and POST the xml back to a
server.

Does anyone know of XSL or javascript I can use which will address either of

the above?

-- 
Cameron Shorter              http://cameron.shorter.net
Open Source Developer        http://generguide.sourceforge.net
                             http://mapbuilder.sourceforge.net
                             http://geotools.org
Senior Software Engineer     http://www.adi-limited.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.