XLST Transformation in JSF

Hi
Would appreciate a point in the right direction with transforming XML/XSLT from a JSF view usinfg TOMCAT and jwsdp-1.6. I can't decipher the stack trace java.lang.Illeg alArgumentException as being a bad invocation or bad file input or both.
A couple of threads allude to this exception with regard to JavaDoc and resolved with calss path issues don't belive this is the case here
Thanks in advance
<f:view>
     <f:verbatim>
          <h:outputText id="output" value="#{BB.output}" />
     </f:verbatim>
</f:view>java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:183)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:65)
at sun.net.www.protocol.file.Handler.openConnection(Handler.java:55)
at java.net.URL.openConnection(URL.java:943)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:969)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:184)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:387)
at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:228)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:472)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:640)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)
at com.nui.payd.invoice.web.controller.PAYDInvoiceController.viewHTML(PAYDInvoiceController.java:316)
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.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at javax.faces.component.UICommand.broadcast(UICommand.java:305)
at javax.faces.component.UIData.broadcast(UIData.java:657)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
=================================================================================
public void viewHTML(ActionEvent event)
          Templates xsltTemplate = this.cacheController.getTemplate();
          Transformer trans = null;
          try {
               trans = xsltTemplate.newTransformer();
          } catch (TransformerConfigurationException e) {
               log.info(METHOD_NAME +" TransformerConfigurationException :" + e.getMessage());
               e.printStackTrace();
          } catch (Exception e){
               String eMsg = " TRANSFORMER SETUP BLOCK ERROR ";
               log.error(CLASS_NAME + eMsg + e.getMessage());
               e.printStackTrace();
          Source xsltSource = new StreamSource(invoiceXMLFile);
          HttpServletResponse response = (HttpServletResponse) faces.getExternalContext().getResponse();
          response.setContentType("text/html");
          response.setContentLength(invoiceXMLFile.length());
          response.setHeader( "Content-disposition", "inline; filename=\"output.htm+\"");
          try { 
               trans.transform(xsltSource,new StreamResult(new File("output.htm")));
          } catch (TransformerException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
          } catch (Exception e)
               String eMsg = " TRANSFORMATION BLOCK ERROR : ";
               log.error(CLASS_NAME+eMsg + e.getMessage());
               e.printStackTrace();
          faces.responseComplete();
}

Hi,
Just collect the transformation using the transport connection ( if any , select the Formula and routine also) to transport.
For more information....
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3010ba90-0201-0010-2896-e58547c6757e
/message/1257362#1257362 [original link is broken]
Re: How to collect & transport new cube & new update rules
Re: Transport to BWQ issue?
Re: Transport a query from BWQ to BWP
Regards
CSM Reddy

Similar Messages

  • Help needed in XLST Transformation

    Hi All,
    I am facing issues in converting my DB records into the xml format required for my web service input using XSLT transformations. Please help in this regard.
    Here is how my DB data looks like.
    Group
    Header 2
    Header 3
    Header 4
    Header 5
    G1
    h1
    abc
    abc
    abc
    G1
    h1
    def
    ghi
    jkl
    G2
    h2
    abc
    xyz
    def
    G2
    h2
    xyz
    afa
    afe
    and now with this data i should call a web service and its input is something like this.
    <Group>
         <Header2>
              <Header3>
              <Header4>
              <Header5>
         </Header2>
    </Group>
    Basically for each group i should call the web service and send the data. I am using a DB adapter which gives me the select * from my table and I need to convert it to the hierarchy as shown above and call the 3rd party web service for each group.
    Please help me in this regard. Is it something we can achieve with the DB adapter select operation/ can we get the required grouping using XSLT transformations in SOA. Need the help urgently.
    Thank you in advance

    I think what Eric means is that BUKRS, ANLN1, ANLAN2 are not sequences, these are elements, from the way you explained your issue eric provided the solution to split the string based on the '-'. it sounded like you wanted to post into something like
    <mytest>0001</mytest>
    <mytest>12345678</mytest>
    <mytest>000</mytest>
    sorry I don't have access to eclipse workbook to help but you can get your expressions using commands such as lenght, and substring, etc.
    the best way to do this is in eclipse create a new xquery. Added the schemas you want to map to. In the first instance ID to ANLN1, ANLN2, and BUKRS so it will look like this.
    <ID>
    <ANLN1>0001-12345678-000</ANLN1>
    <ANLN2>0001-12345678-000</ANLN2>
    <BUKRS>0001-12345678-000</BUKRS>
    </ID>
    This will provide the structure of the xquery code, now what you need to do is modify it so it only maps what you need.
    Here is some psudo code that will need to be tested my may give to a start.
    ANLN1
    fn:substring(data($ID),1,4)
    ANLN2
    fn:substring(data($ID),6,8)
    BUKRS
    fn:substring(data($ID),15,3)
    cheers
    James

  • Jsf form to pdf file, how?

    Hi all how to transform a jsf form to a pdf to download?
    many thanks

    There is no such thing. Generally you use the print function of the browser - it is your job to properly apply css so a page prints nicely. Otherwise you have to dig into itext which is the api for producing pdf files.

  • XML Encoding from Business One - Unable to Read in a 3rd Party APP

    Hi:
    I have created an Add-On app that produces an XML document file when a new item is created or an existing item is updated. However, the 3rd party app that I am trying to integrate into is unable to read this XML. After doing some research, the following appears to be the issue.
    SBO produces the data with UTF-16 which is a double byte encoding for XML's. The 3rd party app that I have appears to be able to handle only single byte encoding formats such as UTF-8 or ISO-8859-1.
    I would like to know if there is a way in SDK to convert the output XML format to a single byte encoding such as ISO-8859-1. Can anyone please tell me how to achieve that in my Add-On code?
    Thank you.
    Kushal Dutta

    Hi Kushal,
    You can use a XLST transformation to convert from UTF-16 to UTF-8.
    The coding goes something like this:
    XmlReader xmlRdr = XmlReader.Create(new StringReader(sXML));
    XmlWriterSettings xmlWtrSettings = new XmlWriterSettings();
    xmlWtrSettings.Encoding = Encoding.Unicode;
    XmlWriter xmlWtr = XmlWriter.Create(sOutFile, xmlWtrSettings);
    XslCompiledTransform xslt = new XslCompiledTransform();
    xslt.Load(sTransformFile);
    xslt.Transform(xmlRdr, xmlWtr);
    xmlWtr.Flush();
    xmlWtr.Close();
    xmlRdr.Close();
    Where sXML is the XML string generated by the SBO GetAsXML method, sOutFile is the path and filename where the transformed XML will be created and sTransformFile is the path of the XLST file.
    Assuming that you wish to retain the same XML structure as before, the XLST file should look something like the following:
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
         <BOM>
              <xsl:for-each select="BOM/BO">
              <BO>
                   <AdmInfo>
                        <Object>
                             <xsl:value-of select="AdmInfo/Object"/>
                        </Object>
                   </AdmInfo>
                   <ORDR>
                        <xsl:for-each select="ORDR/row">
                        <row>
                             <DocEntry>
                                  <xsl:value-of select="DocEntry"/>
                             </DocEntry>
                             <DocNum>
                                  <xsl:value-of select="DocNum"/>
                             </DocNum>
                             <DocDate>
                                  <xsl:value-of select="DocDate"/>
                             </DocDate>
                             <DocDueDate>
                                  <xsl:value-of select="DocDueDate"/>
                             </DocDueDate>
                             <DocStatus>
                                  <xsl:value-of select="DocStatus"/>
                             </DocStatus>
                             <Cancelled>
                                  <xsl:value-of select="CANCELED"/>
                             </Cancelled>
                             <CardCode>
                                  <xsl:value-of select="CardCode"/>
                             </CardCode>
                             <CardName>
                                  <xsl:value-of select="CardName"/>
                             </CardName>
                             <NumAtCard>
                                  <xsl:value-of select="NumAtCard"/>
                             </NumAtCard>
                        </row>
                        </xsl:for-each>
                   </ORDR>
                   <RDR1>
                        <xsl:for-each select="RDR1/row">
                        <xsl:sort select="LineNum" />
                        <row>
                             <LineNum>
                                  <xsl:value-of select="LineNum"/>
                             </LineNum>
                             <ItemCode>
                                  <xsl:value-of select="ItemCode"/>
                             </ItemCode>
                             <Dscription>
                                  <xsl:value-of select="Dscription"/>
                             </Dscription>
                             <Quantity>
                                  <xsl:value-of select="Quantity"/>
                             </Quantity>
                             <WhsCode>
                                  <xsl:value-of select="WhsCode"/>
                             </WhsCode>
                             <BaseType>
                                  <xsl:value-of select="BaseType"/>
                             </BaseType>
                             <BaseEntry>
                                  <xsl:value-of select="BaseEntry"/>
                             </BaseEntry>
                             <BaseLine>
                                  <xsl:value-of select="BaseLine"/>
                             </BaseLine>
                             <FreeTxt>
                                  <xsl:value-of select="FreeTxt"/>
                             </FreeTxt>
                        </row>
                        </xsl:for-each>
                   </RDR1>
              </BO>
              </xsl:for-each>
         </BOM>
    </xsl:template>
    </xsl:stylesheet>
    The above example shows a XLST transform for the sales order document type. This example is for use with the xet_ValidNodesOnly setting for the XmlExportType company property. If you are using a different XmlExportType setting then the XLST will be slightly different but the principal is the same. For simplicity, I have shown only a cut-down list of the fields from the sales order but other fields and tables can be included (assuming that they are in the original XML from SBO).
    Kind Regards,
    Owen
    P.S. Sorry for the lack of indentation on the XML file. It was there when I created this post but the forum removes the indentation.

  • Leading zeros in SAP ME materials that come from SAP ERP

    Hello!
    When materials are transfered from the SAP ERP side via MII to SAP ME it can be observed that material numbers have leading zeros. For example a material number is created in SAP ME like 0000000123456 instead of 123456.
    I think this behaviour can be changed in the XLST transformations, which are part of SAPMEINT.
    Is this the usual way to fulfill the requirement "No leading zeros for SAP ME material numbers"?
    It can be observed that for example the shop orders don't have the leading zeros, when they are created in SAP ME.
    Of cause, when confirmations are sent back to SAP ERP the  corresponding XSLT transformation adds again these '0',
    it is somehow necessary for SAP ERP for the shop order lookup.
    I see one disadvantage when using modified XLST transformations.
    Each time a new version of SAPMEINT is deployed a check shoukld be made from our side, if there are changes in the original XSLT transformations.
    So what is the statement of direction from the SAPMEINT developers?
    Kr,
            Erich Lind

    We see the same problem for the leading zeros. There is no consistency in this case.
    Also the SAPMEINT Enhanced planned order report is triggering only for material with leading zeros. In this case you can't modify anything to prevent this. No XSLT modification possible there.
    Can we get any statement from SAP?!?

  • Xslt in jdev

    Hi,
    I read an old thread about this : Integrated XSLT in 10g , but I think it is unhandy to rename an xml file just because the extension doesn't fit. It would be really neat if I could choose an xml file, select xlst transformation from the menu, pick the xsl file to get the results in a preview window, just like in some xml editors. Any plans to do that?
    Bye,
    Jan

    I wrote a small extension, nothing spectacular but just what I wanted. I was surprised it's that easy to make one :)

  • Supplier Self registration error in SUS Portal

    Dear Experts,
    Environment SRM 7.0 PPS 3.0 and ECC 6.0 ep4.
    We are getting an abort error when completing and submitting the supplier self registration form in the SUS Portal.
    During  debug we found that the abort is happening in the class CL_UWS_FORM_RUNTIME  and method  SETGENXSLTPROG.
    The problem is it is not able to find the XSLT program and the line of the abort has the following 
    message:  x006(uws_forms).
    Please let me know if anyone has faced a similiar situation and its resolution.
    Thanks in advance,
    RK

    HI
    it is a standard error. Without particular OSS notes.
    Try to manage your XLST transformation with program XSLT_TOOL, inside you will find some errors into construction of the page html (i think a very large string or an ">" of more....)
    Check anyway note 1053680
    regards
    andrea

  • The method 'rollback' cant be called when a global transaction is active

    I receive the following error stack while dequeuing a message (aq adapter outbound) and forward the message to a database (database adapter inbound) within Oracle ESB 10.1.3.4.
    The database connection is dynamic using additional variables in the xlst transformation and putting the connection information (jndi name) in the xml doc:
    <xsl:variable name="JDBC_RESOURCE"
    select="/imp1:MixMatchMsg/imp1:Winkel/imp1:JNDI_NAME"/>
    <xsl:variable name="SET_DATASOURCE"
    select="ehdr:setOutboundHeader('/dhdr:OutboundDBHeaderType/dhdr:dataSourceName',$JDBC_RESOURCE,'dhdr=http://xmlns.oracle.com/pcbpel/adapter/db/;')"/>
    An unhandled exception has been thrown in the ESB system.
    The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException:
    esb:///ESB_Projects/mixmatch_MixMatchESB/WriteWinkels.wsdl
    [ WriteWinkels_ptt::merge(IntMixMatchCollection) ]
    - WSIF JCA Execute of operation 'merge' failed due to: DBWriteInteractionSpec Execute Failed Exception.
    merge failed.
    Descriptor name: [WriteWinkels.IntMixMatch].
    [Caused by: The method 'rollback' cant be called when a global transaction is active.]
    ; nested exception is:
         ORABPEL-11616
    DBWriteInteractionSpec Execute Failed Exception.
    merge failed. Descriptor name: [WriteWinkels.IntMixMatch].
    [Caused by: The method 'rollback' cant be called when a global transaction is active.]
    Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602))
    : oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException:
    The method 'rollback' cant be called when a global transaction is active.Error Code: 0.
    at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:644)
    at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeInputOnlyOperation(WSIFOperation_JCA.java:739)
    at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:927)
    at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:842)
    at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:865)
    at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(OutboundAdapterService.java:231)
    at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(OutboundAdapterService.java:138)
    at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:411)
    at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:169)
    at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Bu
    The payload looks as follows:
    <top:IntMixMatchCollection xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/WriteWinkels">
    <top:IntMixMatch>
    <top:nummer>1</top:nummer>
    <top:omschrijving>C1000 Tandenborstels: 3 voor 2.56</top:omschrijving>
    <top:kassabonOmschrijving1>Tandenborstelactie</top:kassabonOmschrijving1>
    <top:kassabonOmschrijving2>3 voor 2</top:kassabonOmschrijving2>
    <top:aantalPerKlant>2</top:aantalPerKlant>
    <top:begindatum>2009-03-16</top:begindatum>
    <top:einddatum>2009-03-21</top:einddatum>
    <top:mixMatchGroepNummer>1</top:mixMatchGroepNummer>
    <top:mixMatchGroepOmschrijving>WK 200912 Mix matchess</top:mixMatchGroepOmschrijving>
    <top:intMixMatchDsCollection>
    <top:IntMixMatchDs>
    <top:volgnummer>1</top:volgnummer>
    <top:aantalTeNemenArtikelen>3</top:aantalTeNemenArtikelen>
    <top:omschrijving>C1000 Tandenborstels</top:omschrijving>
    <top:kortingToerekenenJn>J</top:kortingToerekenenJn>
    <top:bedragTeBesteden>1.23</top:bedragTeBesteden>
    <top:kortingwaarde>2.56</top:kortingwaarde>
    <top:mixMatchNummer>1</top:mixMatchNummer>
    <top:intMixMatchHfdgrInDsCollection>
    <top:IntMixMatchHfdgrInDs>
    <top:hoofdgroepnummer>16</top:hoofdgroepnummer>
    <top:mixMatchNummer>1</top:mixMatchNummer>
    <top:mixMatchDoosVolgnummer>1</top:mixMatchDoosVolgnummer>
    </top:IntMixMatchHfdgrInDs>
    </top:intMixMatchHfdgrInDsCollection>
    <top:intMixMatchArtikelInDsCollection>
    <top:IntMixMatchArtikelInDs>
    <top:artonnummer>10010205</top:artonnummer>
    <top:actieInkoopprijsEncrypted>6C1407B28B5B7EDC</top:actieInkoopprijsEncrypted>
    <top:uitsluitenJn>J</top:uitsluitenJn>
    <top:mixMatchNummer>1</top:mixMatchNummer>
    <top:mixMatchDoosVolgnummer>1</top:mixMatchDoosVolgnummer>
    </top:IntMixMatchArtikelInDs>
    </top:intMixMatchArtikelInDsCollection>
    <top:intMixMatchHfdsubgrpInDsCollection>
    <top:IntMixMatchHfdsubgrpInDs>
    <top:hoofdsubgroepnummer>82</top:hoofdsubgroepnummer>
    <top:mixMatchNummer>1</top:mixMatchNummer>
    <top:mixMatchDoosVolgnummer>1</top:mixMatchDoosVolgnummer>
    </top:IntMixMatchHfdsubgrpInDs>
    </top:intMixMatchHfdsubgrpInDsCollection>
    </top:IntMixMatchDs>
    </top:intMixMatchDsCollection>
    <top:intMixMatchTijdCollection>
    <top:IntMixMatchTijd>
    <top:dagnummer>1</top:dagnummer>
    <top:begintijd>0001-01-0112.23.00</top:begintijd>
    <top:eindtijd>0001-01-0114.45.00</top:eindtijd>
    <top:mixMatchNummer>1</top:mixMatchNummer>
    </top:IntMixMatchTijd>
    </top:intMixMatchTijdCollection>
    </top:IntMixMatch>
    </top:IntMixMatchCollection>
    Anybody any idea what could be wrong?
    Any ideas for a workaround/solution?

    I encountered this error while trying ADF tutorial CH10 - Developing an Edit Page, after changing some data on the Edit page and click on Save, the error appears on top of the page. The roll back was called implicatly by ADF, per stack trace msg it seems to come from failing to commit and then failing to roll back. Not sure why this is happening, please advise.
    WARNING: The method 'commit' cant be called when a global transaction is active. [TopLink Warning]: 2006.12.27 12:14:39.963--ClientSession(29795927)--Thread(Thread[HTTPThreadGroup-6,5,HTTPThreadGroup])--Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: The method 'commit' cant be called when a global transaction is active.Error Code: 0....
    at QPPublicFacade_LocalProxy_4ogao92.mergeEntity(Unknown Source)<----------> WHAT may cause mergeEntity failed??

  • Help on Starting Dreamweaver CS3...

    Dear webmates:
    I have been working with CS3 so happy because of the new
    features like Spry, etc. However, suddenly one day (without no
    change, because I only reseted my PC) appeared some messges as I
    open any fil in DW CS3, messages like these:
    "The following translators were not loaded due to errors:"
    Date.htm
    PHP_MySQL.htm
    Spry.htm
    XLST.htm
    XLST Transform.htm : has configuration that is invalid.
    What can I do ? please help me with this.

    Sw Jiten wrote:
    > I looked for that file... but there is no such name "
    *cache*.dat " not even
    > something similar,
    On a Windows machine, it's called WinFileCache-AD76BB20.dat,
    although
    the sequence of letters and numbers after the hyphen might be
    different.
    On a Mac, I think it's called MacFileCache-AD76BB20.dat.
    It's located in your user's configuration folder. For
    example, on
    Windows XP, it's at C:\Documents and
    Settings\<username>\Application
    Data\Adobe\Dreamweaver 9\Configuration, where
    <username> is your username.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Creating the DTD tag in an XML Documento

    I am using the Xalan XLST Transformer to generate XML documents.
    I want to include a DTD tag in each XML file and in my programs I create it using the following code:
    DocumentType dt = documento.getImplementation().createDocumentType(nombreDTD, nombreDTD, nombreArchivo);
    documento.appendChild(dt);
    ..The variable documento is the root element of the document, nombreDTD is the name identifying the root element tag, nombreArchivo is the name of the DTD file I want to reference.
    However when the XML output is generated, the DTD tag is always missing.
    Do anybody have any idea what might be causing this?
    Thanks,
    Color

    XSLT has its own method of putting the DTD information in the XML it creates. Include an xsl:output element in your XSL transformation like this:
    <xsl:output doctype-public="..." doctype-system="..." />

  • Problem Transforming XML to JSF tags

    I have a fealing there is something I don't know here,
    I am transforming XML into a JSP that include tags from taglib http://java.sun.com/jsf/html (prefix="h")
    This is an section from my stylesheet
    <xsl:template name="forename">
    <h:inputText>
    <xsl:attribute name="value">#{abyss.myCustomer.forename}</xsl:attribute>
    </h:inputText>
    </xsl:template>
    which transforms my XML to exactly what I expect if a was writting it directly as a jsp
    <h:inputText value="#{abyss.myCustomer.forename}"></h:inputText>
    but it still looks like this after it is rendered in the browser, and not like
    <input type="text" name="dataCapture:j_id_id199" value="Customer Name" />
    which is how it looks if I cut and paste the result of the transformation into a jsp, and run that by itself
    Does anyone have any idea was the <h:inputText does not evaluate the tag in the browser after the transformation ?
    Edited by: OB1 on Nov 23, 2007 1:46 PM
    Edited by: OB1 on Nov 23, 2007 2:43 PM

    Unfortunatly I do, my jsp is
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
    <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml_rt" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <html>
    <c:set value="${abyss.myBusinessServicePath}" var="xmldocpath"></c:set>
    <c:import url="${xmldocpath}" var="xmldoc"/>
    <c:import url="/xsl/transform.xsl" var="xslt"/>
    <x:transform xml="${xmldoc}" xslt="${xslt}"/>
    </html>

  • Need advice on using XML transformation tags in a JSF page

    Hello,
    I have created a connection to the National Weather Web service that return data in a XML string. I want to transform this string with XSLT but I'm not sure which tag library to use that is compatible with ADF.
    Thanks

    OC4J XML Taglib
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtAnchor.1005726/vtTopicFile.developing_with_ojsp%7Cxmlxsl%7Ehtml/

  • HTTP Header in JSF

    Hello,
    How do I pass (or set) HTTP header to a JSF page?
    Thanks
    Message was edited by:
    skethama

    Try this
    [http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm]
    Also the Stream Transformation Constants which we can access using Dynamic Configuration:
    [http://help.sap.com/javadocs/NW04S/current/pi/com/sap/aii/mapping/api/StreamTransformationConstants.html|http://help.sap.com/javadocs/NW04S/current/pi/com/sap/aii/mapping/api/StreamTransformationConstants.html]
    Edited by: Praveen Gujjeti on Apr 21, 2009 12:24 PM

  • Formatting dates in xsl transformation

    Hi:
    We have a problem transforming dates inside an xls mapping. Date and Time come from different fields in DDBB, so the straight way should be extract year, month and day from date, hour from time, concat everything together and finally push that string to format-DateTime. Well, that works except when hour is lower than 10, format-dateTime does not write a leading 0 (does not convert from '1' to '01'). We have tried everything, and found that using ora:formatDate works well when used in an Assign activity, but we cannot use that function inside the xls mapping we need. This is an example line:
    <xsl:value-of select="ora:formatDate('2001-01-01T1:00:00.000+01:00','yyyy-MM-dd HH:mm:ss')"/>
    BPEL message is "Invalid XPath expression"
    Does anybody know what are we doing wrong? This is driving me creasy..

    format that ora:formatDate uses is at http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    it is normal that you get "Invalid XPath expression" this is not a XLST function; user dateTime(date, time) instead. for futhermore info check it out at http://www.w3.org/TR/xpath-functions/#durations-dates-times

  • Transformation XML - abap

    dear abap experts,
    i currently want to read an xml file and convert it to an internal table in abap program.
    in sap help, i find TRANSFORMATION, but the example there is convert from data in abap to xml format.
    i have tried to convert from xml file to data in abap program and i face a short dump with error message XML_FORMAT_ERROR. do i need to make a proper structure for keeping my xml format ?
    or is there something miss in my program ?
    beside using transformation, is there any way to convert string that content xml file content to an internal table ?
    please advice
    regards
    eddhie

    <i>XML_FORMAT_ERROR</i>
    this happens if the XML is not well formed. to make sure its well formed, just copy paste the xml in question into a notepad and save it as .xml. now double click it, it should open in Internet explorer and show the xml in tree format. if the xml is not well formed, browser wont render it and throw error message.
    if the xml is a small document, post it here we can see whats wrong.
    to convert XML to ABAP you can use CALL TRANSFORMATION key word which will require to you do develope XLST program to do the conversion.
    of you can use FM SMUM_XML_PARSE.
    (search this forum, i have already provided code sample for this FM)
    Regards
    Raja

Maybe you are looking for

  • Sample application v2.0 question

    Oracle 10g ships with sample application v2.0 (#104) which lets you manage orders, products, customers and such. The application has an admin area which is visible only if you log in as admin. In this area you can add new admins or modify the existin

  • ProRes 4444 assets not compositing properly on export

    Hey there! Just trying Premiere out on my first project since jumping ship from FCP. All great thus far, but I'm having an issue with some ProRes assets which have an alpha channel.  They're some animated titles which were made in AE, which are suppo

  • JOB was scheduled every year APR-24

    Hi , Plz provide the DBMS_JOB code for JOB was scheduled every year APR-24

  • PXI-6534, Load onboard memory and enable looping

    I would like to program the PXI-6534 from a Linux application. I can talk to the card and set the registers. However, the Hardware DDK only contains information on the PXI-6533 (not the 6534), and there are two differences. The PXI-6534 has onboard m

  • After boot drive replacement questions

    My boot drive, on which the Lightroom 5 software was located, failed and I just got the boot drive replaced and downloaded Lightroom 5.  Fortunately my Lightroom 5 Catalog Previews, Catalog Preview.Irdata and all important Lightroom Library were loca