0 Replies Latest reply on May 6, 2010 4:54 AM by Emanuele Radaelli

    [JS - CS3 - Mac OS] XML import preferences: xslt file issue...

    Emanuele Radaelli Level 1

      Hi,

      I know there's a bug on Mac about this, does anybody knows if is there another way to do it?

      I'm importing an XML file and I need to transform it with an XSLT stylesheet.

      Here's the code:

       

      var xmlFile = new File("/User/Desktop/product.xml");

      var xsltFile = new File("/User/Desktop/stylesheet.xsl");

      with(app.activeDocument.xmlImportPreferences){

           transformFilename = xsltFile;

      }

      myNode.importXML(xmlFile);

       

      Pretty simple but ID is missing my xsl file...

      I'm really bored about this, hope there's an alternative solution...

      Thanks anticipately.