You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/04/17 09:18:50 UTC

DO NOT REPLY [Bug 44831] New: Add xInclude processing to XSLT task.

https://issues.apache.org/bugzilla/show_bug.cgi?id=44831

           Summary: Add xInclude processing to XSLT task.
           Product: Ant
           Version: 1.7.0RC1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: dave.pawson@gmail.com


Xinclude, http://www.w3.org/TR/xinclude/ is the modern way of partitioning an
XML file.

Normally processed by the xml parser such that the expanded document is then
fed to the next stage of processing. Xerces parser includes such processing.

Please could this be added to the xslt task.
Saxon (http://saxon.sourceforge.net/) supports xinclude via command line
options.
Many OS projects use docbook for their documentation. Docbook v5 now supports
xInclude.

-x and -y cmd line options relate to the parser. -r is for the catalog
resolver, which
is another very useful feature for XSLT.


Java equivalent task is shown below.

TIA, DaveP


 <path id="xslt.processor.classpath">                                         
  <pathelement path="/myjava/saxon655.jar"/>  <!-- Saxon jar -->
  <pathelement path="/myjava/resolver.jar"/> <!-- resolver jar -->
  <pathelement path="${websiteHome}/extensions/saxon64.jar"/> 
  <pathelement path="/myjava/xercesImpl.jar"/>
  <pathelement path="/sgml"/> <!-- for catalogManager.properties -->

 <java classname="${xslt.processor.class}" 
        fork="yes" 
        dir="${in.dir}"
        failonerror="true">
    <classpath refid="xslt.processor.classpath" />
    <jvmarg
line="-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration"/>
    <jvmarg
line="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
    <jvmarg
line="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"/> 
    <arg value="-l"/>
    <arg value="-o"/>
    <arg value="${out.dir}/${main.outfile}"/>
    <arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader"/>
    <arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader"/>
    <arg line="-r org.apache.xml.resolver.tools.CatalogResolver "/>
    <arg line="${in.dir}/${main.infile} ${main.stylesheet} ${param.args.post}"
/> 
  </java>


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

DO NOT REPLY [Bug 44831] Add xInclude processing to XSLT task.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44831


Stefan Bodewig <bo...@apache.org> changed:

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




--- Comment #1 from Stefan Bodewig <bo...@apache.org>  2008-11-24 08:51:34 PST ---
the -x to -r options would be very Saxon specific and should be dealt with in
Saxon's own Ant task (I think there is one since Michael Kay talked about it on
ant-dev).


*** This bug has been marked as a duplicate of bug 36653 ***


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

DO NOT REPLY [Bug 44831] Add xInclude processing to XSLT task.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44831


Robert Flaherty <ro...@oracle.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robert.flaherty@oracle.com




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