copying files from sharepoint
Oxygen general issues.
copying files from sharepoint
I have a custom framework for a nonDITA document. The custom framework publishes the xml file to pdf using an xslt transformation. This works perfectly when transformed from a local dir. However, when running the same transform from a file that is in sharepoint, any resources external to the source xml file (for example images) are missing from the output pdf.
When transforming to an fo file, the reference to the image file is present, but the image file itself is not there.
So I created an ANT transform to copy the appropriate resources. However, I cannot find the correct variable to get the appropriate sharepoint path so that all the files and folders from the current file location (sharepoint) are in the appropriate "\\AppData\Local\Temp\OxygenXMLTemp\...". Any help would be appreciated.
When transforming to an fo file, the reference to the image file is present, but the image file itself is not there.
So I created an ANT transform to copy the appropriate resources. However, I cannot find the correct variable to get the appropriate sharepoint path so that all the files and folders from the current file location (sharepoint) are in the appropriate "\\AppData\Local\Temp\OxygenXMLTemp\...". Any help would be appreciated.
Re: copying files from sharepoint
Hi,
Are you connecting using Sharepoint online or the older Sharepoint connector?
https://www.oxygenxml.com/doc/versions/ ... ction.html
But I do not know of an ANT task for connecting to a Sharepoint site.
How about if you map the Sharepoint site to a local disk drive so that Oxygen considers it's just a local folder?
Regards,
Radu
Are you connecting using Sharepoint online or the older Sharepoint connector?
https://www.oxygenxml.com/doc/versions/ ... ction.html
So the XML file is on Sharepoint, the intermediary XSL-FO file will be on the local disk meaning that it should be created so that it has absolute URL references to the other image resources from Sharepoint. But this might not work as Sharepoint is not a plain web site, it has various authentication details which need to be filled out in order to access resources from it.When transforming to an fo file, the reference to the image file is present, but the image file itself is not there.
I'm not sure how that could work. Sometimes there are ANT tasks to connect ANT build files for example to FTP servers: https://ant.apache.org/manual/Tasks/ftp.htmlSo I created an ANT transform to copy the appropriate resources. However, I cannot find the correct variable to get the appropriate sharepoint path so that all the files and folders from the current file location (sharepoint) are in the appropriate "\\AppData\Local\Temp\OxygenXMLTemp\...". Any help would be appreciated.
But I do not know of an ANT task for connecting to a Sharepoint site.
How about if you map the Sharepoint site to a local disk drive so that Oxygen considers it's just a local folder?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: copying files from sharepoint
sljohns – Did you figure out a solution to this? I would love to use SharePoint as a CMS, but there's no point if you can't publish files because of it.
Radu – Would it be possible to "save a copy" of your XML to a temp directory in the transformation scenario somehow?
Garrett
Radu – Would it be possible to "save a copy" of your XML to a temp directory in the transformation scenario somehow?
Garrett
Last edited by Garrett_3 on Thu Apr 18, 2024 5:44 pm, edited 1 time in total.
Garrett
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