[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: In XPath 2.0 can my XSLT program validate the inpu
But I should have checked the specification before even making my
second suggestion.
http://www.w3.org/TR/2007/REC-xpath20-20070123/#id-castable "The target type must be an atomic type " ... so since you are checking a structure, my second suggestion won't work either because the right-hand side cannot be a structure. I guess that is why it was my habit to use string(.) on the left hand side. Now, "instance of" takes a sequence type: http://www.w3.org/TR/2007/REC-xpath20-20070123/#id-instance-of ... but as you say, there are no type annotations on your input, so I don't think ". instance of element(Book, BookType)" will work for you. I think you may be stuck. . . . . . . . Ken At 2013-07-20 16:35 -0400, I wrote: 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)"? -- 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: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: https://plus.google.com/116832879756988317389/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|