Re: error handling in xslt
Axel Hecht <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
Alex Iskold wrote: > Hello everyone, > > Is there a way to to specify in XSL file to > recover from failure based on one individual items? > > For example, say my input file is: > > <items> > <item id="1">good content</item> > <item id="2">malformed content</item> > <item id="3">good content</item> > </items> > > the second item has malformed content inside, like non-XML compliant string. > > Is there a way to still process items with good content, id 1 and 3? > > Thank you in advance, > > Alex > > No, there isn't. Actually, there is hardly any way to assume that item 3 would be welformed after you busted the xml parser in item 2. But we don't expose item 1, either. Maybe once scriptable sax lands you can hand craft something that does what you expect it to. Axel