Commented XML processing instruction is processed (bug?)
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 125
- Joined: Mon Jun 09, 2003 6:02 pm
- Location: Charlottesville, Virginia USA
Commented XML processing instruction is processed (bug?)
With oXygen 6.2, I get unexpected results if I validate a document whose first lines are like this:
As you can see, I didn't want the Schematron schema to be used, so I commented it out. However, the validation tested against the Schematron anyway (it reported errors, so I know it processed the schema).
This looks like a bug to me--oXygen should treat line 3 as an XML comment, right? It should not intepret the processing instruction inside?
Code: Select all
<?xml version="1.0"?>
<?oxygen RNGSchema="FoundingEra-vendor.rng" type="xml"?>
<!-- <?oxygen SCHSchema="GWP.sch"?> -->
This looks like a bug to me--oXygen should treat line 3 as an XML comment, right? It should not intepret the processing instruction inside?
-
- Posts: 125
- Joined: Mon Jun 09, 2003 6:02 pm
- Location: Charlottesville, Virginia USA
Another form of the bug
The processing instruction is also followed if I put junk in front of it:
So it appears that oXygen is simply looking for a string rather than distinguishing between a comment node and a PI node.
Code: Select all
<!-- <?FOOBARoxygen SCHSchema="http://rotunda.upress.virginia.edu/Schemas/FE/GWP/GWP.sch"?> -->
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Hi,
You are right about the problem with the PI being processed even if enclosed in a comment.
We noticed and fixed it just after the 6.2 release. Now, after the PI is searched there is a supplimentary check to see whether it is enclosed in a comment.
We will also fix the "FOOBAR" problem that you noticed.
As a workaround for now you can delete a character from the PI, like remove the "n" in oxygen so that the PI is not recognized anymore.
Regards, Radu.
You are right about the problem with the PI being processed even if enclosed in a comment.
We noticed and fixed it just after the 6.2 release. Now, after the PI is searched there is a supplimentary check to see whether it is enclosed in a comment.
We will also fix the "FOOBAR" problem that you noticed.
As a workaround for now you can delete a character from the PI, like remove the "n" in oxygen so that the PI is not recognized anymore.
Regards, Radu.
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