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

Serving pages with LtXML

  • From: "Jason R. Cupp" <jcupp@e...>
  • To: XML-DEV <xml-dev@i...>
  • Date: Fri, 23 Jan 1998 02:27:09 -0800

ltxml
Is anyone using LtXML to serve web pages? I'm converting most everything
on the website I manage into custom XML applications. I've found a neat
trick to do it and was wondering if anyone had similiar experiences. 

When a document is requested, say "http://dork.net/faq". This actually
points to "../faq/index.shtml". This file contains a server-side include
that executes a script: "<!--#exec cmd='/cgi-bin/writexml mypage.r
mypage.xml". This script takes two arguments 1) the control file (*.c)
or rule file  (*.r) and the XML document (mypage.xml). "writexml" then
calls LtXML programs to convert the XML into HTML using the translation
files, sending output back to the webserver. What the user sees in the
end is only HTML. This avoids having to rely on stylesheets.

In addition this script "writexml" can also accept flags like "writexml
-d" which tell it to translate ISODATES ("19980101") into "Jan 1st,
1998", and perform sorting "writexml -i" on output from LtXML's 'sgrpg'
or 'sgmltrans' that looks like:

	"index=shoes data=<h1>Some shoes are red</h1>..."
	"index=foxes data=<h1>Foxes are fast</h1>..."
	"index=apple data=<h1>The best apples are granny smiths</h1>"

The script will take this output (because of the "-i" option) and print
back to the client:

	"<h1>The best apples are granny smiths</h1>"
	"<h1>Foxes are fast</h1>"
	"<h1>Some shoes are red</h1>"

	

--
Jason R. Cupp (jcupp@e...)
Deasy GeoGraphics
The Pennsylvania State University

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.