Subject: Re: [xsl] Issues with xs:error in the XPath 3.0 and XDM 3.0 Recommendations. From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Sat, 19 Apr 2014 18:42:01 -0700 |
On Sat, Apr 19, 2014 at 4:42 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote: > One way one might construct a scenario where xs:error is possibly useful is via function-lookup(). Suppose I am passed a type local name (e.g. "int" or "string") as a parameter, then I can cast to that type by doing > > function-lookup(QName(XSD_NAMESPACE, $type), 1)($input) > > and if I want the cast to always fail, then I can supply $type := "error". Thanks for this example. To put it in other words: Why was the xs:error type introduced (in XML Schema)? What purpose does it serve? What problems does it solve? Cheers, Dimitre Novatchev
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Issues with xs:error in t, Michael Kay | Thread | Re: [xsl] Issues with xs:error in t, Graydon |
Re: [xsl] Issues with xs:error in t, Michael Kay | Date | Re: [xsl] Issues with xs:error in t, Graydon |
Month |