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

Re: Multiple output types and embedded documentation

Subject: Re: Multiple output types and embedded documentation
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 3 Jul 2000 11:28:34 +0100 (BST)
types of embedded

> Kinda neat!
> 
> Anone else think this sounds like the best approach yet for the weave
> 
> solution?

Note that the original "write in web, tangle to pascal" approach was
designed not only to allow documented "literate" sources, but to avoid
many of the syntactic restrictions of pascal, such as variables needing
to be declared before use.

While the simple sketch I posted just toggles in or out choices like
out_1 you could spec out an input language that differs substantially
from XSL, together with a transform to XSL as required.

This would allow for example:

  boolean queries on the options
  include this code if this or this or this,

  automatic conversion of some if-then-else syntax to xsl:choose

  automatic conversion to the verbose parameter passing syntax from
  something more friendly,

  translation of extension element calls from some generic syntax to the
  vendor specific namespace and syntax required.

but beware the further you go along this route the more you are starting
to define a new language. WEB is not pascal-with-comments it is a
different language, the first stage of the compilation of which is to
transform to pascal (or these days, C). Similarly while the example
stylesheet was still recognisably XSL + documentation + oprional XSLish
statements, the smarter the "code extraction" stylesheet gets, the
further the input input language gets from XSL.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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