Using of Xinclude in a large Xml Document
Oxygen general issues.
Using of Xinclude in a large Xml Document
Hello Sorin,
I have a file "mother", and it contains several file "son" sections xinclude : That allows me to break my big xml file mother.
However, I would like to know if it is possible to trigger (controller) to load one or more sections of my document xinclude, through actions or évemnements: All that to avoid having to load the opening of all "son" files (contained in section XInclude) of my File mother , and thus to avoid overloading the PC's memory.
Regards,
Thanks.
I have a file "mother", and it contains several file "son" sections xinclude : That allows me to break my big xml file mother.
However, I would like to know if it is possible to trigger (controller) to load one or more sections of my document xinclude, through actions or évemnements: All that to avoid having to load the opening of all "son" files (contained in section XInclude) of my File mother , and thus to avoid overloading the PC's memory.
Regards,
Thanks.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Using of Xinclude in a large Xml Document
Post by sorin_ristache »
Hello,
When the master file (the "mother" file) is opened in Text mode the included files (the "son" files) are not opened. If you want to open an included file in Text mode you have to open it explicitly using the File -> Open action or other action for opening a file (the Open URL action, drag and drop from Windows Explorer to the Oxygen window, double click on a file in Project view, etc).
When the master file is opened in Author mode there is an option for opening also the files that are included with XInclude but this option is applied to all included files: either all included files are opened or not opened. You cannot specify that only some included files will be opened. The option is called Display referred content and is available in Preferences -> Editor -> Pages -> Author.
What is the size of your files? Starting with version 11.0 there is a large file editor that can open files up to 200 MB for editing. Some features like Validate as you type and Spell checking as you type are not available in the large file editor but you can open and edit the large files in Oxygen. You set the minimum file size that triggers the large file support from the option Optimize loading in the Text page for files over (MB). The default value is 30 MB.
Regards,
Sorin
When the master file (the "mother" file) is opened in Text mode the included files (the "son" files) are not opened. If you want to open an included file in Text mode you have to open it explicitly using the File -> Open action or other action for opening a file (the Open URL action, drag and drop from Windows Explorer to the Oxygen window, double click on a file in Project view, etc).
When the master file is opened in Author mode there is an option for opening also the files that are included with XInclude but this option is applied to all included files: either all included files are opened or not opened. You cannot specify that only some included files will be opened. The option is called Display referred content and is available in Preferences -> Editor -> Pages -> Author.
What is the size of your files? Starting with version 11.0 there is a large file editor that can open files up to 200 MB for editing. Some features like Validate as you type and Spell checking as you type are not available in the large file editor but you can open and edit the large files in Oxygen. You set the minimum file size that triggers the large file support from the option Optimize loading in the Text page for files over (MB). The default value is 30 MB.
Regards,
Sorin
Re: Using of Xinclude in a large Xml Document
The problem is not the size of files that we are manipulated (only 3 mo). But the problem is that files son are stored son are on a remote server (in Alfresco) and are accessible only by webservice: So if opening the master document, it automatically opens all files son (about 30, we risk starting the execution of 30 webservices! (this is not manageable). I'd like to find a solution to load and open files only son that interest me. Have you any idea?
Thanks,
Regards.
Thanks,
Regards.
Re: Using of Xinclude in a large Xml Document
As Sorin mentioned, just go to Options->Preferences -- Editor / Pages / Author and disable the "Display referred content" option.
To avoid accessing those file during validation disable also the XInclude processing from Options->Preferences -- XML / XML Parser.
It is not possible to XInclude only some files and not others.
Another possibility is to get a local copy of those files and use an XML catalog to map the remote locations to the local copies.
Best Regards,
George
To avoid accessing those file during validation disable also the XInclude processing from Options->Preferences -- XML / XML Parser.
It is not possible to XInclude only some files and not others.
Another possibility is to get a local copy of those files and use an XML catalog to map the remote locations to the local copies.
Best Regards,
George
George Cristian Bina
Re: Using of Xinclude in a large Xml Document
Hello,
I finally decided to get a local copy of those files and use an XML catalog to map the remote locations to the local copies.
However I have seen in the developer guide that the catalog used to reference a xml file to a xsd file(schema): can i also use the catalog to reference a xml file to another xml file?
Regards,
Thanks.
I finally decided to get a local copy of those files and use an XML catalog to map the remote locations to the local copies.
However I have seen in the developer guide that the catalog used to reference a xml file to a xsd file(schema): can i also use the catalog to reference a xml file to another xml file?
Regards,
Thanks.
Re: Using of Xinclude in a large Xml Document
My response is quite off topic. Is it really necessary to have 'son' files stored in remote destination? If this is for keeping up to date file somewhere only, maybe some versioning system would be more suited for this. You can work with a local copy while up-to date versions are available in the repository, see the details at http://en.wikipedia.org/wiki/Revision_control
The second part is more related. I can imagine to have (if set in Preferences) all the xinclude content folded by default in Author mode and not loaded during opening the document. User could then unfold only necessary items and these would load at that moment.
Jan
The second part is more related. I can imagine to have (if set in Preferences) all the xinclude content folded by default in Author mode and not loaded during opening the document. User could then unfold only necessary items and these would load at that moment.
Jan
Re: Using of Xinclude in a large Xml Document
Yes, you should use system mappings for that.leb wrote:Hello,
[...] can i also use the catalog to reference a xml file to another xml file?
[...]
George Cristian Bina
Re: Using of Xinclude in a large Xml Document
Dear Jan,honyk wrote:[...]
The second part is more related. I can imagine to have (if set in Preferences) all the xinclude content folded by default in Author mode and not loaded during opening the document. User could then unfold only necessary items and these would load at that moment.
That is sure an interesting idea. We have the option to not expand references. In this case we should offer an expand on request control directly in the author, something similar with opening a fold. I recorded this enhancement on our issue tracking system.
Best Regards,
George
George Cristian Bina
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