XML Won't Transform in Batch [JS, CS3]

When I use import xml manually into indesign, it works - but when I import it using the script below, it does not apply the transformation.
Any ideas?
with(app.activeDocument.xmlImportPreferences) {
        allowTransform = true;
        transformFilename = XMLTransformFile.STYLESHEET_IN_XML;
        createLinkToXML = false;
        ignoreWhitespace =true;
        ignoreUnmatchedIncoming = false;
        importCALSTables = true;
        importToSelected = false;
        allowTransform = false;
       importTextIntoTables = true;   
       repeatTextElements = false;
       removeUnmatchedExisting = false;
       importStyle = XMLImportStyles.MERGE_IMPORT;

arrgh, this was not was i wanted to test: it works with cs3 if you omit the with {} statement.
if you set the xmlImportPreferences direct it does work here.
app.activeDocument.xmlImportPreferences.allowTransform = true;
app.activeDocument.xmlImportPreferences.transformFilename = XMLTransformFile.STYLESHEET_IN_XML;
so this is not working:
var _file = File.openDialog ("Choose XML File");
with(app.activeDocument.xmlImportPreferences) {
        allowTransform = true;
        transformFilename = XMLTransformFile.STYLESHEET_IN_XML;
        //transformFilename = File.openDialog ("Choose XSL File");
app.activeDocument.importXML(_file);
but this works fine:
var _file = File.openDialog ("Choose XML File");
app.activeDocument.xmlImportPreferences.allowTransform = true;
app.activeDocument.xmlImportPreferences.transformFilename = XMLTransformFile.STYLESHEET_IN_XML;
//transformFilename = File.openDialog ("Choose XSL File");   
app.activeDocument.importXML(_file);

Similar Messages

  • How to update the value in xml file using transformer after setNodeValue

    Hi,
    This is my code
    I want to set update the values in xml file using transformer..
    Any one can help me
    This is my Xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <place>
    <name>chennai</name>
    </place>
    Jsp Page
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="javax.xml.parsers.DocumentBuilderFactory,
    javax.xml.parsers.DocumentBuilder,org.w3c.dom.*,org.w3c.dom.Element"
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <% String str="";
    String str1="";
    try
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse("http://localhost:8084/XmlApplication1/sss.xml");
    out.println("Before change");
    NodeList n11 = doc.getElementsByTagName("name");
    Node n22= n11.item(0).getFirstChild();
    str1 = n22.getNodeValue();
    out.println(str1);
    out.println("After change");
    String name = "Banglore";
    NodeList nlst = doc.getElementsByTagName("name");
    Node node= nlst.item(0).getFirstChild();
    node.setNodeValue(name);
    NodeList n1 = doc.getElementsByTagName("name");
    Node n2= n1.item(0).getFirstChild();
    str = n2.getNodeValue();
    out.println(str);
    catch(Exception e)
    out.println(e) ;
    %>
    <h1><%=str%></h1>
    <%--
    This example uses JSTL, uncomment the taglib directive above.
    To test, display the page like this: index.jsp?sayHello=true&name=Murphy
    --%>
    <%--
    <c:if test="${param.sayHello}">
    <!-- Let's welcome the user ${param.name} -->
    Hello ${param.name}!
    </c:if>
    --%>
    </body>
    </html>

    hi check this exit...
    IWO10012

  • Export xml in Batch with CS3

    Hi All
    Anybody have any script batch export in indesign cs3 which export the xml with using the option of "Remap, Break, Special character"
    Thanks in Advance
    Pramod Pant

    I am not a Resolve user, but could it be that Resolve has been set up for a 25fps project? And maybe the lite version restricts your frame size?
    Just curious.

  • XML to ABAP transformation

    Hi,
    I want to get my XML data into an internal table in ABAP. I use statement 'CALL TRANSFORMATION' for that, but i get an error named 'Error accessing the ref. node "EMPLOYEE"'.
    I don't get it. As far as i can see everything is correct, but when i process the code, it triggers this exception.
    Here's my XML i use:
    <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
    <batch>
      <header>     <molga>01</molga>     <usrty/>    <orgeh/>  </header>
      <body>
        <employee>
          <begda>01012010</begda>      <eindt>20100101</eindt>      <cdedt>99991231</cdedt>      <persg>1</persg>      <persk>01</persk>     <plans>54000029</plans>     <anrex>1</anrex>     <nachn>Leeraar</nachn>     <vorsw></vorsw>      <inits>M</inits>     <gbdat>19791205</gbdat>     <uansp>26</uansp>     <empct>100.00</empct>     <id>566</id>      <usrid_long>testATtest.com</usrid_long>     <lstar>CX123</lstar>     <werks>NL01</werks>
       </employee>
      </body>
    </batch>
    Here is the transformation:
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">
      <tt:root name="EMPLOYEE" type="ddic:ZTTRANS_EMPLOYEE"/>
      <tt:template>
        <batch>
          <header>
            <molga>
              <tt:skip/>
            </molga>
            <usrty>
              <tt:skip/>
            </usrty>
            <orgeh>
              <tt:skip/>
            </orgeh>
          </header>
          <body>
            <tt:loop ref="EMPLOYEE">
              <employee>
                <begda tt:value-ref="BEGDA"/>
                <eindt tt:value-ref="EINDT"/>
                <cdedt tt:value-ref="CDEDT"/>
                <persg tt:value-ref="PERSG"/>
                <persk tt:value-ref="PERSK"/>
                <plans tt:value-ref="PLANS"/>
                <anrex tt:value-ref="ANREX"/>
                <nachn tt:value-ref="NACHN"/>
                <vorsw tt:value-ref="VORSW"/>
                <inits tt:value-ref="INITS"/>
                <gbdat tt:value-ref="GBDAT"/>
                <uansp tt:value-ref="UANSP"/>
                <empct tt:value-ref="EMPCT"/>
                <id tt:value-ref="ID"/>
                <usrid_long tt:value-ref="USRID_LONG"/>
                <lstar tt:value-ref="LSTAR"/>
                <werks tt:value-ref="WERKS"/>
              </employee>
            </tt:loop>
          </body>
        </batch>
      </tt:template>
    </tt:transform>
    The dictionary type used has the fields with the same name.
    Please help.

    Hi,
    Have a look at this very useful link.
    http://searchsap.techtarget.com/generic/0,295582,sid21_gci1207657_mem1,00.html
    Here all the steps are given to pull data  into an internal table.
    You need to consider all the nested tabs and put them in different interanl tables and then link these interanl  tables.
    Regards,
    Subhashini

  • Batch actions CS3 (Only default?)

    When I try to do a batch action, the only action set offered is ONE "default set".  Which has vignettes, molten lead, gradients, etc.  I need to batch process a a folder of .pict images to .jpg
    It's been a long time since I used the batch feature, but I have done this process in the past (maybe years ago).
    Any idea what has happened to my action sets or how i might restore them?  I poked around in Time machine, but don't know enough about where to look.
    Photoshop CS3 Extended 10.0.1
    Thanks!!!

    Thanks very much for the workaround, Curt!
    I was able to complete my project with the image processor in Bridge.
    =======================================
    Next year when I have to do this again......I probably won't think to look in Bridge when it seems like
    the function ought to be in file > automate > batch?
    Can anyone tell me how to restore all of my original "action sets" to the Photoshop "file > automate > batch > ?

  • Error in xml to html transform function in 11g(Help needed urgent)

    We are migrating from 9g to 11g.Code given below is working fine with 9g but giving following error while converting xml to html.
    Error:Exception occurred in XML_TO_HTML :ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00609: Function call with invalid number of arguments in 'position (//USER)'.
    Code :<?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <HTML>
    <BODY>
    <!--begin header-->
    <xsl:for-each select="AMAP_REMMIT_EMP/HEADERS/HEADER">
    <TABLE border="0" cellpadding="0" cellspacing="0" style="padding:1px" width="100%" height="95" bgcolor="#EAEAEA"><font size="6" face="Arial">amdocs </font>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="VENDOR_NAME"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Date: <xsl:value-of select="RUN_DATE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="ADDRESS"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="TAX_ID"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="CITY"/> <xsl:value-of select="ZIP"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Vendor Number: <xsl:value-of select="OSEK_MURSHE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> </TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Fax Number: <xsl:value-of select="FAX"/>
    </TD>
    </TR>
    </TABLE>
    </xsl:for-each>
    <!--end header-->
    <!--begin lines-->
    <p dir="ltr" align="center">
    <span style="font-family: Arial; text-decoration: underline; font-weight: 700">
    Subject: Remittance Advice</span></p>
    <table border="1" cellspacing="1" width="100%" bgcolor="#C0C0C0">
    <tr>
    <th width="20%"><font face="Arial"><b>Invoice Date</b></font></th>
    <th width="20%"><font face="Arial"><b>Invoice Number</b></font></th>
    <th width="40%"><font face="Arial"><b>Description</b></font></th>
    <th width="20%"><font face="Arial"><b><xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/CURRENCY"/> Amount</b></font></th>
    </tr>
    <xsl:for-each select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE">
    <tr>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_DATE"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_NUM"/></td>
    <td width="40%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="DESCRIPTION"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="AMOUNT"/></td>
    </tr>
    </xsl:for-each>
    <tr>
    <td width="80%" bgcolor="#FFFFFF" colspan="3" align="right">
    <b>Total Payment:</b></td>
    <td width="20%" bgcolor="#FFFFFF"><xsl:value-of select="//TOTAL"/></td>
    </tr>
    </table>
    <p dir="ltr" align="left"><span style="font-family: Arial"><font size="2">In accordance with your instructions, this amount will be transferred to your <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES='Y'">
    account number <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/ACCOUNT"/> in bank
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BANK"/> , branch <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BRANCH"/>
    on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES!='Y'">
    account on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/CREDITNOTES/CREDITNOTE/CREDITNOTE>'0'">
    <p>The payment will be credited in two days from the payment date in your account.</p>
    </xsl:if>
    <p>In case this date is not a valid value date in the bank system, the money will be transferred in the next valid value date.</p>
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/NOTES/NOTE/DESCRIPTION"/>
    </font></span></p>
    <TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="50">
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" />Yours sincerely,</TD>
    </TR>
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/COMPANY_NAME"/></TD>
    </TR>
    <!--end lines-->
    <!--end trailer-->
    </TABLE>
    <table cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1; padding: 0" bordercolor="#111111" width="100%">
    <tr>
    <td width="34%">Alert No:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/ALERT_ID"/></td>
    <td width="33%">Environment: <xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/DB_NAME"/></td>
    <td width="33%">Date:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/MAIL_DATE"/></td>
    </tr>
    </table>
    <!--end trailer-->
    </BODY>
    </HTML>
    </xsl:template>
    </xsl:stylesheet>
    Thanks in advance.

    #1. We need to see the code that is being used to invoke the stylesheet.
    #2. We need to see the document that is being transformed...
    It's most likely a bug in 9g which has been fixed in 11g...

  • ABAP to XML File (Simple Transformation)

    Hi guys,
    this is my first question here and if I do something wrong please tell me about it.
    I created my own simple transformation which I use in my program:
    CALL TRANSFORMATION ZST_MAGAZYN_BB
         SOURCE lt_magazyn_rh = lt_magazyn_rh[]
                lt_mag_hdr = lt_mag_hdr[]
                lt_mag_hdr2 = lt_mag_hdr2[]
         RESULT XML xml_string.
    Then I tried to use GUI_DOWNLOAD on "xml_string" but there is no content in output xml file (but file's size is not 0kb):
    DATA:  xml_table TYPE STANDARD TABLE OF string.
    APPEND xml_string TO xml_table.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         filename = 'C:\rh.xml'
       TABLES
         data_tab = xml_table.
    I would really appreciate your help.

    Try to change the path where you're saving the file.
    I had the same problem once, it was authorization. I couldn't save in C:\ root.
    Change filename = 'C:\rh.xml'   to    filename = 'C:\TEMP\rh.xml'.
    Or try any other path, but C:\

  • Successful Read of XML File by Transforms Return Null

    Hi:
    I'm starting out with a simple BPEL process: Read an XML file, transform two fields. write an XML file. Both the read and write operations use the same .xsd file.
    I am successful at creating, compiling, deploying, and executing the process. The output file contains empty tags. In the BPEL Console and can see each activity. The read activity shows the data read from the input file, arranged as expected. The I conclude that this activity works correctly. Here is what I see when I drill down on the first activity:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <user-details>
    - <user-list>
    - <user>
    <first-name>test1</first-name>
    <last-name>abc</last-name>
    <gender>male</gender>
    <age>1</age>
    </user>
    </user-list>
    </user-details>
    The second activity shows empty values for the tags defined for the target variable. Here's what I see for the second activity, the Transform activity:
    <Invoke_WriteOut_Variable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="user-details"><user-details xmlns:ns0="http://www.example-irfan.org" xmlns="http://www.example-irfan.org">
    <ns0:user>
    <ns0:firstName/>
    <ns0:lastName/>
    <ns0:gender/>
    <ns0:age/>
    </ns0:user>
    </user-details>
    </part></Invoke_WriteOut_Variable>
    This second activity, the Transform, simply maps fields received from activity one too a new variable defined using the same .xsd as the first variable.
    The third activity writes to the output file. Here is that file:
    <?xml version="1.0" ?><user-details xmlns:ns0="http://www.example-irfan.org" xmlns="http://www.example-irfan.org">
    <ns0:user>
    <ns0:firstName/>
    <ns0:lastName/>
    <ns0:gender/>
    <ns0:age/>
    </ns0:user>
    </user-details>
    This is a "simple" 3-activity process, and I've reviewed it thoroughly. Can anyone help? It seems that the variable defined to accept the input xml file is not getting populated, although the process manager seems to say differently. Why would this be?
    Thanks.

    Thank you for your response. My problem and confusion indeed relate to the xsd file. I know this because I can take one of the sample processes and modify it to perform the simple task that I want: open an xml file, transform a field or two, write to a new xml file. Still I have not been able to understand what BPEL considers a "valid" xsd file. I have tried like heck to match my xsd file to match the sample, but it still doesn't work.
    So, my next question to anyone: does any documentation exist on the proper format for an xsd file? I have tried to take examples from on-line postings and blogs, but these don't work. It seems to me that the initial <schema> tag is the most important and that the http references in this tag are vital, but I can't tell for sure.
    Any suggestions are appreciated.

  • XMLTransform won't transform

    Ebay API sends back an XML response that starts like this:
    <FindPopularItemsResponse
    xmlns="urn:ebay:apis:eBLBaseComponents">
    When I do an XMLTransform on it, nothing shows until I remove
    the xmlns="... portion.
    Anybody have a way to do this on the fly or someway of
    getting XMLTransform to work with that bit still in there?

    1) create an XSL file called removeNamespacesAndPrefixes.xsl
    with the following code:
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="no"/>
    <xsl:template
    match="/|comment()|processing-instruction()">
    <xsl:copy>
    <!-- go process children (applies to root node only)
    -->
    <xsl:apply-templates/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="*">
    <xsl:element name="{local-name()}">
    <!-- go process attributes and children -->
    <xsl:apply-templates select="@*|node()"/>
    </xsl:element>
    </xsl:template>
    <xsl:template match="@*">
    <xsl:attribute name="{local-name()}">
    <xsl:value-of select="."/>
    </xsl:attribute>
    </xsl:template>
    </xsl:stylesheet>
    2) create a CFM template with the following:
    <cffile action="read"
    file="#ExpandPath('.')#/file_with_node_namespaces_and_prefixes.xml"
    variable="XMLDoc">
    <cfset transformedXML = XmlTransform(XMLDoc,
    "removeNamespacesAndPrefixes.xsl") />
    <cfoutput>
    <xmp>
    #transformedXML#
    </xmp>
    </cfoutput>

  • Optional attributes in XML to ABAP transformation

    Hi,
    I have to deserialize (transformation xml to abap) an xml input file.
    I want to use SAP ST (Simple Transformations).
    This xml format is using attributes
    Such attributes can be transformed in ST with
    <tt:attribute name="item_id" value-ref="MATNR"/>
    I realized 2 problems:
    1. If the xml file does not contain every attribute which is in the transformation.
    This can be solved by tt:cond
    Sample
              <tt:cond>
                <tt:attribute name="uom" value-ref="BASE_UOM"/>
              </tt:cond>
    Now attribute uom is optional. Without the tt:cond the ST prragrom would throw exception if it is not in the file.
    2. If the xml file contains an attribute which is not used in the transformation.
    I tried to use tt:skip but it is not working for "<tt:attribute name= ... value-ref=... name" but only for "<tt:value-ref=...".
    I only want to get the values I need out of the parameter list.
    How can I achieve this without defining a transformation for every parameter in the xml file?
    Thanks and regards
    Michael

    Hi,
    thanks for reply. It took me into the right direction. You have to distinguish between elements (ordered structured nodes) and attributes (unordered structured nodes). In my case they are using attributes for the values of a material master.
    Here is a snippet (sample of the XML):
    <?xml version="1.0" encoding="utf-8"?>
    <TcPLMXML>
      <TCifEngPart item_id="1-3000-3630-00"
                   seMaterialType="HALB"
                   uom="ST"
                   seWeight="2000.0" seWeightUnit="KG">
      </TCifEngPart>
      <TCifEngPart item_id="1-30000-41002-00"
                   seMaterialType="HALB"
                   uom="ST"
      </TCifEngPart>
    </TcPLMXML>
    and my transformation:
          <tt:loop ref="MATERIAL_LIST">
            <TCifEngPart>
              <tt:attribute name="item_id" value-ref="MATNR"/>
              <tt:attribute name="object_name" value-ref="MATL_DESC"/>
              <tt:attribute name="seMaterialType" value-ref="MATL_TYPE"/>
              <tt:attribute name="uom" value-ref="BASE_UOM"/>
              <tt:cond>
                 <tt:attribute name="seLength" value-ref="LENGTH"/>
                 <tt:attribute name="seWidth" value-ref="WIDTH"/>
                 <tt:attribute name="seHeight" value-ref="HEIGHT"/>
              </tt:cond>
              <tt:skip>
                 <tt:attribute name="seWeight" />
                 <tt:attribute name="seVolume" />
              </tt:skip>
            </TCifEngPart>
          </tt:loop>
    Length, width and hight are optional in the XML and will be transferred to the corresponding SAP fields if they are in the input file Weight and volume will be ignored.
    This means all attributes I don't need I have to put within the tt:skip.
    Without this skip the transformation throws an error.
    In consequence if the partner system add new attributes I have to enhance the transformation in SAP.
    Is there any other way?

  • Convert XML Code into Transformation

    Hi,
    I am currently trying to convert this xml string back to my structure but i have been unsuccessful so far using tcode STRANS. Initially i keep getting illegal operation but now i manage to retrieve only part of my xml data.
    my XML string:
    <?xml version="1.0" ?>
    - <Root>
    - <Transaction_Status>
      <Status>Success</Status>
      <Description>No. of records found = 6</Description>
      </Transaction_Status>
    - <Processing_Exceptions>
    - <Report>
    - <Record>
      <Reason>Validation failed for pan field</Reason>
      <Field_Name>ID_PAN_CARD</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>Validation failed for passport field</Reason>
      <Field_Name>ID_PASSPORT</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>Father name field is null</Reason>
      <Field_Name>NULL</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>Pin field is null</Reason>
      <Field_Name>NULL</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>Invalid Mobile Number</Reason>
      <Field_Name>MOBILE_NUM</Field_Name>
      <Field_Value />
      </Record>
    - <Record>
      <Reason>CITYISNULL</Reason>
      <Field_Name>DC_CITY</Field_Name>
      <Field_Value />
      </Record>
      </Report>
      <Reject />
      </Processing_Exceptions>
    - <Output>
    - <Record>
      <search_id>2861</search_id>
      <MATCHED_CUSTOMER_ID>100268</MATCHED_CUSTOMER_ID>
      <defined_match_criteria>[INDV_NAME:70]</defined_match_criteria>
      <actual_matched_criteria>(INDV_NAME : 96.15 )</actual_matched_criteria>
      <CUSTOMER_ID>100268</CUSTOMER_ID>
      <INDV_NAME>BIJENDER SINGH</INDV_NAME>
      <FATHER_NAME />
      <CUR_CITY>DELHI</CUR_CITY>
      <CUR_STATE>DELHI</CUR_STATE>
      <CUR_PIN>110041</CUR_PIN>
      <MOBILE_NUM />
      <ID_PAN_CARD />
      <CUR_PHONE />
      <BIRTH_DATE />
      </Record>
    - <Record>
      <search_id>2861</search_id>
      <MATCHED_CUSTOMER_ID>115993</MATCHED_CUSTOMER_ID>
      <defined_match_criteria>[INDV_NAME:70]</defined_match_criteria>
      <actual_matched_criteria>(INDV_NAME : 100.0 )</actual_matched_criteria>
      <CUSTOMER_ID>115993</CUSTOMER_ID>
      <INDV_NAME>BIRENDER SINGH</INDV_NAME>
      <FATHER_NAME />
      <CUR_CITY>GURGAON</CUR_CITY>
      <CUR_STATE>HARYANA</CUR_STATE>
      <CUR_PIN>122001</CUR_PIN>
      <MOBILE_NUM>9813736856</MOBILE_NUM>
      <ID_PAN_CARD />
      <CUR_PHONE />
      <BIRTH_DATE>1979-08-26 00:00:00.0</BIRTH_DATE>
      </Record>
    </Output>
      </Root>
    Please help . Thanks in Advance.
    Regards,
    Nilesh

    Hi Sandra,
    Thanks for Reply.
    I have create XSLT code like
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
    <xsl:strip-space elements="*"/>
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
      <asx:values>
        <xsl:for-each select="//Root/Output/Record">
          <item>
            <CUSTOMER_ID>
              <xsl:value-of select="CUSTOMER_ID"/>
            </CUSTOMER_ID>
            <INDV_NAME>
              <xsl:value-of select="INDV_NAME"/>
            </INDV_NAME>
            <FATHER_NAME>
              <xsl:value-of select="FATHER_NAME"/>
            </FATHER_NAME>
            <CUR_CITY>
              <xsl:value-of select="CUR_CITY"/>
            </CUR_CITY>
            <CUR_STATE>
              <xsl:value-of select="CUR_STATE"/>
            </CUR_STATE>
            <CUR_PIN>
              <xsl:value-of select="CUR_PIN"/>
            </CUR_PIN>
            <MOBILE_NUM>
              <xsl:value-of select="MOBILE_NUM"/>
            </MOBILE_NUM>
            <ID_PAN_CARD>
              <xsl:value-of select="ID_PAN_CARD"/>
            </ID_PAN_CARD>
            <CUR_PHONE>
              <xsl:value-of select="CUR_PHONE"/>
            </CUR_PHONE>
            <BIRTH_DATE>
              <xsl:value-of select="BIRTH_DATE"/>
            </BIRTH_DATE>
          </ITEM>
    </ABAP>
    </xsl:transform>   
    and calling program like
    TYPES: BEGIN OF i_det,
            CUSTOMER_ID(10),
            INDV_NAME(20),
            FATHER_NAME(20),
            CUR_CITY(15),
            CUR_STATE(15),
            CUR_PIN(06),
            MOBILE_NUM(10),
            ID_PAN_CARD(18),
            CUR_PHONE(10),
            BIRTH_DATE(10),
           END OF i_det.
    DATA: i_data TYPE TABLE OF i_det,
          w_data type i_det.
    DATA: xml_string TYPE string." type ref to cl_fx_reader .
    DATA: xslt_error  TYPE REF TO cx_xslt_exception,
    xslt_message  TYPE  string .
    try .
        call transformation ('ZXSLT_CODE')
        source xml  xml_string
        result     i_data = i_data.
      catch cx_xslt_exception into xslt_error.
        xslt_message = xslt_error->get_text( ).
    endtry.
    Waiting for Response.
    Regards,
    Nilesh

  • Xml header in transformation strans

    Hello,
    I would like to create an xml file with the following header information:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <tem:mygesttem>
    <tem:mytem>
    So, I have created the following piece of code in transaction STRANS:
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    <tt:root name="ROOT"/>
    <tt:template>
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <tem:mygestem>
    <tem:mytem>
    However, as soon as I launch it with CALL TRANSFORMATION in my ABAP program the xml file is different from I would expect:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Body>
    <tem:mygestem xmlns="http://tempuri.org/">
    <tem:mytem>
    Could anyone tell me why the header is different from expected?
    Thank you,
    Oscar

    Any ideas? please.

  • Xml validation and transformation in a row: Possible?

    Hi.
    I'm working on a small tool that uses javax.xml.validation and javax.xml.transform (JDK 6) to perform validation and transformation of xml files in a row.
    The problem is, the namespaces and reference to the xml schema required by the validator somehow prevent the transformation from extracting data from the xml file.
    Here's the header I use in the xml file:
    <tagWhatever
    xmlns="http://www.myPlace.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.myPlace.com mySchema.xsd">To sum it up, with the namespace declaration within the xml I can validate but not transform, and without the declaration, I can transform but not validate.
    Can anyone help me out witht this one?
    Thanks
    5thString

    Hi.
    I'm working on a small tool that uses javax.xml.validation and javax.xml.transform (JDK 6) to perform validation and transformation of xml files in a row.
    The problem is, the namespaces and reference to the xml schema required by the validator somehow prevent the transformation from extracting data from the xml file.
    Here's the header I use in the xml file:
    <tagWhatever
    xmlns="http://www.myPlace.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.myPlace.com mySchema.xsd">To sum it up, with the namespace declaration within the xml I can validate but not transform, and without the declaration, I can transform but not validate.
    Can anyone help me out witht this one?
    Thanks
    5thString

  • Xml to jsp transformation

    Hi All,
    I have an xml file created from database which contains certain fields in french.
    Now using this file as input source and a xsl file i am creating a jsp. In the xml file all the french characters appear as in database, but after transformation into jsp i get encoding problems.
    I am using StringBuffer and FileOutputStream to write to the xml file.
    If I donot change the transformer OutputProperty my jsp displays fine in web server but French characters are all messed up.
    If I use "utf-16" encoding in transformation
    i.e if i set the transformer as follows:
    transformer.setOutputProperty("encoding", "utf-16");
    characters in the jsp generated are all correct but I cannot bring up my jsp in web server.
    Any suggestions please.
    Thanks
    Rajeev

    Okay, you know how to set the encoding in the transformer. That's one step. Another step is, you have to set the encoding in your OutputStream to be the same. You haven't showed how you're using your OutputStream, you just said you were using a FileOutputStream which surely must be a misprint, as the rest of your post suggests you are sending the XML to the JSP's response. Also, you have to set the encoding of your HTTP response to be the same encoding you used everywhere else, using its setCharacterEncoding() method.
    I would suggest ISO-8859-1 for your encoding, since that covers all Western European characters and all browsers understand it.

  • Input xml from output xml with reverse transformation

    I have the transformation and the output xml file. Is there any way I get the input message using the trasformation and output message with minor manual changes? Is there any tool for that?

    Hi Ragavalli,
    I understand that you want to archive the incoming message before map is applied. (Assuming map is not to be there on send port as not very clear about restrictions you have)
    There are two ways:
    1. Use of Custom pipeline component to archive message . You can find one at :http://biztalkarchiving.codeplex.com/
    2. The other option is to have
     Recieve port without map
     Two send port one  pointing to Archive folder  and other to temporary folder (intermediate)location
     Add both the send port to Send Port group. Have filter on it as BTS.PortName = ReceivePortName
     Create a receive port with temporary folder as receive location 
     Apply the inbound map on this port
    If map can be allowed on send port then
    1. Rec port without map
    2. Two send port, one without map other with map. 
    Thus original message will be saved by Send Port 1 and transformed by Send Port 2
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    Server : Scheduling Orchestration using Trigger Message

Maybe you are looking for

  • Missing Tools, no 'Customize' button

    I have Acrobat XI 11.0.06 at work, where I make extensive use of the highlighter tool, Text Recognition tool, and Add Text tool. How do I get these tools on my home version? I have a highlighter button, but there is no Text Recognition tool on the si

  • I web not displaying correctly in Explorer

    Hi guys,                I've just uploaded my website , (to Go Daddy) created on iweb (09) and it is perfect in Safari but looks dreadful in Internet Explorer on my PC and a little funky in Firefox. In Explorer on my PC (Windows7) boxes are in the wr

  • Urxvt can't display certain Unicode arrow characters

    For some of the arrow characters in Unicode, specifically the codepoints 2900 to 2AFF, urxvt shows slim boxes, but for other characters it works. I am using a font that supports the glyphs, gnu unifont from the bdf-unifont package. Here is my .Xresou

  • Which permissions required for using CAF External Service Configuration?

    Hello, I have written an application service which invokes an external RFC. To this end, I have imported the desired RFC as external service and wrapped it as an application service. However, when invoking this application service I get an error mess

  • My Adobe Pro seems to loggin but does not????

    When I open my adobe Pro and want to Zend my revision en store this on my cloud account (cloud work space) the option to enter my workspace is not available in Adobe?? Although I'm logged in, I cannot loguit any more , zo after a paswwd change The ad