[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Bad programmers use recursion, xslt (Offtopic...)
> > > if one does not define very well the > > "xml interfaces" to communicate between > stylesheets > > (the structure of the xml trees input of each > > stylesheet) it becomes very difficult to > understand, > > document and debug them. > > Agreed: there's a lot to be said for defining a > schema for each intermediate > document in the pipeline, Exactly, if these intermediate formats already exist is easier, otherwise one must define them, write their definition somewhere. > and using schema-aware > stylesheets to trap the > errors as soon as they occur, rather than allowing > them to propagate to > later stages in the pipeline. Doing with schema is one option. Any option one uses he needs to be very precise and methodic and be well aware of the complexities involved. Writing a schema or documentation is time consuming, one should weight all these aspects. I found myself sometimes like I was playing chess in jumping from one stylesheet to the other. For complex stuff a tecnique I use is printing err:@* attributes during transformations when something goes wrong and even as warnings. Then I read two times the output: in the first I collect errors and warnings, then I present them to the decison-maker and in case I continue with the next step, that simply ignores ther err:@* attributes. > > > > I tried to find something that allows you to > > do multiple transformations in a declarative > > way but I did not find much. > > > > There's a W3C activity starting up to define a > pipeline processing language > which will make it possible to do this in a portable > way. Almost scared by this ;-) joking. It would be nice to do it with the almost the same syntax of xslt but with state inside this pipeline stylesheet. > > Meanwhile there are pipeline processors for example > from Orbeon and from > Markup Technologies (http://www.markup.co.uk/), and > other people are using > tools like Ant. Thanks. I follow 2 approaches: or I append with the DOM the output of the first transformation to the source, or I copy also the original tree with the first stylesheet. In any of the two cases I have to use some code. Greetings Michele Vivoda ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|