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

Nesting XML based languages and scripting languages

  • From: Michael Amster <mamster@w...>
  • To: xml-dev@i...
  • Date: Fri, 17 Apr 1998 19:30:03 -0700

nesting xml
Hi:

I am new to the world of XML and have been following the development of
SAX, DOM and some of the interfaces with great interest.  We are looking to
change the language of our server side application to an XML based language
from a proprietary language today.  The application is similar to
ColdFusion in that it intersperses commands, queries and control flow with
HTML for output to a client.

We have looked at XSL and think it is too limited to HTML as an output -
we'd like to work with any XML based language for output on the server
side.  Our lack of separation between code and presentation is not elegant,
but it is easy to use and is widely accepted (i.e. ColdFusion)

My questions are:

1. Can we use a DTD to intersperse our language (WEASEL) with any arbitrary
XML based language in PCDATA sections.  We feel that having a DTD for the
language would really help to allow authoring with an XML authoring
environment, but because we wish to work with any arbitrary XML language,
we are not sure of how to create a DTD that allows this. For example:

<WEFOR>
	<WESTART>
		i=0
	</WESTART>
	<WECOND>
		i &lt; 10
	</WECOND>
	<WEINCR>
		i = i + 1
	</WEINCR>
		This is loop # <WEVAR NAME="i"><BR></BR>
</WEFOR>

2. How is HTML 4.0 following the well formed constraint for Java/ECMAScript
when < and & are not allowed in Attribute values (currently the
onmouseover, onclick  and other events are allowed in the attribute value.
Furthermore, how will this be handled in the <SCRIPT
LANGUAGE="JavaScript"></SCRIPT> element? Same problem by my understanding
of the DTD?

Any advice or direction on how these problems are handled would be
appreciated.  The application in question is
(http://www.webeasy.com/products/weasel.htm).

-MA
~-~-~-~-~-~-~-~-~-~-~-~-~-~-WEBEASY-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Michael Amster					mamster@w...
4676 Admiralty Way, Suite 300			Tel: 310.576.0770
Marina Del Rey, CA 90292		       	Fax: 310.576.2011

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.