XSLT Transformation Cross-platform issue

Hi,
Let's go straight to the point: the following code works fine on a Windows system, but gives me a ClassNotFoundException zibog.context.XSLAccessPoint when run on a Mac OS X system. The XSL Stylesheet uses Xalan to call static methods from this class.
Here's the code:
         OutputManager.getInstance().writeWorkflowLog(System.currentTimeMillis(), WORKFLOW_MESSAGE);
    // Get a Transformer Factory
         TransformerFactory tFactory = TransformerFactory.newInstance();
         javax.xml.transform.Transformer transformer = null;
    // Get the extractor XSL script as a stream
         InputStream extractorAsStream = getClass().getClassLoader().getResourceAsStream(XSL_EXTRACTOR_PATH);
          File temp = null;
     // Create own FileOutputStream for the transformer to be able
     // to close it for file suppression.
          FileOutputStream outputStream = null;
          try {
     // Create the transformer with the extractor stream
               transformer = tFactory.newTransformer(
                                        new StreamSource(extractorAsStream));
               temp = new File(TEMP_FILE);
               temp.createNewFile();
               outputStream = new FileOutputStream(temp);
               OutputManager.getInstance().writeDebugLog(System.currentTimeMillis(), transformer.getClass().toString() + " - " + transformer.toString());
     // Run the extractor script
               transformer.transform(new StreamSource(xmlFilePath),
                                          new StreamResult(outputStream));
          } catch (TransformerConfigurationException e) {
               throw new ExtractorException(TRANSFORMER_CREATION_ERROR_MESSAGE +
                                                  e.getMessage());
          } catch (IOException e) {
               throw new ExtractorException(IO_ERROR_MESSAGE + e.getMessage());
          } catch (TransformerException e) {
               throw new ExtractorException(TRANSFORMATION_ERROR_MESSAGE +
                                                  e.getMessage());
          } finally {
               if(temp != null) {
                    if(outputStream != null) {
                         try {
                              outputStream.close();
                         } catch (IOException e) {
                    temp.delete();
          }It fails at the transformation line, and I don't understand why it gives me this error on a mac. In fact, it works fine on a mac if a run it with an Ant script, for example, but it fails when I run it using the Eclipse plug-in I developped with. But I'm POSITIVELY sure that no code in my plug-in can cause that, so maybe the Mac Eclipse does things differently and messes up with the transformation...
Any help?
Thanks.

After a big load of tests and things, we found that the Mac OS X Eclipse used a different Xalan.jar than the one that was given with my plug-in, and that it messed up with the transformation. With tried things, without success, then finally we installed the last stable release of Eclipse 3.2 for Mac OS X, and it worked fine, despite always using this different xalan.jar.
I really hate it when problems solve themselves like that, because I can't guess what didn't work. I can only suppose that it was a wrong way of handling this Jar by the previous releases of Eclipse.
Well, that was for your information, thanks for the suggestions!
Thomas

Similar Messages

  • Cross platform issues with InDesign CS5 or earlier

    Potential client would like me (designer on a Mac) to design print docs which they can then edit on their PCs. Would love to hear feedback from others about any cross-platform issues/best practices suggestions. Thanks!

    No problem at all, the only thing you have to do is make sure you both have the same fonts in a flavour (Opentype) that you can both read.  So when you send them a Indesign document using these fonts they should be able to open it up on a PC without getting a "missing fonts" warning.  Once you've got that sorted you're away, I do exactly this all the time.
    Oh and of course you must have the same version of Indesign!  You can save back one version (or from CS5.5 to CS4) but it's not recommended for this type of workflow.

  • JAXP XSLT transformation UTF-8 issue

    Hi all,
    I have XML file generated from Java app. File is valid and is in UTF-8.
    I have XSLT template created with Altova StyleVision. Template is to produce RTF output file from above XML.
    I Java app there are two variant for XSLT transformation - with and without Saxon. I have simplified the code and it is almost the same in two variants.
    File outputFile = new File("path");
    *if (saxonToBeUsed) {*
    ClassLoader saxonClassLoader = SaxonLoader.getInstance(saxonPath);
    TransformerFactory transFact = TransformerFactory.newInstance("net.sf.saxon.TransformerFactoryImpl", saxonClassLoader); //$NON-NLS-1$
    Transformer trans = transFact.newTransformer(xsltSource);
    trans.setOutputProperty("encoding", "UTF-8"); //$NON-NLS-1$
    StreamResult res = new StreamResult(outputFile);
    trans.transform(xmlSource, res);
    *} else {*
    TransformerFactory transFact = TransformerFactory.newInstance();
    Transformer trans = transFact.newTransformer(xsltSource);
    trans.setOutputProperty("encoding", "UTF-8"); //$NON-NLS-1$
    StreamResult res = new StreamResult(outputFile);
    *// Same result -> StreamResult res = new StreamResult(new OutputStreamWriter(new FileOutputStream(outputFile), "UTF-8"));*
    *// Same result -> StreamResult res = new StreamResult(new PrintWriter(new OutputStreamWriter(new FileOutputStream(outputFile), "UTF-8")));*
    trans.transform(xmlSource, res);
    XML file contains Arabic or Chinese text. RTF is generated.
    When RTF and XML are opened with text editor or web browser Arabic/Chinese whatever text is readable.
    The issue is that when RTF is opened with MSWord/WordPad/Open Office Writer :
    - Saxon generation -> RTF file can be opened and Arabic/Chinese text is normal i.e readable. English language is readable too.
    - JAXP generation -> RTF file can be opened but Arabic/Chinese is scrabmbled, messed up. English language is readable.
    All three files (XML,XSLT,RTF) are in UTF-8
    I have installed Chinese and Arabic true type fonts. When I create manual MSWord doc i can write some of their symbols.
    Please suggest some solution.
    Thanks

    Hi jtahlborn,
    I found the difference between two RTFs. This is one table cell containing random Arabic text
    XSLT 1.0 generated:
    {\*\bkmkstart محمود_شمام_لرويترز:_القذافي_قتل_في_هجوم_للمجلس_الانتقالي}{\fs16 محمود شمام لرويترز: القذافي قتل في هجوم للمجلس الانتقالي}
    XLST2.0 generated:
    {\*\bkmkstart محمود_شمام_لرويترز:_القذافي_قتل_في_هجوم_للمجلس_الانتقالي} {\fs16\u1605?\u1581?\u1605?\u1608?\u1583?\u32?\u1588?\u1605?\u1575?\u1605?\u32?\u1604?\u1585?\u1608?\u1610?\u1578?\u1585?\u1586?\u58?\u32?\u1575?\u1604?\u1602?\u1584?\u1575?\u1601?\u1610?\u32?\u1602?\u1578?\u1604?\u32?\u1601?\u1610?\u32?\u1607?\u1580?\u1608?\u1605?\u32?\u1604?\u1604?\u1605?\u1580?\u1604?\u1587?\u32?\u1575?\u1604?\u1575?\u1606?\u1578?\u1602?\u1575?\u1604?\u1610?}
    But I don't know how to fix it. Both files are generated with Saxon, same Java code, only XSLTs are different.
    Any ideas ?

  • Forms, digital signatures, cross platform issues

    I am trying to implement pdf forms in an educational environment to utilize digital signatures and reduce paper. The form data does not need to go anywhere. It just stays in the form at this point. Some people on campus have Windows machines, others have Macs. All the Windows machines have Acrobat Pro installed and not Reader. The Mac people are more likely to have Reader. There have been problems with emailing these forms between platforms. Does anyone have any ideas about how to solve this? My IT department will not support Reader on Windows machines, so the forms have to work in Acrobat and Reader! How should the orginal document I put online be saved to work in both programs and platforms? What direction should I give the users about how to save the forms they fill out and sign? I've looked all over for this kind of info, but can't seem to find it. Any and all help is greatly appreciated. FYI, I am not an IT person. Thanks!!!

    For Mac users, it will be important that they don't use the Preview application to work with the forms. Preview is the default Mac PDF viewer out of the box, and it corrupts PDF forms when it saves them, so it really needs to be avoided.
    In order for Reader to save a filled-in form and apply digital signatures, the forms need to be Reader-enabled, which can be done with Acrobat Pro. Acrobat Standard can Reader-enable documents too, but it doesn't apply the digital signature usage right.
    The problem with this is if you will be getting the forms returned to you, you can only use data from no more than 500 instances for the form, including hardcopies. This is an Acrobat License Agreement restriction. If they won't be returned, there won't be a problem. Also, the Acrobat users don't need to use a Reader-enabled version, so you can collect all the forms you want from them.
    Email will be most reliable if the user manually attaches the file to an email, as opposed to setting up a button on the forms to submit to an email address. You'll find many threads here discussing the emailing difficulties with forms that are set up this way. The problems can be minimized with user education, as the manual process is available in either case. A submit button provides convenience, unless it doesn't work, and it won't for some users.

  • Cross platform issues for Pro*C

    Hi!,
    Is it possible for me to use the C program I got using Pro*C in Win98(I have to use SQLCHECK=SEMANTICS) and make application in a unix(Solaris) machine? Is there any issue that I have to be aware of?(Everything except the SQL part in the .pc file are standard C).
    Thanks,
    Sreekumar

    If you go up two levels in the breadcrumb trailat the top of the thread to the main discussions page you'll find a little search widget on the right that searches only in the ID related forums.
    That's the place to start looking for other threads that might have similar experience.

  • Cross-Platform Issues?

    I am using contribute on a PC (I'm the administrator) and another office wants a copy of the software but they use a Mac. Am I going to have any issues with this?
    Thanks.

    If you go up two levels in the breadcrumb trailat the top of the thread to the main discussions page you'll find a little search widget on the right that searches only in the ID related forums.
    That's the place to start looking for other threads that might have similar experience.

  • Cross Platform issues working with an external hard drive

    Lightroom 4.0 on both machines -- Ok, I use MAC at school and Windows 7 at home.  I put all my files on an external hard drive named ALR which is mapped on my PC to drive L.  When I edit any photo at school and go back to the PC machine at home,  I get the cannot locate original picture in location //volumes//ALR// if I'm on the MAC after editing photo's at home on the PC, I get the message cannot locate L:\ALR .. etc.  It keeps looking for the drive designation from the other computer.  Weird to me is that all the files are located on my external hard drive and I do not move them from there, also my catalog is located on the external drive also (no lectures on this please, I back up and its for a lightroom class)  The professor has no idea why that is happening as he knows NOTHING about pc's..  Anyone else have an idea - in the big scope of things it is not a big deal, but it is just frustrating to have to remap my directory every time.

    Can we see a screenshot of the Folders panel please, before you remap it?  I just need to be clear on whether you're having to 'find missing folder' on a single folder (which is quite normal as Mac and Windows see the drive completely differently) or whether there's a different issue here.

  • Cross-platform issues with Initial View

    When I specify my Initial View setting on Acrobat Pro (10.1.9) on my Mac, they are not honoured when the PDF is opened on a Windows machine. I've noticed this specifically with the Page Layout view. Any help would be appreciated.
    Thanks.

    Hi Bill.
    I open the PDF in Acrobat Pro, then go to File > Properties (cmd + D), choose the Initial View tab and change the setting there. I then OK that and save the PDF. When I open the same PDF again on the Mac (in either Reader or Acrobat Pro) the settings I made are honoured. When I open the same PDF on a Windows machine, they're not.
    J

  • Cross-Platform issue

    Hi,
    I'm working on some application, with a small bit of GUI in it. At the beginning of the program, I call:
    try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch (Exception e) { ...Then I use a class extending JFrame, and sometimes a JFileChooser.
    It works file on Windows XP, but when I try it on a Mac OS 10, it blocks at the frame or file chooser instanciation, like if it was stuck in an infinite loop.
    I tried without specifying the look and feel, to use the Java one, but it was the same.
    Can someone help me with this?
    Thank you in advance,
    Thomas

    Can anyone help? Or at least tell me that it's not normal and that it should work?
    Thanks.

  • Old Macromedia - Adobe cross platform font issues

    This message is more directed to Adobe.
    I am aware that currently OpenType fonts are cross platform compatible but only with Illustrator, Photoshop and InDesign.
    However, my primary workspace is Fireworks-Flash. There are serious cross platform issues with fonts - I have looked at truetype, postscript and opentype and they all have issues translating onto PC - many of the styles are not available.
    In our studio I design on Mac but our Flash developers are on PC - our final renders and review renders always need to happen on Mac as a result of this cross platform issue. This is a little inefficient.
    When is Adobe planning on resolving this issue?

    "I am aware that currently OpenType fonts are cross platform
    compatible but only with Illustrator, Photoshop and InDesign."
    No, they are fully cross-platform compatible. The Adobe products you
    mention, along with a very few others, are the only applications
    capable of taking full advantage of the advanced features available in
    some opentype fonts. And even the three products you mention don't all
    necessarily support open-type in the same way.
    "However, my primary workspace is Fireworks-Flash. There are serious
    cross platform issues with fonts - I have looked at truetype,
    postscript and opentype and they all have issues translating onto PC -
    many of the styles are not available."
    If you are using the same application version on both platforms, you
    should have identical functionality. If you're using an older version
    of Fireworks.
    The only cross-platform style issue with TT or T1 fonts is that
    Windows doesn't recognize any styles other than Regular, Bold, Italic,
    and Bold Italic. Also, there's a font menu difference between MacOS
    and Windows. Mac display all available styles, whereas Windows only
    displays the family name, and you have to select the variants from
    somewhere else (typically "B" "I" "U" buttons). SOME font families
    from some vendors use the style function to define such variants as
    Small Caps, Light, etc. MS products get ... confused.
    "In our studio I design on Mac but our Flash developers are on PC -
    our final renders and review renders always need to happen on Mac as a
    result of this cross platform issue. This is a little inefficient."
    If you're using different applications for design and rendering, and
    their functionality is different, then you have a cross-application
    compatibility issue. You didn't mention what applications or versions
    are involved.
    "When is Adobe planning on resolving this issue?"
    It may be more a Microsoft issue than an Adobe issue. In addition to
    the style limitations, There are no MS products that yet support
    open-type features.
    Although Adobe personnel do sometimes visit here, this is not a
    "talk-to-Adobe' forum. Since your problem is application related, I'd
    suggest taking it to the appropriate application forumsFireworks
    General Discussion looks right.
    And, as Bob said, you might also contact Adobe support directly with
    your concerns.

  • Loss of Edits in a non cross-platform InDesign/InCopy Workflow

    I have read, and understand, the cross-platform issues related to loss of edits in InCopy. We are experiencing the same issue on an all Windows network.  Some authors have experienced the following issue:
    Author checks out a story and edits the content
    Author checks the story in
    Later, the Author checks out the story , but the edited content is missing
    Author becomes frustrated ;-)
    The worst part of this issue is that it does not happen consistently, it is random.
    We are running InDesign on Window-7 64 bit machines, InCopy on Windows XP 32 bit machines, and the file server is a Windows 2003 server.  Or workflow is designed so that only one author and the InDesign designer has access to the  assignment file (We create assignments by author instead of by section).
    So my question is, has anyone else experieinced these problems? Any thoughts would be appreciated.

    Yes, we are using InDesign, InCopy, Illustrator, and Photoshop CS5. We were very excited about having the ability to mix 8.5x11 and 11x17 pages for the proposal we are in the process of creating and decided to be early adopters.  I hope they get the bugs fixed soon....I am confident that they will.
    Thanks!

  • Execute a query using ABAP  (XSLT transformation issue)

    Hello,
    I made the steps from this blog (part I, II and III).
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    When trying to run the XSLT transformation, I got the message that : XML invalid source file.
    I am not sure what are the steps for running a transformation, or running it for this case ,maybe something it's not ok. I just run it, did not provide any information.
    Any suggestions ? Did anyone use the function module described in this blog ?
    Thank you very much in advance.

    try giving
    CALL TRANSFORMATION (`ID`)
    SOURCE meta = meta_data[]
    output = <ltable>[]
    RESULT XML xml_out
    OPTIONS xml_header = 'NO'.
    and check - sometimes the codepages configured in the BW system tend to cause an issue... I am not sure if the syntax is right though - but you are basically trying to bypass any encoding that is happening in the query transformation....
    http://www.sapetabap.com/ovidentia/index.php?tg=fileman&sAction=getFile&inl=1&id=4&gr=Y&path=ABAP%2FABAPENANGLAIS&file=ABAP-XML+Mapping.pdf&idf=41
    Edited by: Arun Varadarajan on May 18, 2009 11:28 PM

  • Issues when a cross platform android app is run on Blackberry 10 alpha simulator

    I am facing problems in running a cross platform android App in blackberry 10 Alpha simulator.The App works fine when run in iphone,android devices.But when I run it in blackberry 10 it doesn't load the template files hence a blank screen.The project is based on backbone framework hence template files.Currently the files are local in my hard-disk. I am loading the templates using an ajax call. The logcat output generated of the same is listed below:- 02-08 05:30:51.861: D/CordovaLog(233525377): {"readyState":4,"responseText":"","status":404,"statusText":"error"}
    I have added in config.xml file . Is there anything else I am missing to make the app run on blackberry 10?? I had the same issue with nook HD which was avoided by using super.appView.getSettings().setAllowUniversalAccessFromFileURLs(true); in the onCreate method.But since blackberry uses 2.3.3 of Android,I am unable to add the same settings. Please let me know If I am missing any specific configuration related content for blackberry 10.Thanks

    Hey Steve_web,
    This issue can be caused when MAC address filtering is enabled on the Wi-Fi network, and the MAC address of the BlackBerry Playbook is not accepted. Try adding the MAC address of the BlackBerry Playbook to the accepted MAC address list for the Wi-Fi network and test.
    The following article may be helpful as well:
    Troubleshooting Wi-Fi and networking on the BlackBerry PlayBook
    http://btsc.webapps.blackberry.com/btsc/KB26096
    Also if you contact the BlackBerry PlayBook support team they can do log review to determine the cause; you can find the contact information here: http://us.blackberry.com/legal/blackberry-playbook-complimentary-support-plan-terms-and-conditions.h...
    Thanks.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Does anyone have issues sending pdf's or jpg's cross platform and the images do not come through as an attachment. iMac OS 10.8.2

    Issues with mailk.
    When I send an attachment, if I drag n drop or actualy use attach. When it is sent cross platform, especially outlook. The person says the image is embedded in email. I tell them to right click and they say it saves to small.
    Anyone have any ideas, I am strictly aa apple girl. Never had PC so I don't know what to tell my clients.
    Thanks for any help.

    Lion Mail: If Windows users have trouble with your attachments

  • XSLT transformation in XML to ABAP: special characters issue

    Hi,
    I am parsing well-formed XML file that has the following data (:
    <projects><project><name>Wallis &amp; Futuna</name></project></projects>
    I use XSLT transformation:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:template match="projects">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
            <PROJECTS>
              <xsl:for-each select="project">
                <PROJECT>
                  <NAME>
                    <xsl:value-of select="name"/>
                  </NAME>
                </PROJECT>
              </xsl:for-each>
            </PROJECTS>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:transform>
    If I use the above example without &amp;amp; everything works fine, but the original XML fails with exception CX_XSLT_DESERIALIZATION_ERROR and message "Error during deserialization". Googling around did not give an answer.
    Any words of wisdom?
    Edited by: Alexei Isaev on Apr 26, 2011 5:04 AM
    Edited by: Alexei Isaev on Apr 26, 2011 5:05 AM

    Hi,
    Please visit the following link for reference.
    http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSFORMATION.htm
    Thanks & Regards,
    Harish

Maybe you are looking for

  • Using javascript to change the "Overall Result" cell in WAD

    Hi experts, I am trying to use javascript to change the text of the "Overall Result" cell in my web template using BI 7.0. I am not familiar with javascript, but I this is what I have done so far. I dragged the web item "Script" into my web template

  • 52" TV on 50" Wall Mount?

    I was wondering if the ...."Sanus - Tilting Wall Mount for 30 " - 50" Flat-Panel TVs - Black" ...will work with a 52" Samsung LN52A750 HDTV?Is the 30-50" limit based on size? or weight also?Thanks, Bill

  • [SOLVED] Cinnamon cannot set background in settings

    1. There aren't any wallpapers in background settings. 2. I cannot add any wallpapers (jpg, png) to the background settings. 3. My wallpaper now is a default blue color. This is a newly installed Cinnamon desktop. I searched related questions, is it

  • My color screen went black

    my 30gb color screen just went black and white and now i have a folder with a !. someone please hel me.

  • What is the security code in visa

    Please provide me the security code in visa card.