This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Created attachment 1608 [details] Code sample section 13 Under section 13 Functions and operators on nodes, the following code sample has only part of it colored as a code sample, and the "let" keywords are in proportional font: let $po := <PurchaseOrder> <line-item> <description>Large widget</description> <price>8.95</price> <quantity>5.0</quantity> </line-item> <line-item> <description>Small widget</description> <price>3.99</price> <quantity>2.0</quantity> </line-item> <line-item> <description>Tiny widget</description> <price>1.49</price> <quantity>805</quantity> </line-item> </PurchaseOrder> let $item1 := $po/line-item[1] let $item2 := $po/line-item[2] let $item3 := $po/line-item[3]
(see also attachment, which is the rendering in Firefox)
Slightly tricky to fix, because the markup here is designed both to enable HTML rendition and to enable executable test cases to be generated. And the latter hasn't been tested for a while, because it hasn't been possible to execute many of the test cases in the absence of a 3.1 implementation. So fixing this depends on doing work to revive the code to execute examples in the spec.
To be resolved editorially.
The editor was asked to look at whether the markup/stylesheet can be improved to give a better rendition for this code sample; if it proves too difficult, the editor has discretion to give up and leave things as they are.
I've changed the markup to improve the visual presentation, at the risk of making it more difficult to do the automated testing of examples - the latter code has been dormant for some while and needs a fair bit of work to get it back into order anyway.