|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: [XSLT 2] rescue
Unfortunately there is no try-catch in XPath 2 or XSLT 2. We debated putting one in, but people felt it was a bridge too far. People were particularly concerned about defining exactly what state the system was in if an error was trapped and ignored, for example, should it effectively be required to do a "rollback" of the result tree. Michael Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Tobias Reif > Sent: 14 June 2003 17:28 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [XSLT 2] rescue > > > Hi > > In Ruby I can do > > begin > # do something > rescue > # do something else if the above failed > end > > How to do that in XSLT 2? (or XPath 2) > > For example when the path in unparsed-text($path) does not > point to anything, I'd like to print a message and generate a > comment, and I want the transformation to be continued, not aborted. > > Tobi > > -- > http://www.pinkjuice.com/ > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








