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 5217 - XQTSResults.xsl : allow inline HTML mark-up
Summary: XQTSResults.xsl : allow inline HTML mark-up
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-21 13:52 UTC by Pierrick Brihaye
Modified: 2007-11-11 17:47 UTC (History)
0 users

See Also:


Attachments

Description Pierrick Brihaye 2007-10-21 13:52:11 UTC
Currently, the stylesheet has th following template :

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
      <!-- xqtsr:p                                                              -->
      <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
      
      <xsl:template match='xqtsr:p'>
         <p><xsl:value-of select='./text()'/></p>
      </xsl:template>

Could it be possible to copy the node's content in order to allow inlined (HTML) markup ?
Comment 1 Michael Kay 2007-10-21 22:44:21 UTC
XSLT makes it very easy for you to define a private customization of a stylesheet without needing to get the base stylesheet changed. Just write your own stylesheet module that imports the standard one and overrides this one template rule.
Comment 2 Pierrick Brihaye 2007-10-22 07:16:29 UTC
Sure but my question was rather about the "official" presentation of the results on http://www.w3.org/XML/Query/test-suite/XQTSReport.html which, I guess, follows the current "personal use" XSLT.

Currently, the entry for eXist db reads like this :

> Transformation:
>
>    The following tests have been evaluated against results provided by other XQuery processors.

>Comparison:
>
>    The following tests have required a comparison method different from the standard one.

The document provided to the W3C adds some HTML tables after these 2 <p>'s but they are not processed given the XSLT. Notice that there is a problem with the "comparison" table in the provided document and that it will be fixed for the next submission.

Of course, I can provide <p> elements instead of <table>. Just wondering what the is the room for custom markup here.
Comment 3 Andrew Eisenberg 2007-11-08 23:33:48 UTC
I was trying to keep things as simple as possible when I created this stylesheet.

I've extended the three elements that allow xqtsr:p to also allow some of the common HTML elements (p | table | tr | td | ol | ul | li | br). Please note that these elements have an empty namespace URI.

As a consequence, the tables that you supply in the future should be changed to

    <table xmlns="">
        <th>
            <td>Test name</td>
            <td>Comparison method</td>
        </th>

    .
    .
    .
   </table>


I've changed this for your current results and will republish our reports shortly.

Please close this bug if you agree with this resolution.

Comment 4 Pierrick Brihaye 2007-11-11 17:47:50 UTC
Excellent. Thank you.