Error while transforming XSLT,"Could not compile stylesheet"

Hi,
During transformation of my XSLT I needs to fetch data from method named *"myMethod(String str)"*, which is in *"mypackage.test.MyClass"* class. MyClass is in{color:#000000} XXX.jar. {color}
This XXX.jar is not in context of my web application.*
Following is part of XSLT which I am using.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:aaa="mypackage.test.MyClass">
<xsl:template match="/responseData">
<xsl:for-each select="response">
<XMLResponse>
<xsl:for-each select="status">
<xsl:variable name="Vvar_ResResponseType" select="."/>
<xsl:attribute name="ResResponseType">
<xsl:value-of select="aaa:myMethod($Vvar_ResResponseType)"/>
</xsl:attribute>
</xsl:for-each>
</XMLResponse>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>So I tried to use reflection API to load XXX.jar file at runtime.
But while transforming Transformer does not find "myMethod(String str)" and gives error like "Could not compile stylesheet"
Following is full exception stacktrace
ERROR:  'The first argument to the non-static Java function 'myMethod' is not a valid object reference.'
FATAL ERROR:  'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:829)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:623)
at com.actl.dxchange.utilities.Transformation.transform(Transformation.java:83)
at com.actl.dxchange.base.BaseConnector.transform(BaseConnector.java:330)
at com.actl.dxchange.connectors.KuoniConnector.doRequestProcess(KuoniConnector.java:388)
at com.actl.dxchange.connectors.KuoniConnector.hotelAvail(KuoniConnector.java:241)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
...........Please suggest is there any other way, so that Transformer can find required bean class from XXX.jar duruing transformation process.
Thanks & Regards,
Rohit Lad
Edited by: Rohit_Lad on Jan 29, 2009 7:38 PM
Edited by: Rohit_Lad on Jan 30, 2009 9:57 AM
Edited by: Rohit_Lad on Jan 30, 2009 10:02 AM

Got the solution from forum named
"Reflections & Reference Objects"
Following is link for whom encountered this issue.
http://forums.sun.com/thread.jspa?threadID=5362426
Edited by: Rohit_Lad on Jan 30, 2009 2:35 PM

Similar Messages

  • XSLT Exception: FATAL ERROR:  'Could not compile stylesheet'

    Hi....
    Am getting Folowing Exception while parsing the XSL file. Am using java 1.4 and MSXML4.2 SP2 parser andSDK.
    but when I installed SQLServer2005, with that MSXML 6.0 Parser is Installed.
    It is working fine before instalation of SQLServer2005.
    java.lang.NullPointerException
         at com.sun.org.apache.xalan.internal.xsltc.compiler.FunctionCall.translate(FunctionCall.java:826)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.ValueOf.translate(ValueOf.java:114)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.XslAttribute.translate(XslAttribute.java:252)
    Compiler warnings:
    file:///F:/Data/JRun4/servers/ABC/MainXSL.xsl: line 155: Attribute 'LenderBranchIdentifier' outside of element.
    file:///F:/Data/JRun4/servers/ABC/MainXSL.xsl: line 156: Attribute 'LenderRegistrationIdentifier' outside of element.
    ERROR: 'null'
    FATAL ERROR: 'Could not compile stylesheet'
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:753)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:548)
         at com.ls.lsglobal.common.CLOUTSQLXML.TransXml2Xml(CLOUTSQLXML.java:274)
    And My XSL is
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.5" xmlns:lsjava1="com.ls.lsglobal.common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="lsjava1" >
         <xsl:output method="xml" indent="yes" encoding="utf-8" doctype-system="MyRequest.1.3.DTD"/>
         <xsl:template match="/" >
              <REQUEST_GROUP>
                                       <TRANSMITTAL_DATA>
                                            <xsl:if test="AppraisedVal!=''">
                                                 <xsl:attribute name="AppraisedValueAmount"><xsl:value-of select="AppraisedVal"/></xsl:attribute>
                                            </xsl:if>
                                            <xsl:if test="StatedVal!=''">
                                                 <xsl:attribute name="EstimatedValueAmount"><xsl:value-of select="StatedVal"/></xsl:attribute>
                                            </xsl:if>
                                            <xsl:for-each select="ROOT/AppMain/MyLoop/Liab">
                                                 <xsl:if test=" normalize-space(LiabTypCd) = 'SMG' and (normalize-space(PresFutTypCd) = 'BOTH' or normalize-space(PresFutTypCd) = 'PRES') and PresLienPos='1' and normalize-space(RefCd) != 'LOAN'">
                                                      <xsl:attribute name="CurrentFirstMortgageHolderType"><xsl:value-of select="LiabId"/></xsl:attribute>
                                                 </xsl:if>
                                            </xsl:for-each>
                                            <xsl:attribute name="LenderBranchIdentifier">0001</xsl:attribute>
                                            <xsl:attribute name="LenderRegistrationIdentifier"><xsl:value-of select="ROOT/AppMain/MyNum"/></xsl:attribute>
                                       </TRANSMITTAL_DATA>
              </REQUEST_GROUP>
         </xsl:template>
    </xsl:stylesheet>
    And My Java Code is
    public String TransXml2Xml(String xmlInFile, String xslFile, String xmlOutFile) throws Exception
              try
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setIgnoringElementContentWhitespace(true);
                   Document document;
                   File stylesheet = new File(xslFile);
                   File dataInfile = new File(xmlInFile);
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   document = builder.parse(dataInfile);
                   System.err.println("-->AVC:::xslFile="+xslFile+" xmlInFile="+xmlInFile+" xmlOutFile="+xmlOutFile);
                   StreamSource stylesource = new StreamSource(stylesheet);
                   TransformerFactory t=TransformerFactory.newInstance();
                   Transformer transformer = t.newTransformer(stylesource);
                   DOMSource source = new DOMSource(document);
                   javax.xml.transform.stream.StreamResult result = new javax.xml.transform.stream.StreamResult(new File(xmlOutFile));
                   transformer.setOutputProperty(javax.xml.transform.OutputKeys.INDENT , "yes");
                   transformer.setOutputProperty(javax.xml.transform.OutputKeys.ENCODING, "UTF-8");
                   transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
                   if(strCLUTDTD_PATH.equals(""))
                        java.util.Properties props = new java.util.Properties();
                        java.io.FileInputStream fis = new java.io.FileInputStream("DataFileBasePath.properties");
                        props.load(fis);
                        fis.close();
                        strCLUTDTD_PATH = checkNull(props.get("CLUTREQDTD_PATH"));
                   transformer.setOutputProperty(javax.xml.transform.OutputKeys.DOCTYPE_SYSTEM , strCLUTDTD_PATH);
                   transformer.transform(source, result);
              catch(Exception e)
                   e.printStackTrace();
                   throw e;
              return "";
    can any one know what solution for this problem. It is very help full for me.

    So look at your code and find out what you are passing to the TransformerFactory. Then find out why it's null. Don't just sit there and say "Duh", it's your code.
    And remember that nobody but you can see it yet. If you like you could post it here and then others could see it and comment on it.

  • Error while transforming XSLT by calling function with Reflection API

    Hi,
    I'm new to Reflection API. I want to call function from the jar file which is not in my application context. So I have loaded that jar ( say XXX.jar) file at runtime with URLClassLoader and call the function say [ *myTransform(Document document)* ]. Problem is that when I want to transform any XSLT file in that function it throws exception 'Could not compile stylesheet'. All required classes are in XXX.jar.
    If I call 'myTransform' function directly without reflection API then it transformation successfully completed.
    Following is code of reflection to invoke function
            ClassLoader contextCL = Thread.currentThread().getContextClassLoader();
            URLClassLoader loader = new URLClassLoader(jarURLs, contextCL);
            Class c = loader.loadClass(fullClasspath);
            Constructor constructor = c.getDeclaredConstructor(constructorParamsClasses);
            Object instance = constructor.newInstance(constructorParams);
            Method method = c.getDeclaredMethod("myTransform", methodParamsClasses);
            Object object = method.invoke(instance, methodParams);Following is function to be called with reflection API.
    public Document myTransform ( Document document ) {
    // Reference of Document (DOM NODE) used to hold the result of transformation.
                Document doc = null ;
                // DocumentBuilderFactory instance which is used to initialize DocumentBuilder to create newDocumentBuilder.
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance () ;
                // Reference of DocumentBuilder used to create new Document (DOM NODE).
                DocumentBuilder builder;
                try {
                      // Initialize DocumentBuilder by using DocumentBuilderFactory instance.
                      builder = factory.newDocumentBuilder ();
                      // Initialize new document instance by using DocumentBuilder instance.
                      doc = builder.newDocument () ;
                      // Creates new DOMSource by using document (DOM NODE) which is coming through current transform() method parameter.
                      DOMSource domsource = new DOMSource ( document ) ;
                      // Creates new instance of TransformerFactory.
                      TransformerFactory transformerfactory = TransformerFactory.newInstance () ;
                      // Creates new Transformer instance by using TransformerFactory which holds XSLT file.
                      Transformer transformer = null;
    ********* exception is thrown from here onward ******************
                      transformer = transformerfactory.newTransformer (new StreamSource (xsltFile));
                      // Transform XSLT on document (DOM NODE) and store result in doc (DOM NODE).
                      transformer.transform ( domsource , new DOMResult ( doc ) ) ;
                } catch (ParserConfigurationException ex) {
                      ex.printStackTrace();
                } catch (TransformerConfigurationException ex) {
                      ex.printStackTrace();
                } catch (TransformerException ex) {
                     ex.printStackTrace();
                } catch (Exception ex) {
                     ex.printStackTrace();
                //holds result of transformation.
                return doc ;
    }Following is full exception stacktrace
    ERROR:  'The first argument to the non-static Java function 'myBeanMethod' is not a valid object reference.'
    FATAL ERROR:  'Could not compile stylesheet'
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
            at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:829)
            at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:623)
            at com.actl.dxchange.utilities.Transformation.transform(Transformation.java:83)
            at com.actl.dxchange.base.BaseConnector.transform(BaseConnector.java:330)
            at com.actl.dxchange.connectors.KuoniConnector.doRequestProcess(KuoniConnector.java:388)
            at com.actl.dxchange.connectors.KuoniConnector.hotelAvail(KuoniConnector.java:241)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            ...........

    Hi,
    Thanks for response.
    Following is code for setting 'methodParamsClasses' array object. I do ensure that Document is not null and valid. My application is web application.
    Document requestObj = /* my code for generating Document object*/
    Object[] methodParams = new Object[]{requestObj}
    Class[] methodParamsClasses = new Class[]{};
                if (methodParams != null) {
                    methodParamsClasses = new Class[methodParams.length];
                    for (int i = 0; i < methodParams.length; i++) {
                        if (methodParams[i] instanceof Document) {
    /************** if parameter is instance of Document then I set class type as "Document.class" ***********/
                            methodParamsClasses[i] = Document.class;
                        } else {
                            methodParamsClasses[i] = methodParams.getClass();

  • NewTransformer - Could not compile stylesheet exception

    Using the following code:
    Transformer transformer = factory.newTransformer( new StreamSource(xsltFile) );
    If I fill the xsltFile string variable with "contents.xslt" it goes through fine.
    But, if I put the following into the xsltFile variable, it throws the following exception:
    "C:\\test\\src\\xslt\\contents.xslt"
    Failed to transform file C:\DB Documenter\output\xml\main.xml due to: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    I am formatting the the source and result strings in the actual transform the same way, and they work fine pointing to a c:\ directory. Any reason this blows up on the newTransformer call?
    Here is the whole code:
    public void performTransform(String xsltFile, String xmlFile, String htmlFile) {       
    try {           
    TransformerFactory factory = TransformerFactory.newInstance();
    /* xsltFile = "contents.xslt"; */
    xsltFile = "C:\\DB Documenter\\src\\xslt\\contents.xslt";
    Transformer transformer = factory.newTransformer( new StreamSource(xsltFile) );
    StreamSource xmlSource = new StreamSource(xmlFile);
    StreamResult htmlResult = new StreamResult(htmlFile);
    transformer.transform(xmlSource, htmlResult);
    } catch (Exception e) {
    JOptionPane.showMessageDialog(null, "Failed to transform file " + xmlFile + " due to: " + e);
    }

    StreamSource/Results are simple POJOs: the interpretation of the the system ID you construct them from is left to the interpretation of the object that will use them. This is why the behavior is not consistent.
    For this reason, I never use StreamSource/Result(String) constructors but prefer either the constructor that takes a File or a Reader.

  • Exception : Could not compile stylesheet

    Dear All,
    I'm using SimpleTransform.java (renamed as ReceiptTransformer.java for custom use) found in xalan-j_2_7_0 samples directory for transformations in my custom application. The program compiles successfully but gives the following error during runtime:
    ERROR: 'org/apache/avalon/framework/configuration/Configuration'
    FATAL ERROR: 'Could not compile stylesheet'
    Exception in thread "main" javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
    at ReceiptTransformer.main(ReceiptTransformer.java:29)
    Any help in this regard is greatly appreciated.

    StreamSource/Results are simple POJOs: the interpretation of the the system ID you construct them from is left to the interpretation of the object that will use them. This is why the behavior is not consistent.
    For this reason, I never use StreamSource/Result(String) constructors but prefer either the constructor that takes a File or a Reader.

  • 11g and Could not compile stylesheet

    Hello,
    I using Oracle 11g R2.
    I'm using a Java Stored Procedure.
    And I'm using the Oracle's XSL file example.
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:math="http://www.oracle.com/XSL/Transform/java/java.lang.Math">
    <xsl:template match="/">
    <xsl:value-of select="math:ceil('12')"/>
    </xsl:template>
    </xsl:stylesheet>
    And I get the following exception :
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
    Can anybody help me ?

    I believe you should ask this question at some XML forum.
    Aman....

  • TransformerConfigurationException...Could not compile stylesheet

    So far my XSLT stylesheet was executed in operations mapping without problems.
    However I had to make some changes (e.g. adding some additional xsl:choose elements) and now I get the following compilation error:
    TransformerConfigurationException occured when loading XSLT xxxxxxx; details: Could not compile stylesheet
    I develop and change the XSLT externally using XML Spy and there I could run a test transformation without problems or errors.
    Only after reimporting as IA archive and selecting the new version in operations mapping I get the error.
    How is this possible? How can I debug to find the root cause for the error?
    Edited by: Florian Guppenberger on Nov 13, 2009 6:05 PM

    Hello,
    what I have done is to add an additional <xsl:choose> to an already existing <xsl:choose> in the <xsl:otherwise> branch at several locations. Example below.
    I hope that there was not typo somwhere else, however what is very strange is that XML Spy says that the XSLT is well-formed and a test transformation executes successfully too.
    For that XSLT it is not such a big problem, because I can roll-back to the previous version but I am really concerned if you build a big XSLT from scratch in XML Spy an after import in PI you get a compilation error. So it would be really good to find a root cause for this.
    <xsl:choose>
    <xsl:when test="RET_DATE">
      <xsl:attribute name="nullFlavor"><xsl:value-of select="RET_DATE"/></xsl:attribute>
    </xsl:when>
    <xsl:otherwise>
        <xsl:choose>
            <xsl:when test="RET_DATE_VALUE='00000000'">
                 <xsl:attribute name="nullFlavor"><xsl:text>NA</xsl:text></xsl:attribute>
            </xsl:when>
            <xsl:otherwise>
                 <xsl:attribute name="value"><xsl:value-of select="RET_DATE_VALUE"/></xsl:attribute>
            </xsl:otherwise>
          </xsl:choose>  
    </xsl:otherwise>
    </xsl:choose>
    Edited by: Florian Guppenberger on Nov 16, 2009 11:05 AM
    Edited by: Florian Guppenberger on Nov 16, 2009 11:06 AM

  • XSLTC Giving Could Not Compile Stylesheet.

    Hi All,
    Till now i am using xalan.jar and my xsl is as fallows
    <xsl:stylesheet xmlns:js="javascriptcode" xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="js java" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:lxslt="http://xml.apache.org/xslt" version="1.0">
    <xsl:template match="/">
    <xsl:apply-templates select="b"/>
    </xsl:template>
    <xsl:template match="b">
    <tar:target xmlns:tar="http://target">
    <tar:Element>
    <xsl:value-of select="js:fnMathematicalAbsolute(/b/b12)"/>
    </tar:Element>
    </tar:target>
    </xsl:template>
    <lxslt:component prefix="js">
    <lxslt:script lang="javascript">function fnMathematicalAbsolute(iNum) {return(Math.abs(iNum))}</lxslt:script>
    </lxslt:component>
    </xsl:stylesheet>
    This works fine Xalan . It is able to call the js extensions .
    I want to move from xalan to JDK 1.5 XSLTC .If ia m using this xsl It is giving Could not compile the stylesheet.
    Can anyone tell me why JDK1.5 doent compiling the stylesheet or is it a problem with my stylesheet. .This is urgent for me as i need to move to jdk 1.5 xsltc.
    Thanks in advance ,
    Sasi.A

    The problem is that J2SE 5 (unlike J2SE 6) does not include a JavaScript engine which is, however, required to interpret the JavaScript code embedded in XSLT stylesheets. You either have to keep on using Xalan (this utilizes Mozilla's Rhino JavaScript engine through the org.apache.bsf.BSFManager class) or switch to J2SE 6.
    Below are download links to three components that make up an applicable unit to compile your stylesheet:
    Xalan (xalan.jar, 3078601 bytes)
    http://apache.mirrors.ebizlab.hit.bme.hu/dist/xml/xalan-j/binaries/xalan-j_2_7_0-bin.zip
    Rhino JavaScript engine (js.jar, 708951 bytes)
    ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_6R5.zip
    Jakarta BSF (bsf.jar, 113369 bytes)
    http://apache.mirrors.crysys.hit.bme.hu/dist/jakarta/bsf/binaries/bsf-bin-2.4.0.zip

  • Error while running forge - Could not open DTD file

    Hi,
    I have a simple application created in Endeca,facing below error when I run baseline_update.sh
    FATAL   09/04/13 22:26:42.491 UTC (1378333602491)       FORGE   {baseline}: Error in file 'file:///../../endeca/apps/Sample/data/processing/Sample.analytics_config.xml' (line 2, char 58): An exception occurred! Type:RuntimeException, Message:Could not open DTD file 'file:///../../endeca/apps/Sample/data/processing/analytics_config.dtd'.
    Initially Forge was running error free, only changes we made were :
    1. Ingesting multiple XML files.
    2. Changed match mode of dimensions to Autogen
    Forge is unable to open any of the DTD files, for testing removed DTD reference line from Sample.analytics_config.xml.
    Forge fails again " FORGE   {baseline}: Error in file 'file:///../../endeca/apps/Sample/data/processing/Sample.cral_profile.xml...................................."
    Regards,
    Shruthi

    I've seen this type of error before when Forge is configured to read multiple files with spec *.xml.  Is that how you've configured your record adapter?  This configuration then collides with Forge XML config files merged into the same data/processing directory.
    From memory there's a couple of solutions for this - one might be to give the files a common name prefix if that's feasible, e.g. _data*.xml.  You could use a sub-directory to separate the files, but you'd need to modify your copy scripts.

  • Error while installing SOA, "Could not create java virtual machine"

    I am trying to install SOA latest release, but am getting an error stating "Could not create java virtual machine" and just that. No log, nothing. Could anybody help me out on this?

    Is JRE installed on your machine?
    If yes it may get corrupted, try to remove and reinstall jre again. Then try to install SOA.

  • Could not compile stylesheet error on tomcat environment.

    I have created xslt for generating pdf report.It's working fine on OPM when I run through OPM.
    But when I deployed same XSL on tomcat enviroment it doesn't compile error.
    Following the XSLT I have created
    and it give me the error for this line
    i.e ERROR: 'Syntax error in 'name() eq'attribute' '.'
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
    <fo:block >
    <xsl:if test="name() eq'attribute' ">
              <fo:block margin-left="1cm">
              <xsl:for-each select="@question-text">
              <xsl:value-of select="."/>=
              </xsl:for-each>
              <xsl:if test="string-length(normalize-space(text())) > 0">
                             <xsl:value-of select="text()"/>
                   </xsl:if>
              </fo:block>
    </xsl:if>
    <xsl:apply-templates mode="dump" select="*"/>
    </fo:block>
    </xsl:template>
    </xsl:stylesheet>

    Not every xslt parser acts the same, the one in OPM is not so restrictive (unfortunately)
    Try adding a space between eq and 'attribute'.

  • While installing itunes i am getting error "this installation package could not be opened.verify that the package exists and that you can access it,or contact the appliacation vendor to verify that this is a valid windows installer package"

    While installing itunes i am getting error "this installation package could not be opened.verify that the package exists and that you can access it,or contact the appliacation vendor to verify that this is a valid windows installer package"

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • DBD: Error while trying to load the transport provider for odbc. Failed to load the library. System error: The specified module could not be found.

    Hello Everyone,
    We are getting an error while trying to create an Universe via Microsoft -> MS Analysis Services 2014 -> OLEDB for OLAP Provider under Connection in UDT -"DBD: Error while trying to load the transport provider for odbc. Failed to load the library. System error: The specified module could not be found."  We have installed BI 4.1 SP05 in our system. As per earlier posts in scn in BO XI 3.x this issue used to be for improper installation of Integration KIT but in our scenarion Integration KIT is within the BO 4.1 package so no seperate installation is required. Moreover I have checked whether all the driver is present under file: "C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\drivers" and seems everything is fine. But still I am getting this error. One important point is we could use IDT because in IDT still we don't have option to connect with 'Microsoft Analysis Services - 2014 (XMLA)' as we are using Microsoft Analysis Services 2014 version.
    Kindly help if anyone has faced the same problem with SAP BO 4.1.
    Thanks and Best Regards,
    Ghosal

    Hello Everybody,
    The problem is solved now after installing "OLEDB drivers from SQL Server 2012 Feature Pack". We had OLEDB drivers that comes directly from SQL Server but that did not worked out in our case.
    Thanks for your support.
    Best Regards,
    Ghosal

  • ADF Faces: !-- ERROR: could not create stylesheet for oracle-desktop.xss

    Hi,
    I'm using ADF Faces EA6. Sometimes when I create the EAR, it doesn't include the file "oracle-desktop-ea6-ie-6-windows.css" which muest be present in the "adf/styles/cache" directory. If I check the source code from the browser, it starts like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html dir="ltr" lang="es-ES">
    <head><title>Sistema de Seguridad</title><meta name="generator" content="Oracle ADF Faces"><!-- ERROR: could not create stylesheet for oracle-desktop.xss --><script type="text/javascript" src="/fmv/adf/jsLibs/Commonea6.js"></script><script type="text/javascript">_defaultTZ()</script></head>
    Please note the comment: <!-- ERROR: could not create stylesheet for oracle-desktop.xss -->
    Does somebody know the reason?
    TIA,
    Brian

    If everything is set up properly the css will get generated if it doesn't exist. You do not have to be running in the IDE for the css to be correctly generated. Running the app first is generating the css before you deploy, so you've taken away the symptom but not solved the problem. If you try running on another browser, for example, you'll probably run into the same problem.
    Does your ear get unzipped when you deploy? Do you have a writable file system for the css to get written to? There is a known issue with WebLogic where it doesn't expand the EAR.
    Please check to see if there are errors in the logs.

  • I am installing Windows 7 on my macbook pro OSX Mountain Lion and I get an error message:" Your disk could not be partitioned." What does this mean?

    I am installing Windows 7 and I get an error message: "Your disk could not be partitioned. An error ocurred while partitioning the disk". I was using a Windows & Home Premium OEM Software that I purchased from Microsoft. I was given to Windows 100GB to use for Quickbooks pro, Payroll and Publisher. I have the Macbook Pro model No: MD102LL/A. Does anyone knows what happenned or can advice me in what to do? Please help!!!

    amarilysfl wrote:
    "Your disk could not be partitioned. An error occurred while partitioning the disk".
    https://www.apple.com/support/bootcamp/
    If you were using Apple's BootCamp and received this message, quit it and open Disk Uility in your Applicaitons/Utilities folder.
    Select the Macintosh HD partition on the left and select Erase and Erase Free Space > Zero option and let it complete (important) this will check the spare space for bad sectors that can cause issues formatting partitions.
    Once it's completed, try creating a partiton again in BootCamp.
    If that doesn't work, then hold command option r keys down while connected to a fast internet connection, Internet Recovery should load (spinning globe) and then in that Disk Utility, select your entire internal drive and click > First Aid > Repair Disk and Permissions.
    reboot and attempt Bootcamp again.
    If you still get a error, it might be that you have OS X data on the bottom area where BootCamp partition needs to go. This would occur if you had the drive or computer for a long time or wrote a large amount of files to the drive and nearly filling it up and then reduced some, but it left traces in the area BootCamp needs to go.
    To fix this
    BootCamp: "This disc can not be partitioned/impossible to move files."
    How to safely defrag a Mac's hard drive

Maybe you are looking for