Click here to Skip to main content
15,904,416 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionMSXML 5.0 SDK Pin
Andy H5-Mar-07 3:52
Andy H5-Mar-07 3:52 
AnswerRe: MSXML 5.0 SDK Pin
Dmitry Khudorozhkov5-Mar-07 7:12
Dmitry Khudorozhkov5-Mar-07 7:12 
GeneralRe: MSXML 5.0 SDK Pin
Andy H5-Mar-07 7:55
Andy H5-Mar-07 7:55 
GeneralRe: MSXML 5.0 SDK Pin
Stefan Troschuetz5-Mar-07 19:52
Stefan Troschuetz5-Mar-07 19:52 
GeneralRe: MSXML 5.0 SDK Pin
Andy H5-Mar-07 20:30
Andy H5-Mar-07 20:30 
QuestionMerging 2 XML documents Pin
w13RTH70Lo4-Mar-07 2:58
w13RTH70Lo4-Mar-07 2:58 
Questionpassing array as argument in XSLt Pin
w13RTH70Lo3-Mar-07 2:55
w13RTH70Lo3-Mar-07 2:55 
QuestionXSLT exception handling Pin
rana742-Mar-07 19:29
rana742-Mar-07 19:29 
We test a particular constriant in our XSLT and throw a custom exception on failure:

<xsl:when test="......">
<xsl:value-of
select="exception:throwException('Recording failed')">


Here exception is defined as:
xmlns:exception="http://..../util.exception.ValidationExceptionThrower"
The problem is that this kind of exception handling by-passes the java code.
In our Java client,we have the following:

{
.........

TransformerFactory tFactory = TransformerFactory.newInstance();

transformer = tFactory.newTransformer(source);
....
StreamResult result = new StreamResult();
java.io.ByteArrayOutputStream outputXmlResult = new
java.io.ByteArrayOutputStream();
result.setOutputStream(outputXmlResult);
transformer.transform(xmlsource, result);
setOutXml(outputXmlResult.toString());


return "Success";

}

catch(ValidationException ex) {
System.out.println("INSIDE VALIDATIONEXCEPTION");
......
}
finally {
return "failure";
}

}

The exception thrown by XSLT does not get trapped by the error handler in the client.
How can XSLT be adapted to throw a 'catchable' exception.
QuestionRead xml file into HTML table Pin
thedom228-Feb-07 13:41
thedom228-Feb-07 13:41 
AnswerRe: Read xml file into HTML table Pin
Stefan Troschuetz28-Feb-07 21:11
Stefan Troschuetz28-Feb-07 21:11 
GeneralRe: Read xml file into HTML table Pin
thedom21-Mar-07 0:17
thedom21-Mar-07 0:17 
GeneralRe: Read xml file into HTML table Pin
Stefan Troschuetz1-Mar-07 0:40
Stefan Troschuetz1-Mar-07 0:40 
GeneralRe: Read xml file into HTML table Pin
thedom21-Mar-07 15:33
thedom21-Mar-07 15:33 
Questionhelping converting doc,txt,rtf to xml Pin
yacastr28-Feb-07 5:36
yacastr28-Feb-07 5:36 
AnswerRe: helping converting doc,txt,rtf to xml Pin
led mike28-Feb-07 5:48
led mike28-Feb-07 5:48 
AnswerRe: helping converting doc,txt,rtf to xml Pin
yacastr28-Feb-07 6:03
yacastr28-Feb-07 6:03 
GeneralRe: helping converting doc,txt,rtf to xml Pin
led mike28-Feb-07 6:42
led mike28-Feb-07 6:42 
QuestionOnly Selected portion of XML to Ecel Pin
w13RTH70Lo27-Feb-07 20:55
w13RTH70Lo27-Feb-07 20:55 
AnswerRe: Only Selected portion of XML to Ecel Pin
nirmalamari7-Mar-07 14:56
nirmalamari7-Mar-07 14:56 
QuestionXPATH query to get the child elemets of a node Pin
madhusri27-Feb-07 17:24
madhusri27-Feb-07 17:24 
AnswerRe: XPATH query to get the child elemets of a node Pin
Stefan Troschuetz27-Feb-07 22:18
Stefan Troschuetz27-Feb-07 22:18 
GeneralRe: XPATH query to get the child elemets of a node Pin
madhusri28-Feb-07 2:20
madhusri28-Feb-07 2:20 
GeneralNesting XmlTextWriter Pin
Brady Kelly27-Feb-07 9:03
Brady Kelly27-Feb-07 9:03 
GeneralRe: Nesting XmlTextWriter Pin
Stefan Troschuetz27-Feb-07 22:32
Stefan Troschuetz27-Feb-07 22:32 
QuestionImplementing XSLT constraint Pin
rana7427-Feb-07 0:49
rana7427-Feb-07 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.