XTDE1310: format-number picture...
Added by Anonymous over 16 years ago
Legacy ID: #5018516 Legacy Poster: Chris H (chrish22)
Full error message XTDE1310: format-number picture: subpicture contains no digit or zero-digit sign This is essentially generated from the following two lines of code <xsl:if test="$Miles > 0"> <xsl:number value="number($Miles)" format ="Ww"/> I thought with XSLT 2 format of Ww was valid - i.e. to covert to words?? Any help would be greatly appreciated. Thanks
Replies (4)
Please register to reply
RE: XTDE1310: format-number picture... - Added by Anonymous over 16 years ago
Legacy ID: #5018585 Legacy Poster: Michael Kay (mhkay)
The error message seems unrelated to the code snippet shown. Are you sure you don't have a call to the format-number() function lying around somewhere?
RE: XTDE1310: format-number picture... - Added by Anonymous over 16 years ago
Legacy ID: #5020349 Legacy Poster: Chris H (chrish22)
Okay you are correct, this was me playing around late on yesterday, this error message is generated from the line. <xsl:value-of select="format-number($Miles,'Ww')"/> In actual fact, and with a clean head this morning it appears that using <xsl:number value="number($Miles)" format ="Ww"/> instead seems to work for me. I suppose this is more of a question about whether the format-number() with the Ww should work like this, or maybe dare I say it is this a bug? Great work by the way and thanks in advance for your time. Chris.
RE: XTDE1310: format-number picture... - Added by Anonymous over 16 years ago
Legacy ID: #5020390 Legacy Poster: Michael Kay (mhkay)
The rules for the picture string of format-number() are given at http://www.w3.org/TR/xslt20/#dt-picture-string. There's a sorry lack of examples, but you'll find plenty in my book ;-)
RE: XTDE1310: format-number picture... - Added by Anonymous over 16 years ago
Legacy ID: #5020952 Legacy Poster: Chris H (chrish22)
I've ordered your book cheaper than alternatives as well, lack of reviews on Amazon - maybe I'll be first ;) Does this substitute making a donation to the project ;) Still don't get this, tried wrapping the Ww in square brackets (like I have done on format-date format-time etc), and still same error message. If I have to wait for your book to drop through the door can you gimme the page number, or better still a sneak preview :)
Please register to reply