Page 1 of 1

Issue WIth Canonicalize

Posted: Sat Nov 23, 2013 7:55 pm
by Jamil
I just ran into an issue with the canonicalize feature under Oxygen 15.1 build 2013110816. I am not sure how long this issue has been present, but it is currently in this build.

The problem is that the application attempts to canonicalize an XML document if the tags have been locked. This feature should be disabled when the XML tags have been locked. The application attempts to canonicalize anyway, but it fails part way through. The result is an invalid XML document.

There may be more actions that share this issue, but this is the first one I have found.

Re: Issue WIth Canonicalize

Posted: Sat Nov 23, 2013 8:02 pm
by Jamil
Secondly, canonicalize currently replaces all comments with whitespace. This is not desired, and it shows for both exclusive and inclusive if you do not choose to preserve comments. Can you please remove the extra whitespace that result when comments are removed? This shows as blank lines in the document.

Re: Issue WIth Canonicalize

Posted: Fri Nov 29, 2013 6:52 pm
by adrian
Hello,

Regarding the first issue, I have submitted a bug on our issue tracking tool and it will be analyzed and resolved.

Regarding the second issue, I don't see a problem here. After canonicalizing the comments are removed and all there's left behind are the indent whitespaces (if any) which were outside the comments.
It's normal for these indents to remain there, the canonicalization does not format or normalize whitespaces from the document.

Regards,
Adrian

Re: Issue WIth Canonicalize

Posted: Fri Nov 29, 2013 11:34 pm
by Jamil
The second issue may be working as intended. The issue then is there is no way that Oxygen will remove this excess whitespace (that really is undesired) automatically. Format and Indent will not remove it.

As a work-around, I can doing multiple search and replaces using a regular expression:

Search for: \n\n
Replace with: \n

I have to do this over and over until all the blank lines are gone.

Re: Issue WIth Canonicalize

Posted: Fri Nov 29, 2013 11:39 pm
by Jamil
Format and Indent will remove blank line. The problem was that I had the option preserver blank lines turned on. Turning this off removes the blank lines, so never mind. Thanks for looking into this.