[Home] [By Thread] [By Date] [Recent Entries]
At 2013-07-15 18:55 +0000, Costello, Roger L. wrote:
The item of interest, however, is this snippet: Yep! Because I think you are taking one step too far. I haven't tested it, but I think this will work for you: test="string(bk:ISBN) instance of bk:ISBN-type"> What am I doing wrong please? You are enforcing the schema constraint by using data() before checking that the content conforms to the constraint. In my code I'm simply getting the value as a string, thus not imposing any constrains, and then checking that string to be convertible to the said constraints. Please let me know if that works for you. I hope it helps. . . . . . . . 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: 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 |
|

Cart



