ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44831] New: Add xInclude processing to XSLT task.
Date Thu, 17 Apr 2008 07:18:50 GMT
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.

Mime
View raw message