
Posted this to the forum, too. Sorry for the dupe. I'm learning OxygenXML's 9.1 support for Xinclude. I have two files, with one pointing by means of Xinclude to the other - no Xpointer, just want the contents of the entire second file. Validation succeeds with no errors, so I assume that the Xinclude is correct. Next--how can I view the resulting document, with the contents of the second file displayed in the first? Must I perform a transformation to see the results, or is there some other way?

Hi, See my reply on the forum: http://www.oxygenxml.com/forum/post9323.html#p9323 Best Regards, George --------------------------------------------------------------------- George Cristian Bina - http://aboutxml.blogspot.com/ <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Boojum wrote:
Posted this to the forum, too. Sorry for the dupe.
I'm learning OxygenXML's 9.1 support for Xinclude. I have two files, with one pointing by means of Xinclude to the other - no Xpointer, just want the contents of the entire second file. Validation succeeds with no errors, so I assume that the Xinclude is correct.
Next--how can I view the resulting document, with the contents of the second file displayed in the first? Must I perform a transformation to see the results, or is there some other way? _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Next--how can I view the resulting document, with the contents of the second file displayed in the first? Must I perform a transformation to see the results, or is there some other way?
Personally, I do this from the commandline: xmllint --noent --xinclude input.xml > output.xml (Or, if I do want entity references replaced by their values, without the "--noent".) My first reaction is that there must be some way to do this from within oXygen, but I also remember that oXygen no longer comes with xmllint bundled.

Hello, You can execute the command as an external tool in oXygen. Go to Options -> Preferences -> External Tools and define a new tool with the command line: xmllint --xinclude ${cf} where ${cf} is an oXygen editor variable that is replaced at runtime with the full file path of the edited file. Other editor variables are available in the dialog for defining an external tool. After defining the tool you can run it by pressing on the button with the tool name on the External Tools toolbar. The output of the external tool is displayed in a results panel at the bottom of the oXygen window. On Windows oXygen comes with the xmllint.exe executable in the install folder. On Mac OS X oXygen does not include the xmllint tool but it is a standard preinstalled tool of OS X so you do not need to configure it. On Linux usually xmllint is also available as a standard preinstalled tool but if it is not available you have to install an xmllint version that is compatible with your version of libc. Regards, Sorin Syd Bauman wrote:
Next--how can I view the resulting document, with the contents of the second file displayed in the first? Must I perform a transformation to see the results, or is there some other way?
Personally, I do this from the commandline: xmllint --noent --xinclude input.xml > output.xml (Or, if I do want entity references replaced by their values, without the "--noent".) My first reaction is that there must be some way to do this from within oXygen, but I also remember that oXygen no longer comes with xmllint bundled.
participants (4)
-
Boojum
-
George Cristian Bina
-
Sorin Ristache
-
Syd Bauman