This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28717 - [FO31] and [FO30] (editorial) layout of code sample broken
Summary: [FO31] and [FO30] (editorial) layout of code sample broken
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 trivial
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-28 14:31 UTC by Abel Braaksma
Modified: 2016-12-16 19:55 UTC (History)
1 user (show)

See Also:


Attachments
Code sample section 13 (37.25 KB, image/jpeg)
2015-05-28 14:31 UTC, Abel Braaksma
Details

Description Abel Braaksma 2015-05-28 14:31:11 UTC
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]
Comment 1 Abel Braaksma 2015-05-28 14:31:42 UTC
(see also attachment, which is the rendering in Firefox)
Comment 2 Michael Kay 2015-05-28 19:53:08 UTC
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.
Comment 3 John Snelson 2015-07-16 19:51:26 UTC
To be resolved editorially.
Comment 4 Michael Kay 2015-07-16 19:52:56 UTC
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.
Comment 5 Michael Kay 2015-07-17 19:23:56 UTC
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.