this is a german Web-Mirror of MHONARC.ORG powered by Domainunion AG

xsl-list
[Top] [All Lists]

RE: [xsl] In XPath 2.0 can my XSLT program validate the input and check whether the validation succeeded?

2013-07-20 15:35:33
At 2013-07-20 20:13 +0000, Costello, Roger L. wrote:
>>         data(.) instance of element(Book, BookType)
>>
> Have you tried "string(.) castable as element(Book, BookType)"?

Hi Ken, yes I have tried that and the results are the same.

Ouch! I should have said ". castable as element( Book, BookType )" because of course a string cannot have structure. But an element can, so if your current node is an element, then you should check if the node is castable as.

Please forgive my slip in my haste.

. . . . . . . Ken


--
Public XSLT, XSL-FO, and UBL classes in the Netherlands     Oct 2013 |
Public XSLT, XSL-FO, UBL and code list classes in Australia Oct 2013 |
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: https://www.CraneSoftwrights.com/links/udemy.htm |
Crane Softwrights Ltd.            https://www.CraneSoftwrights.com/s/ |
G. Ken Holman                   mailto:gkholman(_at_)CraneSoftwrights(_dot_)com 
|
Google+ profile: https://plus.google.com/116832879756988317389/about |
Legal business disclaimers:    https://www.CraneSoftwrights.com/legal |


--~------------------------------------------------------------------
XSL-List info and archive:  https://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: https://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--