You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by cr...@apache.org on 2002/06/22 04:37:33 UTC
cvs commit: xml-forrest/src/resources/library/xslt xmlcatalog-ant.xsl
crossley 2002/06/21 19:37:33
Added: src/resources/library/xslt xmlcatalog-ant.xsl
Log:
Added scratchpad target to generate a temporary Ant xmlcatalog by transforming
the src/resources/schema/catalog.xcat and also appending entries for v10 DTDs.
This is then used by the scratchpad transform-v11 and validate-v11 targets.
Note that this is a workaround until Ant uses standard XML Catalogs.
Revision Changes Path
1.1 xml-forrest/src/resources/library/xslt/xmlcatalog-ant.xsl
Index: xmlcatalog-ant.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates select="//catalog"/>
</xsl:template>
<xsl:template match="catalog">
<xmlcatalog id="forrest-schema">
<xsl:apply-templates/>
<!-- now append entries for the old document-v10 DTDs -->
<dtd publicId="-//APACHE//DTD Documentation V1.0//EN"
location="dtd/v10/document-v10.dtd"/>
<dtd publicId="-//APACHE//DTD Changes V1.0//EN"
location="dtd/v10/changes-v10.dtd"/>
<dtd publicId="-//APACHE//DTD FAQ V1.0//EN"
location="dtd/v10/faq-v10.dtd"/>
<dtd publicId="-//APACHE//DTD Todo V1.0//EN"
location="dtd/v10/todo-v10.dtd"/>
</xmlcatalog>
</xsl:template>
<xsl:template match="public">
<dtd publicId="{@publicId}" location="{@uri}"/>
</xsl:template>
</xsl:stylesheet>