VirtualBox

Changeset 97686 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Nov 25, 2022 7:31:13 PM (2 years ago)
Author:
vboxsync
Message:

Main/glue-java.xsl: Avoid "summary" attribute for "table" tags since it's not HTML5. Also map "h3" to "h2" since it's more suitable for this context. Recent javadoc is picky.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/glue-java.xsl

    r97677 r97686  
    291291      <xsl:text>&lt;code</xsl:text>
    292292    </xsl:when>
     293    <xsl:when test="$tagname = 'h3'">
     294      <xsl:text>&lt;h2</xsl:text>
     295    </xsl:when>
    293296    <xsl:otherwise>
    294297      <xsl:value-of select="concat('&lt;', $tagname)"/>
    295298    </xsl:otherwise>
    296299  </xsl:choose>
    297   <xsl:if test="$tagname = 'table'"> <!-- javadoc 8 fudge -->
     300  <xsl:if test="$tagname = 'table' and boolean($G_vboxFakeTableSummary)">
    298301    <xsl:text> summary=""</xsl:text>
    299302  </xsl:if>
     
    303306    <xsl:when test="$tagname = 'tt'">
    304307      <xsl:text>&lt;/code&gt;</xsl:text>
     308    </xsl:when>
     309    <xsl:when test="$tagname = 'h3'">
     310      <xsl:text>&lt;/h2&gt;</xsl:text>
    305311    </xsl:when>
    306312    <xsl:otherwise>
     
    487493  <xsl:if test="result">
    488494    <xsl:text>&#10;Expected result codes:&#10;</xsl:text>
    489     <xsl:text>&lt;table summary=""&gt;&#10;</xsl:text>
     495    <xsl:text>&lt;table</xsl:text>
     496    <xsl:if test="boolean($G_vboxFakeTableSummary)">
     497      <xsl:text> summary=""</xsl:text>
     498    </xsl:if>
     499    <xsl:text>&gt;&#10;</xsl:text>
    490500    <xsl:for-each select="result">
    491501      <xsl:text>&lt;tr&gt;</xsl:text>
  • trunk/src/VBox/Main/webservice/Makefile.kmk

    r96407 r97686  
    505505              --stringparam G_vboxGlueStyle jaxws              \
    506506              --stringparam G_vboxDirPrefix org/virtualbox$(VBOX_API_SUFFIX)/ \
     507              --stringparam G_vboxFakeTableSummary $(if-expr $(VBOX_JAVA_VERSION) >= 80000 && $(VBOX_JAVA_VERSION) < 110000,1,"") \
    507508              -o $(VBOX_JWS_GEN_RAWSRC) $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $<
    508509        $(QUIET)$(MKDIR) -p $(VBOX_JWS_GEN)/java/org/virtualbox$(VBOX_API_SUFFIX)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette