You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Davy Toch (JIRA)" <ji...@codehaus.org> on 2005/09/04 12:17:03 UTC

[jira] Commented: (MAVEN-1649) Using ant:xslt with an xmlcatalog works fine with 1.0.2 but not with 1.1-beta1

    [ http://jira.codehaus.org/browse/MAVEN-1649?page=comments#action_45795 ] 

Davy Toch commented on MAVEN-1649:
----------------------------------

It's not a Maven bug but a problem in ANT 1.6+. I had the same problem after converting your script to ANT and running it.

The solution is simple : 

Instead of : 

    ...
    <ant:xmlcatalog id="myDtds">       

      <ant:dtd 
        publicId="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        location="com/sun/java/web-app_2_3.dtd"/>

    </ant:xmlcatalog>
    ...
    <ant:xslt basedir="source" ...>
      ...
      <ant:xmlcatalog refid="myDtds">   
          <ant:classpath location="dtds"/>
      </ant:xmlcatalog>   
    </ant:xslt>
    ...

you should have:

    ...
    <ant:xmlcatalog id="myDtds">       

      <ant:dtd 
        publicId="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        location="com/sun/java/web-app_2_3.dtd"/>
      <ant:classpath location="dtds"/>

    </ant:xmlcatalog>
    ...
    <ant:xslt basedir="source" ...>
      ...
      <ant:xmlcatalog refid="myDtds"/>   
    </ant:xslt>
    ...

> Using ant:xslt with an xmlcatalog works fine with 1.0.2 but not with 1.1-beta1
> ------------------------------------------------------------------------------
>
>          Key: MAVEN-1649
>          URL: http://jira.codehaus.org/browse/MAVEN-1649
>      Project: Maven
>         Type: Bug
>   Components: jelly/ant integration
>     Versions: 1.1-beta-1
>  Environment: WinXP & JDK 1.5.0_04
>     Reporter: Jon Christiansen
>      Fix For: 1.1-beta-2
>  Attachments: test.zip
>
>
> I've created a very simple maven.xml I've used to be able to recreate this issue easily.  Attached is this very simple directory structure.
> I wipe out my .maven directory, and run maven on this project  w/ Maven 1.0.2, and the transform occurs successfully.
> I wipe out my .maven directory again, and run with Maven 1.1beta1, and the transform fails with:
>     [xslt] Transforming into C:\PATROLDEV\otherprojects\test\output
>     [xslt] Processing C:\PATROLDEV\otherprojects\test\source\web.xml to C:\PATROLDEV\otherprojects\test\output\webag.text
>     [xslt] Loading stylesheet C:\PATROLDEV\otherprojects\test\web.xsl
>     [xslt] : Error! C:\PATROLDEV\otherprojects\test\source\web-app_2_3.dtd (The system cannot find the file specified)
>     [xslt] : Error! com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: C:\PATROLDEV\otherprojects\test\source\web-app_2_3.dtd (The system cannot find the file specified)
>     [xslt] Failed to process C:\PATROLDEV\otherprojects\test\source\web.xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org