Project

Profile

Help

IKVM message raised on unparsed-text

Added by Anonymous almost 15 years ago

Legacy ID: #7784642 Legacy Poster: Bruno Chatel (bcha)

Hi, Using SaxonB9.1.0.6 .NET, I have a strange message on the console : Warning: default mime table not found: C:.virtual-ikvm-home\lib\content-types.properties The analysis of my XSLT2 source code shows that this message is raised by the call of unparsed-text function (used to embed a CSS content). Do you know any work-around for this ? I have tried to make the directory C:\.virtual-ikvm-home\lib\ and to copy the $JAVA_HOME/lib/content-types.properties file into, but it has no effect. Thanks in advance. Best regards -- bruno --


Replies (7)

Please register to reply

RE: IKVM message raised on unparsed-text - Added by Anonymous almost 15 years ago

Legacy ID: #7784695 Legacy Poster: Michael Kay (mhkay)

I haven't seen this before and I don't immediately know the explanation. I'll look into it. I do know that where classes in the OpenJDK library expect to find files under the java.home directory, IKVMC maps this to c:\.virtual-ikvm-home

RE: IKVM message raised on unparsed-text - Added by Anonymous almost 15 years ago

Legacy ID: #7788603 Legacy Poster: Michael Kay (mhkay)

I haven't been able to reproduce this (though I haven't tried many combinations). What kind of URI are you passing to unparsed-text()?

RE: IKVM message raised on unparsed-text - Added by Anonymous almost 15 years ago

Legacy ID: #7788670 Legacy Poster: Bruno Chatel (bcha)

Thanks Michael.. For example, the code is : <style type="text/css"><xsl:comment> <xsl:value-of select="unparsed-text(concat('file:///', translate($envhome,'\','/'),'/resources/Log/log.css'))"/></xsl:comment></style> with $envhome as a general param of the stylesheet <xsl:param name="envhome" select="''" as="xs:string"/> giving the root directory of the project as a Windows path (typically C:\Applications\tableGenerator3\dev) I have tested it by reducing my stylesheet only to this in a template[@match="/"] and the message appears. The message did not appear with the previous Saxon version (8.9) used for the project. Please let me know it you need more info. Regards -- bruno --

RE: IKVM message raised on unparsed-text - Added by Anonymous almost 15 years ago

Legacy ID: #7788698 Legacy Poster: Michael Kay (mhkay)

Could you try to reproduce it using Saxon 9.2.0.3? The Saxon code is much the same, I think, but it's built using a newer version of IKVMC. I'm mildly surprised to see this happening with a file:/// URI - partly because the Saxon logic to look at media types only happens on non-file URIs, and partly because I tried and failed to reproduce it with a file URI.

RE: IKVM message raised on unparsed-text - Added by Anonymous almost 15 years ago

Legacy ID: #7788780 Legacy Poster: Michael Kay (mhkay)

Jeroen Frijters has responded to my question as follows: This has been fixed in [IKVM] 0.42 (which is currently in release candidate status), but for 0.40 and earlier you can work around it by setting a system property to point to a content-types.properties file (that exists): java.lang.System.setProperty("content.types.user.table", "c:\path\content-types.properties"); Saxon 9.1 uses IKVM 0.36; Saxon 9.2 uses IKVM 0.40. So it looks as if you have a workaround. You should be able to call the Java System.setProperty method directly from your calling application by adding a reference to IKVM.OpenJDK.ClassLibrary.dll. Let us know if it works.

RE: IKVM message raised on unparsed-text - Added by Anonymous almost 15 years ago

Legacy ID: #7788821 Legacy Poster: Bruno Chatel (bcha)

Saxon 9.1 uses IKVM 0.36; Saxon 9.2 uses IKVM 0.40. So, it means that trying with Saxon 9.2.0.3 will not solve the problem ? I'll try to set the System property "content-types.properties" using IKVM.OpenJDK.ClassLibrary.dll and give you a feedback. Thank you.

RE: IKVM message raised on unparsed-text - Added by Anonymous almost 15 years ago

Legacy ID: #7789019 Legacy Poster: Bruno Chatel (bcha)

Michael, The proposed work-around works.. The warning message is no more raised when setting the java system property. Many thanks.

    (1-7/7)

    Please register to reply