[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: "Ashvil" <ashvil@i...>
  • To: "Amy Lewis" <amyzing@t...>, <xml-dev@x...>
  • Date: Sat, 1 Jul 2000 14:54:17 -0700

contenteditable xhtml
>
> Is this question theoretical, or purely practical?

I was looking at some non pricey XML editors and could not find any
that let you edit the final visual representation of the XML file. XML
Spy lets you see the output in the browser view [1], but does not let
you edit it. Not sure if the pricey ones let you do that ;-)

The other part of the equation was the ContentEditable attribute in
IE5.5 which let you make the content areas editable [2].

I was thinking creating a simple XML editor which would let you edit
some data in a rich content view like MS Word document where only
certain fields are allowed to be editable using IE5.5.

The steps would be
1. Create the XML file and it's XSLT file. The XSLT file would contain
information on which data fields in the XHTML file to be editable and
may pass the XML tag information via the class attribute   [3].
2. The User edits data and saves the XHTML file.
3. Run an inverse transformation to get the original XML file.

Step 3 is the difficult one. I need help with this.

> easy to imagine a situation in which half a dozen different element
> types in the original map to "h3" in the output).

This can be rectified by adding a class attributes or some other
attribute to the h3 tag [3]. If more information (maybe adding
original tags in a different namespace) needs to be added to the XHTML
file to make this possible, I am OK with that.

> But it's always going to depend on the specific stylesheet.  If you
> write it to be reversible (then fix the bugs ... ;-), then
> it should be
> possible to reverse it, by applying {the same|another} stylesheet.
>

I would prefer to write one stylesheet and run different processor on
it, but I see your point of using another stylesheet. I want to keep
this limited to editing data rather than expanding it into a
theoretical CS problem.

Regards,
Ashvil


References :
1. http://new.xmlspy.com/features_views.html
2.
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/c
ontenteditable.asp
3. http://www.xml.com/pub/2000/02/02/style/index.html



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