Ant + XSLT Debug
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 91
- Joined: Tue Jul 17, 2018 6:57 am
Ant + XSLT Debug
Post by msambasiva »
Hi,
I've been assigned with XML to dita conversion tool. For that, I've given a try to write ANT script which in turn calling XSLTs. Everything is working fine.
Now I want to debug the Ant script and XSLT in Oxygen XML editor in the same flow of execution. Some how I am able to debug XSLT but not ANT script on Oxygen Editor 18.0.
Because some input parameters passing from ANT sctipr to XSLT. I want to check the input parameter values in debug mode.
It would be great help, if you can suggest any clue on this.
Below is sample Ant, XSLT and XML
https://en.wikibooks.org/wiki/Apache_Ant/XSLT
Thanks,
Samba.
I've been assigned with XML to dita conversion tool. For that, I've given a try to write ANT script which in turn calling XSLTs. Everything is working fine.
Now I want to debug the Ant script and XSLT in Oxygen XML editor in the same flow of execution. Some how I am able to debug XSLT but not ANT script on Oxygen Editor 18.0.
Because some input parameters passing from ANT sctipr to XSLT. I want to check the input parameter values in debug mode.
It would be great help, if you can suggest any clue on this.
Below is sample Ant, XSLT and XML
https://en.wikibooks.org/wiki/Apache_Ant/XSLT
Thanks,
Samba.
-
- Posts: 9421
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Ant + XSLT Debug
Hi,
I'm sorry but Oxygen does not have an ANT debugger.
Maybe you can use the ANT echo task to log all those parameter values sent to the XSLT:
https://ant.apache.org/manual/Tasks/echo.html
and then use our XSLT debugger along with manually setting in the XSLT transformation scenario those XSLT parameters to their respective values.
Regards,
Radu
I'm sorry but Oxygen does not have an ANT debugger.
Maybe you can use the ANT echo task to log all those parameter values sent to the XSLT:
https://ant.apache.org/manual/Tasks/echo.html
and then use our XSLT debugger along with manually setting in the XSLT transformation scenario those XSLT parameters to their respective values.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 91
- Joined: Tue Jul 17, 2018 6:57 am
Re: Ant + XSLT Debug
Post by msambasiva »
Thanks for quick response!
As you said, we can use echo statements to log the information from ANT script. But I am not clear on "use our XSLT debugger along with manually setting in the XSLT transformation scenario". How can we manually set XSLT Debuuger in the XSLT transformation scenario?
Could you be more specific on the process?
It would be great if you can share any reference of this usecase.
Thanks.
As you said, we can use echo statements to log the information from ANT script. But I am not clear on "use our XSLT debugger along with manually setting in the XSLT transformation scenario". How can we manually set XSLT Debuuger in the XSLT transformation scenario?
Could you be more specific on the process?
It would be great if you can share any reference of this usecase.
Thanks.
-
- Posts: 91
- Joined: Tue Jul 17, 2018 6:57 am
Re: Ant + XSLT Debug
Post by msambasiva »
Thanks for quick response!
Could you be more specific on the setting ' XSLT debugger along with manually setting in the XSLT transformation scenario'
We can use echo statements to log the info in the ANT script. But how can we change the debugger on the fly?
Could you be more specific on the setting ' XSLT debugger along with manually setting in the XSLT transformation scenario'
We can use echo statements to log the info in the ANT script. But how can we change the debugger on the fly?
-
- Posts: 9421
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Ant + XSLT Debug
Hi,
I'm not sure what you mean by this:
Regards,
Radu
I'm not sure what you mean by this:
So right now what you can do is to create a transformation scenario for an XML with an XSLT, in the transformation edit dialog scenario to click the Parameters button and manually set values for each parameter. Then you can debug using this newly created transformation scenario.But how can we change the debugger on the fly?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 91
- Joined: Tue Jul 17, 2018 6:57 am
Re: Ant + XSLT Debug
Post by msambasiva »
HI,
I have build process with invoking different xslts as below.
Below is one of the xslt from ANT script
I am thinking, it's difficult to debug the individual xslts by setting the parameters as you suggested below.
It would be great help if you can suggest best way to debug all the xslts in the same execution process flow.
Thanks,
Samba.
I have build process with invoking different xslts as below.
Below is one of the xslt from ANT script
Code: Select all
<xslt in="${dita.temp.dir}${file.separator}dummy.map" out="${dita.temp.dir}${file.separator}merged${file.separator}Merged.xml" style="${dita.plugin.uae.dita.oer.dir}${file.separator}xsl${file.separator}merge.xsl">
<xslt in="${dita.temp.dir}${file.separator}merged${file.separator}Merged.xml" out="${dita.temp.dir}${file.separator}Merged2.html" style="${dita.plugin.uae.dita.oer.dir}${file.separator}xsl${file.separator}build_ditamap_fbdi.xsl">
<param name="file.separator" expression="${file.separator}"/>
<param name="dita.temp.dir" expression="${dita.temp.dir}"/>
</xslt>
It would be great help if you can suggest best way to debug all the xslts in the same execution process flow.
Thanks,
Samba.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service