Is it possible to store the parser error message in variable using xslt2.0 or xslt 3.0How to populate current error message in `xsl:message` in XSLT 2.0 or 3.0?How to apply an XSLT Stylesheet in C#How to insert in XSLTXSLT equivalent for JSONWhy does XSLT output all text by default?XSLT Transformation ERRORError when trying to split an XML file using XSLTUnfolding XML with XSLT possible?JSON to XML transformation in XSLT 3.0XSLT 3.0, Converting XML to JSONHow can I loop and generate keys for maps with XSLT 3.0?
Can we have too many dialogue tags and follow up actions?
Can I pay with HKD in Macau or Shenzhen?
Learning Ramban Al HaTorah
How can I show that the speed of light in vacuum is the same in all reference frames?
Are rockets faster than airplanes?
Xcode 10.3 Installation
What is "ass door"?
How to work a regular job as a former celebrity
German phrase for 'suited and booted'
My current job follows "worst practices". How can I talk about my experience in an interview without giving off red flags?
Does switching on an old games console without a cartridge damage it?
Chemistry Riddle
Does Impedance Matching Imply any Practical RF Transmitter Must Waste >=50% of Energy?
Are stackless C++20 coroutines a problem?
How often should alkaline batteries be checked when they are in a device?
What is the best word describing the nature of expiring in a short amount of time, connoting "losing public attention"?
What kind of world would drive brains to evolve high-throughput sensory?
Company requiring me to let them review research from before I was hired
Would using carbon dioxide as fuel work to reduce the greenhouse effect?
How can Kazakhstan perform MITM attacks on all HTTPS traffic?
Adding gears to my grandson's 12" bike
Is it better to merge "often" or only after completion do a big merge of feature branches?
Has Peter Parker ever eaten bugs?
Tire pressure with load and heat
Is it possible to store the parser error message in variable using xslt2.0 or xslt 3.0
How to populate current error message in `xsl:message` in XSLT 2.0 or 3.0?How to apply an XSLT Stylesheet in C#How to insert in XSLTXSLT equivalent for JSONWhy does XSLT output all text by default?XSLT Transformation ERRORError when trying to split an XML file using XSLTUnfolding XML with XSLT possible?JSON to XML transformation in XSLT 3.0XSLT 3.0, Converting XML to JSONHow can I loop and generate keys for maps with XSLT 3.0?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am doing transform xml file using xslt
and I want to display the error message of xslt
parser in an element
Note: Error message should be original of parser message
xslt xslt-3.0
add a comment |
I am doing transform xml file using xslt
and I want to display the error message of xslt
parser in an element
Note: Error message should be original of parser message
xslt xslt-3.0
What do you mean by parser error? Parsing fase is done before you get an XML instance to process. I think there are tools for generating XML response from parsing.
– Alejandro
Mar 26 at 15:57
Can you give an example of what you consider an error message of an "xslt parser"? Is the code in stackoverflow.com/questions/55356168/… helpful? It is not about XML input parsing but it shows how to capture XSLT run-time errors in XSLT 3 withxsl:try/xsl:catch
and you can of course use it on a call todoc
as well: xsltfiddle.liberty-development.net/ej9EGcg/2
– Martin Honnen
Mar 26 at 16:20
Thanks @Martin to understand me your given link is useful to me and I wanted exactly that output Thank you once again
– sunilk
Mar 27 at 7:48
@sunilk, I have put the code from the referenced link example into an answer so you can accept it to indicate your question has been solved.
– Martin Honnen
Mar 28 at 12:26
add a comment |
I am doing transform xml file using xslt
and I want to display the error message of xslt
parser in an element
Note: Error message should be original of parser message
xslt xslt-3.0
I am doing transform xml file using xslt
and I want to display the error message of xslt
parser in an element
Note: Error message should be original of parser message
xslt xslt-3.0
xslt xslt-3.0
edited Mar 26 at 14:04
sunilk
asked Mar 26 at 12:28
sunilksunilk
214 bronze badges
214 bronze badges
What do you mean by parser error? Parsing fase is done before you get an XML instance to process. I think there are tools for generating XML response from parsing.
– Alejandro
Mar 26 at 15:57
Can you give an example of what you consider an error message of an "xslt parser"? Is the code in stackoverflow.com/questions/55356168/… helpful? It is not about XML input parsing but it shows how to capture XSLT run-time errors in XSLT 3 withxsl:try/xsl:catch
and you can of course use it on a call todoc
as well: xsltfiddle.liberty-development.net/ej9EGcg/2
– Martin Honnen
Mar 26 at 16:20
Thanks @Martin to understand me your given link is useful to me and I wanted exactly that output Thank you once again
– sunilk
Mar 27 at 7:48
@sunilk, I have put the code from the referenced link example into an answer so you can accept it to indicate your question has been solved.
– Martin Honnen
Mar 28 at 12:26
add a comment |
What do you mean by parser error? Parsing fase is done before you get an XML instance to process. I think there are tools for generating XML response from parsing.
– Alejandro
Mar 26 at 15:57
Can you give an example of what you consider an error message of an "xslt parser"? Is the code in stackoverflow.com/questions/55356168/… helpful? It is not about XML input parsing but it shows how to capture XSLT run-time errors in XSLT 3 withxsl:try/xsl:catch
and you can of course use it on a call todoc
as well: xsltfiddle.liberty-development.net/ej9EGcg/2
– Martin Honnen
Mar 26 at 16:20
Thanks @Martin to understand me your given link is useful to me and I wanted exactly that output Thank you once again
– sunilk
Mar 27 at 7:48
@sunilk, I have put the code from the referenced link example into an answer so you can accept it to indicate your question has been solved.
– Martin Honnen
Mar 28 at 12:26
What do you mean by parser error? Parsing fase is done before you get an XML instance to process. I think there are tools for generating XML response from parsing.
– Alejandro
Mar 26 at 15:57
What do you mean by parser error? Parsing fase is done before you get an XML instance to process. I think there are tools for generating XML response from parsing.
– Alejandro
Mar 26 at 15:57
Can you give an example of what you consider an error message of an "xslt parser"? Is the code in stackoverflow.com/questions/55356168/… helpful? It is not about XML input parsing but it shows how to capture XSLT run-time errors in XSLT 3 with
xsl:try/xsl:catch
and you can of course use it on a call to doc
as well: xsltfiddle.liberty-development.net/ej9EGcg/2– Martin Honnen
Mar 26 at 16:20
Can you give an example of what you consider an error message of an "xslt parser"? Is the code in stackoverflow.com/questions/55356168/… helpful? It is not about XML input parsing but it shows how to capture XSLT run-time errors in XSLT 3 with
xsl:try/xsl:catch
and you can of course use it on a call to doc
as well: xsltfiddle.liberty-development.net/ej9EGcg/2– Martin Honnen
Mar 26 at 16:20
Thanks @Martin to understand me your given link is useful to me and I wanted exactly that output Thank you once again
– sunilk
Mar 27 at 7:48
Thanks @Martin to understand me your given link is useful to me and I wanted exactly that output Thank you once again
– sunilk
Mar 27 at 7:48
@sunilk, I have put the code from the referenced link example into an answer so you can accept it to indicate your question has been solved.
– Martin Honnen
Mar 28 at 12:26
@sunilk, I have put the code from the referenced link example into an answer so you can accept it to indicate your question has been solved.
– Martin Honnen
Mar 28 at 12:26
add a comment |
1 Answer
1
active
oldest
votes
I am not sure there is a way to capture XML parsing errors of the primary input document to an apply-templates
based XSLT 3 transformation but in general XSLT 3 with xsl:try/xsl:catch
allows you to capture and handle run-time errors, so assuming you can organize the rest of your code (for instance by using a named template as the starting point) to load/parse any XML documents with the doc
or document
function then you can use try/catch
to handle parsing errors. An example is https://xsltfiddle.liberty-development.net/ej9EGcg/2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try>
<xsl:variable name="doc1" select="doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml')"/>
<xsl:value-of select="count($doc1//item)"/>
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
which, depending on your needs, can also be reduced to directly use the relevant XPath expression with the select
attribute of the xsl:try
element e.g. https://xsltfiddle.liberty-development.net/ej9EGcg/3
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try select="count(doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml'))">
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
Please don't raise separate problems in a comment or in an answer to a previous question, post new question for the new, separate issue. See w3.org/TR/xslt-30/#result-document-restrictions for the restrictions on the use ofxsl:result-document
,xsl:function
is one of the elements defined there to now allow the use ofxsl:result-document
.
– Martin Honnen
Mar 28 at 14:36
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55357188%2fis-it-possible-to-store-the-parser-error-message-in-variable-using-xslt2-0-or-xs%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I am not sure there is a way to capture XML parsing errors of the primary input document to an apply-templates
based XSLT 3 transformation but in general XSLT 3 with xsl:try/xsl:catch
allows you to capture and handle run-time errors, so assuming you can organize the rest of your code (for instance by using a named template as the starting point) to load/parse any XML documents with the doc
or document
function then you can use try/catch
to handle parsing errors. An example is https://xsltfiddle.liberty-development.net/ej9EGcg/2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try>
<xsl:variable name="doc1" select="doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml')"/>
<xsl:value-of select="count($doc1//item)"/>
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
which, depending on your needs, can also be reduced to directly use the relevant XPath expression with the select
attribute of the xsl:try
element e.g. https://xsltfiddle.liberty-development.net/ej9EGcg/3
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try select="count(doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml'))">
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
Please don't raise separate problems in a comment or in an answer to a previous question, post new question for the new, separate issue. See w3.org/TR/xslt-30/#result-document-restrictions for the restrictions on the use ofxsl:result-document
,xsl:function
is one of the elements defined there to now allow the use ofxsl:result-document
.
– Martin Honnen
Mar 28 at 14:36
add a comment |
I am not sure there is a way to capture XML parsing errors of the primary input document to an apply-templates
based XSLT 3 transformation but in general XSLT 3 with xsl:try/xsl:catch
allows you to capture and handle run-time errors, so assuming you can organize the rest of your code (for instance by using a named template as the starting point) to load/parse any XML documents with the doc
or document
function then you can use try/catch
to handle parsing errors. An example is https://xsltfiddle.liberty-development.net/ej9EGcg/2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try>
<xsl:variable name="doc1" select="doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml')"/>
<xsl:value-of select="count($doc1//item)"/>
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
which, depending on your needs, can also be reduced to directly use the relevant XPath expression with the select
attribute of the xsl:try
element e.g. https://xsltfiddle.liberty-development.net/ej9EGcg/3
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try select="count(doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml'))">
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
Please don't raise separate problems in a comment or in an answer to a previous question, post new question for the new, separate issue. See w3.org/TR/xslt-30/#result-document-restrictions for the restrictions on the use ofxsl:result-document
,xsl:function
is one of the elements defined there to now allow the use ofxsl:result-document
.
– Martin Honnen
Mar 28 at 14:36
add a comment |
I am not sure there is a way to capture XML parsing errors of the primary input document to an apply-templates
based XSLT 3 transformation but in general XSLT 3 with xsl:try/xsl:catch
allows you to capture and handle run-time errors, so assuming you can organize the rest of your code (for instance by using a named template as the starting point) to load/parse any XML documents with the doc
or document
function then you can use try/catch
to handle parsing errors. An example is https://xsltfiddle.liberty-development.net/ej9EGcg/2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try>
<xsl:variable name="doc1" select="doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml')"/>
<xsl:value-of select="count($doc1//item)"/>
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
which, depending on your needs, can also be reduced to directly use the relevant XPath expression with the select
attribute of the xsl:try
element e.g. https://xsltfiddle.liberty-development.net/ej9EGcg/3
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try select="count(doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml'))">
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
I am not sure there is a way to capture XML parsing errors of the primary input document to an apply-templates
based XSLT 3 transformation but in general XSLT 3 with xsl:try/xsl:catch
allows you to capture and handle run-time errors, so assuming you can organize the rest of your code (for instance by using a named template as the starting point) to load/parse any XML documents with the doc
or document
function then you can use try/catch
to handle parsing errors. An example is https://xsltfiddle.liberty-development.net/ej9EGcg/2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try>
<xsl:variable name="doc1" select="doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml')"/>
<xsl:value-of select="count($doc1//item)"/>
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
which, depending on your needs, can also be reduced to directly use the relevant XPath expression with the select
attribute of the xsl:try
element e.g. https://xsltfiddle.liberty-development.net/ej9EGcg/3
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:err="http://www.w3.org/2005/xqt-errors"
exclude-result-prefixes="#all"
version="3.0">
<xsl:template match="/">
<root>
<xsl:try select="count(doc('https://raw.githubusercontent.com/martin-honnen/martin-honnen.github.io/master/xslt/2019/test2019032601.xml'))">
<xsl:catch>Error code: <xsl:value-of select="$err:code"/>
Reason: <xsl:value-of select="$err:description"/>
</xsl:catch>
</xsl:try>
</root>
</xsl:template>
</xsl:stylesheet>
answered Mar 28 at 11:58
Martin HonnenMartin Honnen
116k6 gold badges63 silver badges82 bronze badges
116k6 gold badges63 silver badges82 bronze badges
Please don't raise separate problems in a comment or in an answer to a previous question, post new question for the new, separate issue. See w3.org/TR/xslt-30/#result-document-restrictions for the restrictions on the use ofxsl:result-document
,xsl:function
is one of the elements defined there to now allow the use ofxsl:result-document
.
– Martin Honnen
Mar 28 at 14:36
add a comment |
Please don't raise separate problems in a comment or in an answer to a previous question, post new question for the new, separate issue. See w3.org/TR/xslt-30/#result-document-restrictions for the restrictions on the use ofxsl:result-document
,xsl:function
is one of the elements defined there to now allow the use ofxsl:result-document
.
– Martin Honnen
Mar 28 at 14:36
Please don't raise separate problems in a comment or in an answer to a previous question, post new question for the new, separate issue. See w3.org/TR/xslt-30/#result-document-restrictions for the restrictions on the use of
xsl:result-document
, xsl:function
is one of the elements defined there to now allow the use of xsl:result-document
.– Martin Honnen
Mar 28 at 14:36
Please don't raise separate problems in a comment or in an answer to a previous question, post new question for the new, separate issue. See w3.org/TR/xslt-30/#result-document-restrictions for the restrictions on the use of
xsl:result-document
, xsl:function
is one of the elements defined there to now allow the use of xsl:result-document
.– Martin Honnen
Mar 28 at 14:36
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55357188%2fis-it-possible-to-store-the-parser-error-message-in-variable-using-xslt2-0-or-xs%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What do you mean by parser error? Parsing fase is done before you get an XML instance to process. I think there are tools for generating XML response from parsing.
– Alejandro
Mar 26 at 15:57
Can you give an example of what you consider an error message of an "xslt parser"? Is the code in stackoverflow.com/questions/55356168/… helpful? It is not about XML input parsing but it shows how to capture XSLT run-time errors in XSLT 3 with
xsl:try/xsl:catch
and you can of course use it on a call todoc
as well: xsltfiddle.liberty-development.net/ej9EGcg/2– Martin Honnen
Mar 26 at 16:20
Thanks @Martin to understand me your given link is useful to me and I wanted exactly that output Thank you once again
– sunilk
Mar 27 at 7:48
@sunilk, I have put the code from the referenced link example into an answer so you can accept it to indicate your question has been solved.
– Martin Honnen
Mar 28 at 12:26