forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject cvs commit: xml-forrest/src/resources/library/xslt xmlcatalog-ant.xsl
Date Sat, 22 Jun 2002 02:37:33 GMT
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>
  
  
  

Mime
View raw message