Changeset 53915 in vbox for trunk/src/VBox/Main/idl/apiwrap-server.xsl
- Timestamp:
- Jan 22, 2015 1:53:43 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97788
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/apiwrap-server.xsl
r53913 r53915 43 43 44 44 <!-- - - - - - - - - - - - - - - - - - - - - - - 45 keys for more efficiently looking up types.45 Keys for more efficiently looking up types. 46 46 - - - - - - - - - - - - - - - - - - - - - - --> 47 47 … … 49 49 <xsl:key name="G_keyInterfacesByName" match="//interface[@name]" use="@name"/> 50 50 51 52 <!-- - - - - - - - - - - - - - - - - - - - - - - 53 Utility templates. 54 - - - - - - - - - - - - - - - - - - - - - - --> 55 56 <!-- Hack Alert! This template helps xsltproc split up the output text elements 57 and avoid reallocating them into the MB range. Calls to this 58 template is made occationally while generating larger output 59 file. It's not necessary for small stuff like header. 60 61 The trick we're playing on xsltproc has to do with CDATA 62 and/or the escape setting of the xsl:text element. It forces 63 xsltproc to allocate a new output element, thus preventing 64 things from growing out of proportions and slowing us down. 65 66 This was successfully employed to reduce a 18+ seconds run to 67 around one second (possibly less due to kmk overhead). 68 --> 69 <xsl:template name="xsltprocNewlineOutputHack"> 70 <xsl:text disable-output-escaping="yes"><![CDATA[ 71 ]]></xsl:text> 72 </xsl:template> 51 73 52 74 <!-- - - - - - - - - - - - - - - - - - - - - - - … … 57 79 <xsl:param name="file"/> 58 80 81 <xsl:call-template name="xsltprocNewlineOutputHack"/> 59 82 <xsl:value-of select="concat($G_sNewLine, '// ##### BEGINFILE "', $file, '"', $G_sNewLine)"/> 60 83 </xsl:template> … … 1318 1341 </xsl:text> 1319 1342 <xsl:if test="not(@readonly) or @readonly!='yes'"> 1320 <xsl:text>1343 <xsl:text> 1321 1344 </xsl:text> 1322 1345 <xsl:value-of select="concat('STDMETHODIMP ', $topclass, 'Wrap::COMSETTER(', $attrbasename, ')(')"/> … … 1430 1453 </xsl:call-template> 1431 1454 1432 <xsl:text> 1433 </xsl:text> 1455 <xsl:call-template name="xsltprocNewlineOutputHack"/> 1434 1456 </xsl:template> 1435 1457 … … 2306 2328 2307 2329 <!-- methods --> 2330 <xsl:call-template name="xsltprocNewlineOutputHack"/> 2308 2331 <xsl:call-template name="emitMethods"> 2309 2332 <xsl:with-param name="topclass" select="$topclass"/>
Note:
See TracChangeset
for help on using the changeset viewer.