Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] XSLT2 - which parts solve real 1.0 problems, whichmakes coffee? - was Re: [xml-dev] Streaming XML

From: Uche Ogbuji <uche.ogbuji@-----------.--->
To: "M. David Peterson" <m.david.x2x2x@-----.--->
Date: 1/1/2005 6:30:00 PM
On Thu, 2004-12-30 at 20:13 -0700, M. David Peterson wrote:
> "My own proposal was for special XSLT error templates that could
> "match" or trigger on error conditions, assuming a very simple XML
> vocab for XSLT error communication in the
> first place."
> 
> Oooohhhh.... I totally love that idea!!!  Basically like built-in
> templates that exist in the 1.0 definition...  basic output and easily
> overidable if desired as such.
> 
> Dimitre, can you think of a way to do this with FXSL, especially with
> XSLT 2.0 and everything being a sequence of nodes it seems that a
> certain condition could easily insert,  for example, <error id="123"/>
> into the output and further apply-templates to all error elements
> before finishing each process contained within a template?

This is a possible strategy for experimental implementation relative to
current XSLT specs, but I think that to really make the idea as useful
as possible one would have to figure out a way do define a separate
error output channel (perhaps just one of the multiple outputs allowed
in EXSLT and XSLT 2.0).  For one thing, if you thrust <error id="123"/>
into the regular output and an error template wished to handle the
exception, there is no way to pull back that error node from the output
so that it stops propagating.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Use CSS to display XML - http://www.ibm.com/developerworks/edu/x-dw-x-xmlcss-i.html
Full XML Indexes with Gnosis - http://www.xml.com/pub/a/2004/12/08/py-xml.html
Be humble, not imperial (in design) - http://www.adtmag.com/article.asp?id=10286
UBL 1.0 - http://www-106.ibm.com/developerworks/xml/library/x-think28.html
Use Universal Feed Parser to tame RSS - http://www.ibm.com/developerworks/xml/library/x-tipufp.html
Default and error handling in XSLT lookup tables - http://www.ibm.com/developerworks/xml/library/x-tiplook.html
A survey of XML standards - http://www-106.ibm.com/developerworks/xml/library/x-stand4/
The State of Python-XML in 2004 - http://www.xml.com/pub/a/2004/10/13/py-xml.html


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent