Page 1 of 1

Cannot paste text in certain XSLT files

Posted: Wed Jan 02, 2013 1:52 pm
by colinm
In a few XSLT files, I am not able to paste text. When I try, I get the following error:
"Paste" did not complete normally. Please see the log for more information.
ro.sync.contentcompletion.xml.z cannot be cast to ro.sync.contentcompletion.xsl.l
I tried to:
  • duplicate these files
  • rename them
  • remove all content
  • open an healthy XSLT file and replace its content with the content of the buggy file
  • disable content completion
I still end up not being able to paste text.

I use Oxygen Eclipse plugin 13.0.0.2011082517 with Eclipse 3.6.2.r362

Here is the log file generated with the following log4j.properties located in eclipse/oxygenplugin/lib:

Code: Select all

log4j.rootCategory= debug, R2

# R2 will write log to file
log4j.appender.R2=org.apache.log4j.RollingFileAppender
log4j.appender.R2.File=oxygen.log
log4j.appender.R2.MaxFileSize=12000KB
log4j.appender.R2.MaxBackupIndex=4
log4j.appender.R2.layout=org.apache.log4j.PatternLayout
log4j.appender.R2.layout.ConversionPattern=%r %p [ %t ] %c - %m%n

Re: Cannot paste text in certain XSLT files

Posted: Wed Jan 02, 2013 2:00 pm
by colinm
Also, I am not able to reproduce the issue with new files.

Here is an example of file in which I cannot paste text:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>

<!-- $Id: dita2dita-topic.xsl,v 1.3 2012/07/02 11:33:54 cmaudry Exp $ -->

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform http://www.w3.org/2007/schema-for-xslt20.xsd"
exclude-result-prefixes="xsi xsl">
<xsl:output doctype-public=""></xsl:output>
<xsl:template match="* | @* | processing-instruction() | text() | comment()">
<xsl:copy>
<xsl:apply-templates select="* | @* | processing-instruction() | text() | comment()" />
</xsl:copy>
</xsl:template>

</xsl:stylesheet>

Re: Cannot paste text in certain XSLT files [solved]

Posted: Wed Jan 02, 2013 2:48 pm
by colinm
The issue was solved by upgrading to v13.2.

Thanks!

Re: Cannot paste text in certain XSLT files

Posted: Mon Jan 07, 2013 1:11 pm
by adrian
Hi,

There was a bug in v13.0 that caused this problem because of "xsi:schemaLocation" from the stylesheet. This has been resolved in v13.1 and later.

Please let us know if you encounter other issues with Oxygen.

Regards,
Adrian