You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/09/12 22:31:54 UTC

DO NOT REPLY [Bug 40487] New: - XSLT task fails to pass factory attribute

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40487>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40487

           Summary: XSLT task fails to pass factory attribute
           Product: Ant
           Version: 1.7.0Beta1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: js@ddre.dk


The XSLT fails to pass arguments to the XSLT 2.0 processor (i.e. saxonb 8.8).
The problem here is that DTD attribute defaults are created although validation
are turned off).

Example files at

   http://nw3.dk/ant-test/

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 40487] - XSLT task fails to pass factory attribute

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40487>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40487


js@ddre.dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From js@ddre.dk  2006-09-13 04:48 -------
Peter,

You are right. My brain did not seem to function properly yester, so I didn't
immediate realize the concequence of your comment.

Thanks a lot

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 40487] - XSLT task fails to pass factory attribute

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40487>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40487





------- Additional Comments From peterreilly@apache.org  2006-09-12 21:07 -------
I thought that validation and default handling are two
different actions.
Try an invalid document.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 40487] - XSLT task fails to pass factory attribute

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40487>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40487





------- Additional Comments From peterreilly@apache.org  2006-09-12 21:38 -------
Ok, I tried the following build file:
<?xml version="1.0"?>
<project name="ant-demo" default="test">

  <target name="clean">
    <delete quiet="yes" file="demoxslt.html"/>
  </target>

  <target name="test" depends="clean">
    <xslt in="simple.xml" out="demoxslt.html" style="copy.xsl">
      
      <factory name="net.sf.saxon.TransformerFactoryImpl">
        <attribute name="http://saxon.sf.net/feature/validation"
                   value="false"/>
      </factory>

    </xslt>
  </target>

  <target name="test-invalidvalue" depends="clean">
    <xslt in="simple.xml" out="demoxslt.html" style="copy.xsl">
      
      <factory name="net.sf.saxon.TransformerFactoryImpl">
        <attribute name="http://saxon.sf.net/feature/validation"
                   value="true or is it?"/>
      </factory>

    </xslt>
  </target>

  <target name="test-invalidname" depends="clean">
    <xslt in="simple.xml" out="demoxslt.html" style="copy.xsl">
      
      <factory name="net.sf.saxon.TransformerFactoryImpl">
        <attribute name="http://saxon.sf.net/feature/validation_or_is_it"
                   value="true"/>
      </factory>

    </xslt>
  </target>

</project>

if one does ant invalid-value -verbose
the xslt task throws a build exception:
with the following stack trace:

	at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:696)

	... 18 more

--- Nested Exception ---

java.lang.IllegalArgumentException: DTD_VALIDATION must be a boolean

	at net.sf.saxon.Configuration.setConfigurationProperty(Configuration.java:2142)

	at
net.sf.saxon.TransformerFactoryImpl.setAttribute(TransformerFactoryImpl.java:342)

	at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.getFactory(TraXLiaison.java:375)

This shows clearly that a) the attribute has been passed to saxon and
b) the attribute value has also been passed by ant to saxon.
So the issue is with the saxon xslt processor itself.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 40487] - XSLT task fails to pass factory attribute

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40487>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40487





------- Additional Comments From js@ddre.dk  2006-09-12 21:24 -------
As I read http://www.w3.org/TR/2006/REC-xml-20060816/#proc-types, validation and
attribute defaukts are related items.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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