diff options
author | initial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-27 00:38:33 +0000 |
---|---|---|
committer | initial.commit <initial.commit@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-27 00:38:33 +0000 |
commit | 584cd5cbd7be997400ccb8db24ae5410b0b88117 (patch) | |
tree | 083e5f1f48d019e0f07b96fef7179483df53c823 /third_party/libxslt/win32/defgen.xsl | |
parent | f5b16fed647e941aa66933178da85db2860d639b (diff) | |
download | chromium_src-584cd5cbd7be997400ccb8db24ae5410b0b88117.zip chromium_src-584cd5cbd7be997400ccb8db24ae5410b0b88117.tar.gz chromium_src-584cd5cbd7be997400ccb8db24ae5410b0b88117.tar.bz2 |
Add third_party to the repository.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libxslt/win32/defgen.xsl')
-rw-r--r-- | third_party/libxslt/win32/defgen.xsl | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/third_party/libxslt/win32/defgen.xsl b/third_party/libxslt/win32/defgen.xsl new file mode 100644 index 0000000..6a29537 --- /dev/null +++ b/third_party/libxslt/win32/defgen.xsl @@ -0,0 +1,44 @@ +<?xml version="1.0"?> +<!-- + win32/defgen.xsl + This stylesheet is used to transform doc/lib[e]xslt-api.xml into a pseudo-source, + which can then be preprocessed to get the .DEF file for the Microsoft's linker. + + Use any XSLT processor to produce a file called lib[e]xslt.def.src in the win32 + subdirectory, for example, run xsltproc from the win32 subdirectory: + + xsltproc -o libxslt.def.src defgen.xsl ../doc/libxslt-api.xml + xsltproc -o libexslt.def.src defgen.xsl ../doc/libexslt-api.xml + + Once that finishes, rest assured, the Makefile will know what to do with the + generated file. + + May 2003, Igor Zlatkovic <igor@zlatkovic.com> +--> +<!DOCTYPE xsl:stylesheet [ <!ENTITY nl '
'> ]> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:strip-space elements="*"/> + <xsl:output method="text"/> + <xsl:template match="/"> + <xsl:text>LIBRARY </xsl:text> + <xsl:value-of select="/api/@name"/> + <xsl:text>&nl;</xsl:text> + <xsl:text>EXPORTS&nl;</xsl:text> + <xsl:for-each select="/api/symbols/*[self::variable or self::function]"> + <xsl:if test="@name='xsltExtFunctionLookup' or + @name='xsltMatchPattern'"> + <xsl:text>/*</xsl:text> + </xsl:if> + <xsl:value-of select="@name"/> + <xsl:if test="self::variable"> + <xsl:text> DATA</xsl:text> + </xsl:if> + <xsl:if test="@name='xsltExtFunctionLookup' or + @name='xsltMatchPattern'"> + <xsl:text>*/</xsl:text> + </xsl:if> + <xsl:text>&nl;</xsl:text> + </xsl:for-each> + </xsl:template> +</xsl:stylesheet> + |