Best practice for inserting the same XML fragment more than once
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 9
- Joined: Fri Jan 20, 2023 1:05 am
Best practice for inserting the same XML fragment more than once
I am creating a reference work which will ultimately be organised by subjects, and each subject will contain various entries. Because of the nature of the field, I want to include some entries in more than one subject.
I have been working with two XML files:
I have been working with two XML files:
- one document holding all the entires (each with a unique ID);
- another document structuring the subjects, into which I insert the relevent entries using xi:include elements, and from which I would generate the final document
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Best practice for inserting the same XML fragment more than once
Hi,
XInclude 1.0 indeed has this limitation.
But Oxygen at least has support for XInclude 1.1 which allows to set a new XML ID to the xi:included root element:
https://www.oxygenxml.com/doc/ug-editor ... 1_features
Support for xi:include 1.1 will not work for command line transformations as I think from what I remember that open source XML parsers like Xerces have not added it.
Regards,
Radu
XInclude 1.0 indeed has this limitation.
But Oxygen at least has support for XInclude 1.1 which allows to set a new XML ID to the xi:included root element:
https://www.oxygenxml.com/doc/ug-editor ... 1_features
Support for xi:include 1.1 will not work for command line transformations as I think from what I remember that open source XML parsers like Xerces have not added it.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
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