You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Guillaume Nobiron (JIRA)" <xa...@xml.apache.org> on 2006/06/01 18:00:30 UTC

[jira] Créée: (XALANJ-2299) "Not supported" message when trying to set attribute source_location from ant

"Not supported" message when trying to set attribute source_location from ant
-----------------------------------------------------------------------------

         Key: XALANJ-2299
         URL: http://issues.apache.org/jira/browse/XALANJ-2299
     Project: XalanJ2
        Type: Bug

  Components: Xalan-extensions  
    Versions: 2.7    
 Environment: Apache Ant 1.6.5
Java 1.5.0_06

    Reporter: Guillaume Nobiron


I am trying to set the attribute http://apache.org/xalan/features/source_location with the value true in order to use the lineNumber() function in an xslt stylesheet.

I call xalan from an ant script:
<xslt in="${params.dir}/jboss-log4j.xml"
   out="check.xml"
   style="${xsl.dir}/check_jboss-log4j.xsl"
   classpathref="xslt.classpath"
   force="true">
  <factory>
    <attribute name="http://xml.apache.org/xalan/features/source_location" value="true"/>
    <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
  </factory>
</xslt>

The "optimize" attribute is recognized (I know true is the default) but when I add the line with for source-location, the following error is returned by xalan:
  Not supported: http://xml.apache.org/xalan/features/source_location

I am using the latest version of Xalan (2.7.0). I ran a stylesheet that output the result of xalan:checkEnvironment to be sure :
  <item key="version.xalan2_2">Xalan Java 2.7.0</item>
  <item key="version.xalan1">not-present</item>

Is there a new way to enable the SourceLocator ? I also tried with the documented uri http://apache.org/xalan/features/source_location with no success.



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


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


[jira] Assigned: (XALANJ-2299) "Not supported" message when trying to set attribute source_location from ant

Posted by "Yash Talwar (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2299?page=all ]

Yash Talwar reassigned XALANJ-2299:
-----------------------------------

    Assign To: Yash Talwar

Assigning to Yash Talwar

> "Not supported" message when trying to set attribute source_location from ant
> -----------------------------------------------------------------------------
>
>          Key: XALANJ-2299
>          URL: http://issues.apache.org/jira/browse/XALANJ-2299
>      Project: XalanJ2
>         Type: Bug

>   Components: Xalan-extensions
>     Versions: 2.7
>  Environment: Apache Ant 1.6.5
> Java 1.5.0_06
>     Reporter: Guillaume Nobiron
>     Assignee: Yash Talwar
>  Attachments: xslt.zip
>
> I am trying to set the attribute http://apache.org/xalan/features/source_location with the value true in order to use the lineNumber() function in an xslt stylesheet.
> I call xalan from an ant script:
> <xslt in="${params.dir}/jboss-log4j.xml"
>    out="check.xml"
>    style="${xsl.dir}/check_jboss-log4j.xsl"
>    classpathref="xslt.classpath"
>    force="true">
>   <factory>
>     <attribute name="http://xml.apache.org/xalan/features/source_location" value="true"/>
>     <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
>   </factory>
> </xslt>
> The "optimize" attribute is recognized (I know true is the default) but when I add the line with for source-location, the following error is returned by xalan:
>   Not supported: http://xml.apache.org/xalan/features/source_location
> I am using the latest version of Xalan (2.7.0). I ran a stylesheet that output the result of xalan:checkEnvironment to be sure :
>   <item key="version.xalan2_2">Xalan Java 2.7.0</item>
>   <item key="version.xalan1">not-present</item>
> Is there a new way to enable the SourceLocator ? I also tried with the documented uri http://apache.org/xalan/features/source_location with no success.

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


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