xsl-list
[Top] [All Lists]

XSL: Error Detection?

2003-03-11 07:23:23

Hi,

I have an input XML of which I am interested only in a subset of the nodes
for transalting into another XML doc. 

I have written stylesheets ( and these are substantially large ones ) for
the translation.

Now the problem is the input XML is generated automatically in which case
there might be errors ( in generation )  and some nodes that I am interested
in translating may not be generated. However, the input XML will have an
"ERROR" subtree as a decendant of the root indicating a failure and
detailing the node name, context and error string.

Now: I have these constraints:
        - The Stylesheet is already done and it is an overkill for each node
translation to check for the node in the "ERROR" subtree.
        - Since I am translating only a subset , I will not be interested in
the "ERROR" subtree if the nodes that I am translating are not specified in
the subtree.
        - NOTE: It IS possible to change the way,means and mode the input
XML reports the error.

Goal:
         Is it possible , with minimum invasion, to make the styleesheet
capable of such error detection ?. 
        

Thanks,
Ashish.




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>