XSLT-available Parameter for current directory in refactoring tool
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 18
- Joined: Tue Jun 11, 2019 9:01 pm
XSLT-available Parameter for current directory in refactoring tool
Post by jeff_hooker »
Hi folks,
I'm using the refactoring tool to process huge multi-level directory structure of XML. I'd like to use the result-document xslt process to create a number of sub-files from each existing file and dump the new files into the same directory as the file currently being processed. Is there a built-in parameter for url of the current file already existing within the refactoring tool that I could use to populate the href parameter of the result-document process? Barring that, do you have any recommendations for achieving this?
Thanks,
Jeff.
I'm using the refactoring tool to process huge multi-level directory structure of XML. I'd like to use the result-document xslt process to create a number of sub-files from each existing file and dump the new files into the same directory as the file currently being processed. Is there a built-in parameter for url of the current file already existing within the refactoring tool that I could use to populate the href parameter of the result-document process? Barring that, do you have any recommendations for achieving this?
Thanks,
Jeff.
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: XSLT-available Parameter for current directory in refactoring tool
Hi Jeff,
There is no such special parameter being passed to the XSLT stylesheet but you can use the base-uri() XSLT function to access the location of the current converted XML document.
For example we have our own refactoring operations which extract from a DITA topic the inner topics as separate files, in this XSLT stylesheet:
OXYGEN_INSTALL_DIR/frameworks/dita/refactoring/convert-nested-topics-to-new-topic.xsl there is a call to this function:
and the generateOutputFileName function is defined in the stylesheet OXYGEN_INSTALL_DIR/frameworks/dita/refactoring/utils/xslt-convert-inner-elements-to-topics.xsl where it uses the XSLT resolve-uri() function to compute the location of the file to write.
Regards,
Radu
There is no such special parameter being passed to the XSLT stylesheet but you can use the base-uri() XSLT function to access the location of the current converted XML document.
For example we have our own refactoring operations which extract from a DITA topic the inner topics as separate files, in this XSLT stylesheet:
OXYGEN_INSTALL_DIR/frameworks/dita/refactoring/convert-nested-topics-to-new-topic.xsl there is a call to this function:
Code: Select all
<xsl:variable name="proposalName" select="f:generateOutputFileName(., base-uri())"/>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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