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

Re: Architectural Forms: The Next Generation


form design generation

Jason Diamond wrote:
>
> Is it possible to reorder the mapped forms? What if I wanted the date
> element to appear after the byline element? I'm assuming that the order of
> forms in the map has no effect since they don't match the result document.
>
> I like the idea but it seems that all your map can do is strip and rename.
> Wouldn't mapping from one form to another with more complex vocabularies
> require more functionality than that?
>
> I'm just a youngin' so AFs are entirely new to me. But it seems that you're
> just trying to write a transform but without using XSLT or other procedural
> code. Don't get me wrong, I think that'd be great but it doesn't seem to
> have the flexibility and power that you get with full XSLT.


That's right.  But there's also less complexity, which has many
benefits.  For example, it's possible to process any architectural
transformation in "streaming" mode (e.g., with a SAX filter),
which is not the case for general XSLT transformations.
Given a source DTD, architectural mapping, and architectural
DTD, it's possible to determine whether or not all documents
conforming to the source DTD also conform to the architecture
after mapping.

As for reordering elements, the best practice is to design
the architecture so that, to the extent possible, it's never
necessary.  In John Cowan's example [1], the architecture
could be defined (using SGML notation) like:

    <!element article ((headline & byline? & datestamp? & lead?), para*)>

Architectures should be designed to be as flexible as possible;
the above is better than

    <!element article (headline, byline, datestamp, lead, para+)>

since a larger class of source documents can be transformed
into the former with a lightweight transformation process
than the latter.


[1] <URL: http://lists.xml.org/archives/xml-dev/200201/msg01686.html >


--Joe English

  jenglish@f...

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.