911N/A which can then be preprocessed to get the .DEF file for the Microsoft's linker. 535N/A subdirectory, for example, run xsltproc from the win32 subdirectory: 919N/A Once that finishes, rest assured, the Makefile will know what to do with the 919N/A April 2003, Igor Zlatkovic <igor@zlatkovic.com> 919N/A<!
DOCTYPE xsl:
stylesheet [ <!ENTITY nl '
'> ]>
919N/A <
xsl:
strip-
space elements="*"/>
919N/A <
xsl:
output method="text"/>
919N/A <
xsl:
template match="/">
919N/A <
xsl:
text>#define LIBXML2_COMPILING_MSCCDEF&nl;</
xsl:
text>
919N/A <
xsl:
text>LIBRARY libxml2&nl;</
xsl:
text>
919N/A <
xsl:
text>EXPORTS&nl;</
xsl:
text>
535N/A <
xsl:
if test="@file = 'c14n'">
535N/A <
xsl:
text>#ifdef LIBXML_C14N_ENABLED&nl;</
xsl:
text>
535N/A <
xsl:
if test="@file = 'catalog'">
535N/A <
xsl:
text>#ifdef LIBXML_CATALOG_ENABLED&nl;</
xsl:
text>
535N/A <
xsl:
if test="@file = 'debugXML'">
911N/A <
xsl:
text>#ifdef LIBXML_DEBUG_ENABLED&nl;</
xsl:
text>
911N/A <
xsl:
if test="@file = 'DOCBparser'">
911N/A <
xsl:
text>#ifdef LIBXML_DOCB_ENABLED&nl;</
xsl:
text>
535N/A <
xsl:
if test="(@file = 'HTMLparser') 535N/A or (@file = 'HTMLtree')">
535N/A <
xsl:
text>#ifdef LIBXML_HTML_ENABLED&nl;</
xsl:
text>
535N/A <
xsl:
if test="@file = 'nanohttp'">
535N/A <
xsl:
text>#ifdef LIBXML_HTTP_ENABLED&nl;</
xsl:
text>
535N/A <
xsl:
if test="@file = 'nanoftp'">
535N/A <
xsl:
text>#ifdef LIBXML_FTP_ENABLED&nl;</
xsl:
text>
535N/A <
xsl:
if test="(@file = 'relaxng') 535N/A or (@file = 'xmlschemas') 535N/A or (@file = 'xmlschemastypes')">
535N/A <
xsl:
text>#ifdef LIBXML_SCHEMAS_ENABLED&nl;</
xsl:
text>
535N/A <
xsl:
if test="@file = 'xinclude'">
535N/A <
xsl:
text>#ifdef LIBXML_XINCLUDE_ENABLED&nl;</
xsl:
text>
535N/A <
xsl:
if test="@file = 'xlink'">
535N/A <
xsl:
text>#ifdef LIBXML_XLINK_ENABLED&nl;</
xsl:
text>
535N/A <
xsl:
if test="@file = 'xmlautomata'">
<
xsl:
text>#ifdef LIBXML_AUTOMATA_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="(@file = 'xmlregexp') or (@file = 'xmlunicode')">
<
xsl:
text>#ifdef LIBXML_REGEXP_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="(@file = 'xpath') or (@file = 'xpathInternals')">
<
xsl:
text>#ifdef LIBXML_XPATH_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="@file = 'xpointer'">
<
xsl:
text>#ifdef LIBXML_XPTR_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'htmlDefaultSAXHandlerInit') or (@name = 'htmlInitAutoClose') or (@name = 'htmlCreateFileParserCtxt') or (@name = 'inithtmlDefaultSAXHandler') or (@name = 'xmlIsXHTML') or (@name = 'xmlIOHTTPOpenW') or (@name = 'xmlRegisterHTTPPostCallbacks') or (@name = 'xmlIOHTTPMatch') or (@name = 'xmlIOHTTPOpen') or (@name = 'xmlIOHTTPRead') or (@name = 'xmlIOHTTPClose')">
<
xsl:
text>#ifdef LIBXML_HTML_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'docbDefaultSAXHandlerInit') or (@name = 'initdocbDefaultSAXHandler')">
<
xsl:
text>#ifdef LIBXML_DOCB_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="@name = 'xmlValidBuildContentModel'">
<
xsl:
text>#ifdef LIBXML_REGEXP_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'xmlIOFTPMatch') or (@name = 'xmlIOFTPOpen') or (@name = 'xmlIOFTPRead') or (@name = 'xmlIOFTPClose')">
<
xsl:
text>#ifdef LIBXML_FTP_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'xmlTextReaderRelaxNGValidate') or (@name = 'xmlTextReaderRelaxNGSetSchema')">
<
xsl:
text>#ifdef LIBXML_SCHEMAS_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'xmlXPathDebugDumpObject') or (@name = 'xmlXPathDebugDumpCompExpr')">
<
xsl:
text>#ifdef LIBXML_DEBUG_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'xmlMallocLoc') or (@name = 'xmlMallocAtomicLoc') or (@name = 'xmlReallocLoc') or (@name = 'xmlMemStrdupLoc')">
<
xsl:
text>#ifdef DEBUG_MEMORY_LOCATION&nl;</
xsl:
text>
<
xsl:
when test="(@name = 'xmlMalloc') or (@name = 'xmlMallocAtomic') or (@name = 'xmlRealloc') or (@name = 'xmlMemStrdup')">
<
xsl:
text>#ifdef LIBXML_THREAD_ALLOC_ENABLED&nl;</
xsl:
text>
<
xsl:
value-
of select="@name"/>
<
xsl:
text>&nl;</
xsl:
text>
<
xsl:
text>#else&nl;</
xsl:
text>
<
xsl:
value-
of select="@name"/>
<
xsl:
text> DATA&nl;</
xsl:
text>
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
when test="(@name = 'docbDefaultSAXHandler') or (@name = 'htmlDefaultSAXHandler') or (@name = 'oldXMLWDcompatibility') or (@name = 'xmlBufferAllocScheme') or (@name = 'xmlDefaultBufferSize') or (@name = 'xmlDefaultSAXHandler') or (@name = 'xmlDefaultSAXLocator') or (@name = 'xmlDoValidityCheckingDefaultValue') or (@name = 'xmlGenericError') or (@name = 'xmlGenericErrorContext') or (@name = 'xmlGetWarningsDefaultValue') or (@name = 'xmlIndentTreeOutput') or (@name = 'xmlTreeIndentString') or (@name = 'xmlKeepBlanksDefaultValue') or (@name = 'xmlLineNumbersDefaultValue') or (@name = 'xmlLoadExtDtdDefaultValue') or (@name = 'xmlParserDebugEntities') or (@name = 'xmlParserVersion') or (@name = 'xmlPedanticParserDefaultValue') or (@name = 'xmlSaveNoEmptyTags') or (@name = 'xmlSubstituteEntitiesDefaultValue') or (@name = 'xmlRegisterNodeDefaultValue') or (@name = 'xmlDeregisterNodeDefaultValue')">
<
xsl:
text>#ifdef LIBXML_THREAD_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="@name = 'docbDefaultSAXHandler'">
<
xsl:
text>#ifdef LIBXML_DOCB_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="@name = 'htmlDefaultSAXHandler'">
<
xsl:
text>#ifdef LIBXML_HTML_ENABLED&nl;</
xsl:
text>
<
xsl:
value-
of select="@name"/>
<
xsl:
text>&nl;</
xsl:
text>
<
xsl:
if test="@name = 'docbDefaultSAXHandler'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@name = 'htmlDefaultSAXHandler'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
text>#else&nl;</
xsl:
text>
<
xsl:
if test="@name = 'docbDefaultSAXHandler'">
<
xsl:
text>#ifdef LIBXML_DOCB_ENABLED&nl;</
xsl:
text>
<
xsl:
if test="@name = 'htmlDefaultSAXHandler'">
<
xsl:
text>#ifdef LIBXML_HTML_ENABLED&nl;</
xsl:
text>
<
xsl:
value-
of select="@name"/>
<
xsl:
text> DATA&nl;</
xsl:
text>
<
xsl:
if test="@name = 'docbDefaultSAXHandler'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@name = 'htmlDefaultSAXHandler'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
value-
of select="@name"/>
<
xsl:
if test="self::variable">
<
xsl:
text> DATA</
xsl:
text>
<
xsl:
text>&nl;</
xsl:
text>
<!-- Basic tests (close) --> <
xsl:
if test="@file = 'c14n'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@file = 'catalog'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@file = 'debugXML'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@file = 'DOCBparser'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="(@file = 'HTMLparser') or (@file = 'HTMLtree')">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@file = 'nanohttp'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@file = 'nanoftp'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="(@file = 'relaxng') or (@file = 'xmlschemas') or (@file = 'xmlschemastypes')">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@file = 'xinclude'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@file = 'xlink'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@file = 'xmlautomata'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="(@file = 'xmlregexp') or (@file = 'xmlunicode')">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="(@file = 'xpath') or (@file = 'xpathInternals')">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@file = 'xpointer'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<!-- Extended tests (close) --> <
xsl:
if test="(@name = 'htmlDefaultSAXHandlerInit') or (@name = 'htmlInitAutoClose') or (@name = 'htmlCreateFileParserCtxt') or (@name = 'inithtmlDefaultSAXHandler') or (@name = 'xmlIsXHTML') or (@name = 'xmlIOHTTPOpenW') or (@name = 'xmlRegisterHTTPPostCallbacks') or (@name = 'xmlIOHTTPMatch') or (@name = 'xmlIOHTTPOpen') or (@name = 'xmlIOHTTPRead') or (@name = 'xmlIOHTTPClose')">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'docbDefaultSAXHandlerInit') or (@name = 'initdocbDefaultSAXHandler')">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="@name = 'xmlValidBuildContentModel'">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'xmlIOFTPMatch') or (@name = 'xmlIOFTPOpen') or (@name = 'xmlIOFTPRead') or (@name = 'xmlIOFTPClose')">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'xmlTextReaderRelaxNGValidate') or (@name = 'xmlTextReaderRelaxNGSetSchema')">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'xmlXPathDebugDumpObject') or (@name = 'xmlXPathDebugDumpCompExpr')">
<
xsl:
text>#endif&nl;</
xsl:
text>
<
xsl:
if test="(@name = 'xmlMallocLoc') or (@name = 'xmlMallocAtomicLoc') or (@name = 'xmlReallocLoc') or (@name = 'xmlMemStrdupLoc')">
<
xsl:
text>#endif&nl;</
xsl:
text>