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

Re: Can XSLT be bi-directional ? XML + XSLT -> XHTML -> XML + (XSLT)

  • From: Francis Norton <francis@r...>
  • To: Ashvil <ashvil@i...>
  • Date: Sat, 01 Jul 2000 23:08:34 +0100

convert xhtml to xml xsl

Ashvil wrote:
> 
> An example would be a XML file is transformed using XSLT into XHTML. A
> User edits the data in the XHTML file (assuming no tags are harmed or
> replaced) and sends it back. Is it possible to convert the information
> in the XHTML file to it's original XML format using the original XSLT
> file only.
> 
I think you need to explain your requirement a bit more.

Why do you want to convert it into XTML? Is it to let the user edit the
data in an HTML form, or because the user has an editor that allows them
to edit the XHTML source? In other words, are they XHTML users or XHTML
developers?

If they're users then you need an XSLT routine to turn the XML elements
and attributes into XHTML entry fields, which is fairly easy. You then
need a way to read the returned name-value pairs in and turn them back
into XML, which is harder, and probably best not done in XSLT at all,
since XSLT only works on inputs which are at least some kind of XML.

If they're developers, then I suggest getting them to use a proper XML
editor.

On the third hand, if you're thinking of developing a content management
system (CMS) then I would check out some of the existing tools, and
consider something like XForms (http://www.w3.org/MarkUp/Forms/) for
editing content and XSLT Literal Result Elements
(http://www.w3.org/TR/xslt#result-element-stylesheet) for editing the
presentation layer.

You should also consider the xsl-list
(http://www.mulberrytech.com/xsl/xsl-list) for specifically XSLT
questions.

Francis.
-- 
Francis Norton.

Defy Convention? Deify Convention!

***************************************************************************
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.