Oracle XSLT Transformation not preserving space in text element

If we have a BPEL process which is calling a XSLT transformation contains the code similar as below:
for Populating an element with white space only
<tns:TargetField>
<xsl:text disable-output-escaping="yes"> </xsl:text> <!--Note the whitespace , also tried with disable-output-escaping =”no” -->
</tns: TargetField>
Our expected result / output would be:
<tns:TargetField> </tns: TargetField> <!--Note the whitespace -->
But, we get:
<tns:TargetField/>
Oracle XSLT is ignoring the white space even if we try with preserve space in XSD, or in XSLT this is not producing the expected output.
This looks a BUG with Oracle XSLT Transformation .
For a workaround solution we can use below XSLT snippet:
*<tns:TargetField>*
*<xsl:value-of select="string(' ')"/> <!--Note the whitespace -->*
*</tns:TargetField>*
This is returning Output:
*<tns:TargetField> </tns:TargetField> <!--Note the whitespace -->*
Any other work around do you find?
Edited by: panks on Jul 29, 2011 12:37 PM

The workaround only works with one white space, if one put more white spaces, it do not work.
<tns:TargetField>
<xsl:value-of select="string(' ')"/> <!--Note the whitespaces -->
</tns:TargetField>
This is returning Output:
<tns:TargetField> </tns:TargetField> <!--Note the only one whitespace -->
Edited by: user10697506 on Aug 10, 2011 3:27 PM

Similar Messages

  • XSLT Transformation NOt WORKING

    i have this XSLT and XML payload that i am wanting to transform. but the output xml does not contain the attribute for element engine.
    any help would be appreciated?
    this is my xslt
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="WSDL">
    <schema location="../HTTPBinding.wsdl"/>
    <rootElement name="Envelope" namespace="http://HPES.org/"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="WSDL">
    <schema location="../Service1.wsdl"/>
    <rootElement name="Envelope" namespace="http://HPES.org/"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.4.0(build 110106.1932.5682) AT [TUE JUN 07 11:17:07 CDT 2011]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:inp2="http://HPES.org/"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:inp1="http://tempuri.org/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:tns="http://oracle.com/sca/soapservice/Application1/Project1/Service1"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    exclude-result-prefixes="xsi xsl inp2 xsd inp1 wsdl tns bpws xp20 mhdr bpel oraext dvm hwf med ids bpm xdk xref ora socket ldap">
    <xsl:template match="/">
    <inp2:Envelope>
    <Body>
    <soapP1>
    <soapP2>
    <engine>
    <xsl:attribute name="value">
    <xsl:value-of select="/inp2:Envelope/Body/soapP1/soapP2/engine/@value"/>
    </xsl:attribute>
    <xsl:attribute name="txnElapsedTime">
    <xsl:value-of select="/inp2:Envelope/Body/soapP1/soapP2/engine/@txnElapsedTime"/>
    </xsl:attribute>
    <xsl:value-of select="/inp2:Envelope/Body/soapP1/soapP2/engine"/>
    </engine>
    </soapP2>
    </soapP1>
    </Body>
    </inp2:Envelope>
    </xsl:template>
    </xsl:stylesheet>
    this is my input xml
    <soap:Envelope xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soapP1>
    <soapP2>
    <engine value="1" txnElapsedTime="0.05"/>
    </soapP2>
    </soapP1>
    </soap:Body>
    </soap:Envelope>
    this is my output where the attribute are lost.....
    <?xml version="1.0" encoding="utf-8"?>
    <inp2:Envelope xmlns:inp2="http://HPES.org/">
    <Body>
    <soapP1>
    <soapP2>
    <engine value="" txnElapsedTime="">
    </engine>
    </soapP2>
    </soapP1>
    </Body>
    </inp2:Envelope>

    <?xml version="1.0" encoding="UTF-8"?>
    <inp2:Envelope xmlns:inp1="http://tempuri.org/" xmlns:inp2="http://HPES.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://oracle.com/sca/soapservice/Application1/Project1/Service1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <Body>
              <soapP1>
                   <soapP2>
                        <engine value="1" txnElapsedTime="0.05"/>
                   </soapP2>
              </soapP1>
         </Body>
    </inp2:Envelope>this works for me
    you select the Envelop element op de prefix : inp2 (in your xsl defined as xmlns:inp2="http://HPES.org/")
    but in your payload data you say : <soap:Envelope (xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/")
    so..namespace mismatch

  • XSLT Transformation error:  Non-canonical structure of element name

    Good day experts,
    I have recently started using xslt, and came upon the following demo in the sdn.
    http://wiki.sdn.sap.com/wiki/display/ABAP/XMLXSLTwith+ABAP
    I have retrieved the example xml files from airplus.com, as per the instructions, and implemented the code.
    When I test the xslt transformation in se80, it transforms correctly.
    However, when I run the program, I get the following error.
    CX_XSLT_FORMAT_ERROR
    Transformation error:  Non-canonical structure of element name XML_OUTPUT   
    Is there an error in the example that I am not aware of?
    Thanks in advance,
    Johan Kriek

    Found the solution.
    You rename the tag <XML_OUTPUT> to anything else like <TEST>. And Hurray!!! it works.
    It looks like SAP is using this name internally somewhere so we are getting error when we are using same name.
    Anyways the problem is solved.
    Regards,
    Jai

  • Not able to delete text elements.

    Hello
    I copied a z report from production server to development server by copying the code in se38.
    now system is no allowing me to delete a text element for parameter.
    SELECTION-SCREEN BEGIN OF BLOCK b4 with frame title text-012.
    PARAMETERS: P_YEAR  TYPE GJAHR OBLIGATORY DEFAULT 2014,       " Year
                 P_MONTH TYPE FCMNR AS LISTBOX  VISIBLE LENGTH 20 ,      " Month
                 P_COMP  TYPE BUKRS OBLIGATORY DEFAULT 1000.       " Company Code
    SELECT-OPTIONS S_PLANT FOR  vbrp-werks." Plant
                """PARAMETERS: P_FKART  AS CHECKBOX .             " Billing Document
    SELECTION-SCREEN END OF BLOCK b4.
    here my requirement is to disable PARAMETER : P_FKART and disable corresponding text element in system.
    i tried:
    1. deleting the text element row for p_fkart but it appears again when i save the text element.
    2.commenting the complete selection block and writing new selection block with text-012.system is taking same text element when i double click.
    thanks.

    Hi faizur,
    first of all: Programm changes are made in development system. not in produktion System. the transport oder is development system -> quality system -> production system.
    in your first statement above, you wrote
    "i tried commenting every line,which contains p_fkart.But system is not allowing me to activate the program."
    why shouldn't you be able to activate a programm when it is not caused by a syntax error?
    I mean deleting a selection-parameter from the selection-screen is basic stuff... as written above you normaly dont delete, you set it as "NO DISPLAY".
    when you got your programm activated again (and got rid of all the syntax errors you caused with the deletion) . Dont forget to activate the Text-Elements as well and it should work...
    regards
    Stefan Seeburger

  • Not able to find text element in layout

    Hi guys,
    in a layout ZABC print prgrm following write statement is coded..
    call function 'WRITE_FORM'           "Deactivate Header
         exporting  element  = 'ITEM_HEADER'
                    function = 'DELETE'
                    type     = 'TOP'.
    then calling follwong fm...
      call function 'WRITE_FORM'         
         exporting  element  = 'PRINT_TAX'.
    i m not able to find PRINT_TAX elment in layout ZABC in MAIN window.
    where could it be called??
    thnx in advance...
    regards.

    Hi,
    In SE71 after displaying the form...go to utilities-> forminfo..there search for the text element...and you will know in which window the text element is being used..
    THanks
    Naren

  • XSLT transformation not working in 1.5 (but was in 1.4)

    Gentlemen,
    I have a problem with some code that worked fine under 1.4 (at least up to 1.4.2_06), but now no longer works under 1.5.0 (I know this isn't the most recent, but I have yet to update).
    I use the following XSL template in order to take a string containing a valid XML definition, strip out all whitespace (this is ok, I know I dont need it), and then indent it in a nice readable format.
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  version="1.0" xmlns:xalan="http://xml.apache.org/xslt">
      <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" xalan:indent-amount="2"/>
        <xsl:strip-space elements="*"/>
          <xsl:template match="@*|node()">
            <xsl:copy>
              <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
          </xsl:template>
    </xsl:stylesheet>The code I use to perform the transformation is as follows :
    // read the XML string into a DOM document structure
    StringReader reader = new StringReader(xmlString);
    InputSource source = new InputSource(reader);
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse(source);
    // Input file to be transformed is the DOM document we have just created
    Source input = new DOMSource(doc);
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(new StreamSource(new StringReader(TEMPLATE_AS_DEFINED_ABOVE)));
    // create output writer and transform
    StringWriter writer = new StringWriter();
    transformer.transform(input, new StreamResult(writer));
    System.out.println(writer.toString());As already stated, this produced the goods, in 1.4.2_06, but in 1.5.0 it results in the following error :
    java.lang.NullPointerException
         at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parseTopLevel(Parser.java:1077)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parsePattern(Parser.java:1067)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Template.parseContents(Template.java:213)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:590)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:562)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:380)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:325)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:791)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
         at com.ingenico.tests.ReportTest.prettifyXMLString(ReportTest.java:231)
         at com.ingenico.tests.ReportTest.<init>(ReportTest.java:100)
         at com.ingenico.tests.ReportTest.main(ReportTest.java:136)
         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)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
    ERROR:  'null'
    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 com.ingenico.tests.ReportTest.prettifyXMLString(ReportTest.java:231)
         at com.ingenico.tests.ReportTest.<init>(ReportTest.java:100)
         at com.ingenico.tests.ReportTest.main(ReportTest.java:136)
         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)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)I have a headache now and would appreciate some help - not with the headache, but the above error! :)
    Cheers in advance,
    Lee.

    have you tried to remove the xalan specific entries
    in the XSL and use that code:
    transformer.setOutputProperty("{http://xml.apache.org/
    xslt}indent-amount", "2");?Thanks for the reply.
    Unfortunately, Ive already tried this, and it's not the problem.
    If I remove the whole <xsl:template match /> section from the template, then the compilation error does not occur. I guess this narrows it down somewhat, but I don't know why that section is now failing under 1.5. (Ive since also tried with 1.5.0_03 - same error).

  • Glassfish Web Service XSLT Transformation Not Working

    Hi,
    I've got a problem transforming an incoming soap request from a Microsoft Web Services Toolkit client. Basically, I've got a JAX-WS web service deployed to Glassfish v2 b33 which works fine when called by a Java client, but when called from the MS web services toolkit, some extra namespace elements are added to the SOAP request which the JAX-WS service doesn't seem to like. The incoming soap request looks like: <SOAP-ENV:Envelope
         xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
         xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/">
         <SOAP-ENV:Header/>
         <SOAP-ENV:Body>
               <SOAPSDK4:getConfig xmlns:SOAPSDK4="http://ws.firestorm.alternativenetworks.com/">
              <SOAPSDK4:arg0>Inbound</SOAPSDK4:arg0>
         </SOAPSDK4:getConfig>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope> The problem lies with <SOAPSDK4:arg0>Inbound</SOAPSDK4:arg0>, in that the inclusion of SOAPSDK4 for any arguments (i.e. arg0, arg1) results in the values for the arguments reaching the web service as null. I've tested sending the SOAP request with a tcpmon utility, and the same soap request (as above) without the SOAPSDK4 in the arg0 element (i.e. <arg0>Inbound</arg0>) works fine.
    So I tried using the Transformation feature of glassfish, transforming the incoming SOAP request using the following XSLT file which I have tested and am sure works (I'm no XSLT guru so this will definitely need some tidying up): <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet  version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"
         xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/">
         <xsl:output method="xml" indent="yes"/>
         <xsl:template match="*">
              <xsl:copy><xsl:copy-of select="@*"/><xsl:apply-templates/></xsl:copy>
         </xsl:template>
         <xsl:template match="/SOAP-ENV:Envelope/SOAP-ENV:Body/*">
              <xsl:copy>
                   <xsl:copy-of select="@*"/>
                   <xsl:for-each select="*">
                        <xsl:text disable-output-escaping="yes"><arg></xsl:text>
                        <xsl:value-of select="position() - 1"/>
                        <xsl:text disable-output-escaping="yes">></xsl:text>
                        <xsl:value-of select="."/>
                        <xsl:text disable-output-escaping="yes"></arg></xsl:text>
                        <xsl:value-of select="position() - 1"/>
                        <xsl:text disable-output-escaping="yes">></xsl:text>
                   </xsl:for-each>
              </xsl:copy>
         </xsl:template>
    </xsl:stylesheet>I load the .xsl file using the Transformation utility which seems to work fine, but when a request comes in from the MS client I get the following error: [#|2007-05-11T09:23:46.530+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=15;_ThreadName=Thread-15;com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:1, ts:1178871826530];|ADM1041:Sent the event to instance:[com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:1, ts:1178871826530]]|#]
    [#|2007-05-11T09:27:31.675+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=12;_ThreadName=httpWorkerThread-4848-0;com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:2, ts:1178872051675];|ADM1041:Sent the event to instance:[com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:2, ts:1178872051675]]|#]
    [#|2007-05-11T09:28:00.269+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=89eadb09-2894-4ace-95f6-75043c1e6988;|
    ERROR:  ''|#]
    [#|2007-05-11T09:28:00.285+0100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=89eadb09-2894-4ace-95f6-75043c1e6988;|
    com.sun.enterprise.admin.wsmgmt.transform.TransformException: javax.xml.transform.TransformerException: java.lang.NullPointerException
         at com.sun.enterprise.admin.wsmgmt.transform.FilterChain.process(FilterChain.java:238)
         at com.sun.enterprise.admin.wsmgmt.transform.TransformFilter.process(TransformFilter.java:144)
         at com.sun.enterprise.admin.wsmgmt.filter.spi.FilterRouter.applyFilters(FilterRouter.java:69)
         at com.sun.enterprise.admin.wsmgmt.agent.GlobalMessageListenerImpl.processRequest(GlobalMessageListenerImpl.java:181)
         at com.sun.enterprise.webservice.monitoring.WebServiceEngineImpl.processRequest(WebServiceEngineImpl.java:265)
         at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRequest(JAXWSEndpointImpl.java:53)
         at com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:127)
         at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:79)
         at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
         at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
         at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
         at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
         at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:70)
         at com.sun.xml.ws.mex.server.MetadataServerPipe.process(MetadataServerPipe.java:97)
         at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:191)
         at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:113)
         at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:79)
         at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
         at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
         at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
         at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
         at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:208)
         at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:374)
         at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:175)
         at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:134)
         at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:100)
         at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:74)
         at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:187)
         at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:116)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:101)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:74)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:249)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
         at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:328)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
    Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:651)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:281)
         at com.sun.enterprise.admin.wsmgmt.transform.FilterChain.process(FilterChain.java:224)
         ... 54 more
    Caused by: java.lang.NullPointerException
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1235)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TrAXFilter.parse(TrAXFilter.java:105)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:588)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:642)
         ... 56 more Could this be a bug in Glassfish or am I overlooking something or doing things completely wrong?
    Cheers.

    How are you passing the input to XSLT?
    If your input request is following:
    <cus:InputParameters xmlns:cus="http://www.tcs.com/Customer">
    <cus:customerID>2</cus:customerID>
    </cus:InputParameters>Then you should pass $body/cus:InputParameters as the Input document for bind input in Proxy Service.

  • I can not remove spaces from TEXT file..

    Hi All,
    please advise me why the following code not remove the spaces or tab from the text file.
        try
            FileReader fr = new FileReader("D:\\Test\\a.txt");
    BufferedReader br = new BufferedReader(fr);
    Pattern p;
      Matcher m;
    String line;
    String afterReplace = "";
      String inputText = "";
    while((line = br.readLine()) != null)
       inputText = line;
      p = Pattern.compile("\\s+|\t");
      m = p.matcher(inputText);
      System.out.println(afterReplace);
      afterReplace = afterReplace + m.replaceAll(" ") + "\r\n";
      System.out.println(afterReplace);
    fr.close();
          catch (Exception e){
      System.err.println("Error: " + e.getMessage());
      }my regards
    Wael

    many thanks for you , i try to used it for the following text but the results same.
    McNair was shot and killed last weekend in what police say was a murder-suicide.  (July 9)                      Nation / World                          By:  AP                                 
     Comments: text ( 0 ) |  video ( 0 )    + Add a comment        
          Be the first to  add a comment .                                                           
           1          2          3          4          5                 Your Rating               <br>                                                                                                                                                                                                                                                                                                       
        Popularity                                                                                                                                    Your Name:                Your Comment:                                                                                                 
     http://videos.kansascity.com/vmix_hosted_apps/p/media?id=4999903&amp;item_index=&amp;genre_id=00000840 
                                                                     Your Email:                                     Friend's Email:                                     Your Message:                                                                                                                                                                                                                          
    Top Videos                                       Nation / World                       
                    Sports                                       Entertainment                                       Business                                       Lifestyle                                       
    Archive                                       User Submitted                                       Politics                                       Ink                                       Local                                       
    Selects                                                                                                                   
     all                        Sort By:                  Most Recent        Most Popular   
              Highest Rated                                                                 Loading...      
                               <br>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
     All users : If you have not already done so, Click "Record a Comment" to begin. Next, click "Allow" to use your camera.<br><br>  
     Additional Info for Mac users : If you do not see video (after clicking 'allow'), do the following:<br>      Click on the blue "gear" icon   in the lower right corner to bring up the settings window.     Click on the webcam icon.       If you are using a built in iSight camera, 
    choose USB Video Class Video from the pulldown menu. You should see video immediately.<br><br>       Click "close" button.   
    Record! You must record at least ten seconds before 
    you can stop.                

  • Not enough space for text

    I want to run a video and have text scrolling in from left under the video, not subtitles but just summary.
    A text box isn't big enough and I need to 'build in' and 'out' at specific times.
    Is there any way to do this. It seems that Apple shows you all the bells and whistles of the
    programme but not real functionality such as this. It would also be helpful if they told you
    what you cannot do.

    eaststar,
    It is quite possible to have text enter during the playing of a video - I was able to create a slide with a video that starts after a curtain opens, then have a line of text enter from left (on lower portion of video) at a few seconds after the video starts, then after a bit of time move off to the right and then another line of text enter from the left at another part of the video at a timed point and move out to the right after a bit (to allow reading the line), etc, etc. It does work.
    It is done by using a single line of text at a time and controlling the first entry to start with the video with a delay of X seconds, then its build out timed to be after that build in with X second delay, etc.
    Create your first line of text and then clone it (option drag) to create a new text box with the same formatting. All of the text lines are stacked on top of each other so that they all enter at the same elevation on the slide.
    You have to time your entry points and exits to match the subject matter at hand in the video, but it works.
    You can even have the text boxes filled with color or gradients - I suggest using some opacity, but that would be your choice. Make sure your text has enough contrast to the video, and , yes, you can overlay the text on top of the running video.
    Be sure to leave enough time for the audience to read what you slip in otherwise they will not benifit from any of it.
    Having said that, I'm a bit confused by your comment - "not enough room". I'm guessing you are feeling inclined to put lots of words on the screen while your audience is trying to absorbe the video and listen to any audio. Don't. My caution to you is to keep the text comments to minimimum - short phrases, key points or words, simple name of presenter on screen, etc. Leave the bulky text for a handout. You audience will appreciate the clean presentation. Just think; less is more and you will have a great slide.
    Good luck.

  • Xslt transformation - series of tags to unbounded element in target schema

    I am fairly new to xslt. I am trying to do this xsl transformation in JDev in my BPEL process. Any pointers to similar samples would help as well. Can you please help me achieve the below:
    I have a source xml as below:
    <calloffs>
    <calloff_dt1>100520</calloff_dt1>
    <calloff_qty1>20</calloff_qty1>
    <calloff_dt2>100625</calloff_dt2>
    <calloff_qty2>10</calloff_qty2>
    <calloff_dt3>100710</calloff_dt3>
    <calloff_qty3>1</calloff_qty3>
    </calloffs>
    I need to create a target xml as below:
    <schedulelist>
    <schedule>
    <schqty>20 </schqty>
    <schdate>100520 </schdate>
    </schedule>
    <schedule>
    <schqty>10 </schqty>
    <schdate>100625 </schdate>
    </schedule>
    <schedule>
    <schqty>1 </schqty>
    <schdate>100710 </schdate>
    </schedule>
    </schedulelist>

    Hello Folks,
    I have a similar issue. I have a particular unbounded element which i have to display multiple times ( mapping it to different source tags from the source schema) . I am able to do it in the source view and my transformation works fine when i test it. I am able to get the XML what i need. How ever when i switch to the design view, i get this error
    Transformation_1.xsl
    Error: This node is already mapped, repeating nodes not supported : "/mstns:OrderCreate/mstns:OrderCreateProperties/mstns:PartnerInformation/@partnerRoleIndicator"
    Error: This node is already mapped, repeating nodes not supported : "/mstns:OrderCreate/mstns:OrderCreateProperties/mstns:PartnerInformation/mstns:PartnerIdentifier/@partnerIdentifierIndicator"
    Is it ok to proceed and deploy with the current code? Or should i modify my source schema (which is in my control) to fetch multiple rows, use a for-each to achieve this functionality?
    Thanks

  • Jdeveloper 10.1.3: JAXB - how to preserve whitespace in text element??

    Dear all,
    i am trying to use jaxb to do the xml <> java object conversion.
    i meet a problem that the jaxb seems don't preserve the white space when xml to
    java conversion (but java to xml is ok, the whitespace is preserved.)
    for example:
    an element with string type: <Address> with leading and trailing spaces </Address>,
    in java code, obj.getAddress() return "with leading and trailing spaces", the spaces
    are trimmed..
    is there any configuration to make?
    how can i preserve the whitespaces?
    thank you
    ping

    Hi, Branislav,
    That's great! It works!
    I choose to use the first method. I have two project modules, both use the same data model. I opened the data model project's properties editor, highlighted the business components node, and the the Connection dropdown list is right there.
    Thank you very much! You are always very helpful!
    Newman

  • Reg: Adding spaces between texts in ALV list header

    Hi All,
    I was implementing a client requirement for ALV. The list header should contain something of this format.
    Pgm Id:               ZZZ01
    After this list header it is ALV display.
    I did this using the concatenate statement.
    ex: Concatenate 'PgmID' sy-repid into listheader seperated by space.
    But this is not showing spaces between text in ALV display. See I want a tabspace between the texts in headr. Any idea on how to mak it?
    Rakesh

    Depending on Fontsize the space might be so narrow that you believe its not there.
    check in the debugger if there is really a space in the string, the clause "separated by space" will insert one for sure.
    May be you'reshowing the ALV before you are modifying the listheader?
    Another approach is using strings, blanks at the end of a string are not deleted
    concatenate 'ABC ' 'XYZ' into s.
    and
    concatenate `ABC ` `XYZ` into s.
    will give different results, be aware of the difference in the quots in both cases. Using the second example you can insert as many blanks as you want.

  • Oracle XSLT support

    Oracle XSLT transformer will ever support XSLT 2.0 specs?
    -- Deha Peker

    Does your stylesheet use:
    <xsl:output encoding="xxx"/>
    to specify a proper encoding for the
    characters you're trying to use?

  • Error in script : text elements are missing

    Hi ,
      In my print programs iam uaing lots of text elements for a
    zform. I have copied the zform into zform1 and using the same print program and modified the zform1 according to my needs.
    I am not using all the text elements in my zform1 script which is passed from the print program.
    When i execute my zform1 by using the transaction which inturn uses that print program it gives more messages saying 512, 513 , 515 text elements are missing in form Zform1.
    Can anyone tell without touching the print program can i do anything on the script zform1 to reslove this problem.
    Please help me on this.Thanks...
    Regards,
    Rose.

    Hi,
    Ya, whatever Narendra told is right. U nedd to have the text elements in the script if you are calling the same from print program. Just maitain all the text elements with no text it.
    Eg: 
    /: 513
    /: 515
    Regards,
    KK

  • Navigational Attribute as Text Element

    Hi...
    I have a report which shows list of Titles in the first column and the corresponding amounts based on several account and profit center restrictions in the further columns. 
    Titles basically are movie names.
    Titles have navigational attributes like Video Release Date, Theatrical Release Date. These navigational attributes can be displayed in the report. But, the user doesn't want to display them in the report. He wants them to display them as the text elements.
    As we are neither using a filter nor variable on these navigational attributes, these are not being shown as text elements.
    Is there any way, I could show these navigational attributes for a given title as text elements?
    Thanks,
    Sai.

    Ok, let's make this simple. I have a Title: 9381780, which has navigational attribute, Theatrical Release Date: 01/09/2004.
    In my query definition, I have this title restricted by this value 9381780 and the navigational attribute in the rows panel.
    Now, the query displays me the both the Title and it's navigational attribute as columns in the report.
    But, if u see the text elements, I see only Title: 9381780, because it's a filter.
    I cannot see the navigational attribute, Theatrical Release Date: 01/09/2004 in the text elements because it is neither a filter nor a variable.
    I want to display this navigational attribute, Theatrical Release Date: 01/09/2004 in as a text element.
    Hope I made it clear.
    Thanks,
    Sai.

Maybe you are looking for

  • Depreciation not displaying line items

    hi all, While running depreciation run in test mode no line items are displayed and no errors are there if we see error log what could be the reason plz. tell me and in if run in real mode the values are posted but books are not updated plz. help me

  • Cost of SAP R/3 Enterprize IDES 4.7x2.00

    Hello Can any one tell me the cost of SAP R/3 Enterprise IDES 4.7x2.00 for Oracle Unix platofrm? Thanks, Shaina

  • ınstructıons on how to run the updater

    I am on a vacatıon ın Turkey and whıle I was really enjoyıng my musıc last nıght ıt suddenly dıed on me. Not cool. I am now try to download the updater from the hotel but I am not sure how to run ıt. any help would be apprecıated. It wıll be awful if

  • Manual Production order restriction

    Hi, I want to restrict creation of manual production order. In standard setting, even after completing the sales order system is allowing to create production order against sales order through CO08. Is it possible to restrict? Regards / US

  • Preventing Extend Features for Reader when distributing form

    I am distributing a form created in LiveCycle and will have the form responses automatically tracked on an internal server. The distributed form is not sent out via email, but rather stored on the shared internal server. With Acrobat Pro 9, the distr