Invalid Template Definition DTD file

The integration Admin API which allows creation of workflow tempaltes and template
definitions programmatically takes an XML. The XML is supposed to conform to
the DTD file referenced here:
http://e-docs.bea.com/wli/docs70/classdocs/com/bea/wlpi/common/doc-files/TemplateDefinition.dtd
The problem I have is that this DTD is not well-formed. Try to validate it in
your favorite XML editor (e.g. XMLSpy or XMLWriter) to confirm this.
Is there a newer VALID version of this DTD that could be published? I'd like
to believe that Integration is using some DTD or better yet some XSD or schematron
file to validate the XMLs passed into the Admin APIs.
Thanks,
Ira

Hi Ira,
I spoke with engineering and you are correct, the admin bean is not
performing validation checks and there are no current plans for
validation. Due to ambiguities of the DTD, a meaningful DTD cannot be
produced, and instead would have to use a schema definition. Is this an
urgent issue for you? I can raise your concerns to product management
and have them address this in a future release. Please let me know what
changes you would like addressed in this area of the product.
Cheers,
Chris
Ira Work wrote:
Thanks Chris but these links point to the same malformed definitions I had found.
There may not be a valid dtd available because I tested deploying an invalid xml
instance (missing some required elements) and no validation was done by the Admin
API that takes this XML to create a Template Definition. The error in the definition
is not apparent until one attempts to run the workflow instance when the exception
I expected is thrown. If validation of the XML was being done in the implementation
of the Admin method that takes this XML, the exception would have been thrown
at the time of that method call.
So it's no wonder that the published DTD is not well formed, since the implementation
is not even doing validation.
Ira
Chris Stead <[email protected]> wrote:
Hi Ira,
Please try the following link:
http://e-docs.bea.com/wli/docs70/devclient/appa.htm#1016929
Other DTD formats for BPM can be found at:
http://e-docs.bea.com/wli/docs70/devclient/appa.htm#1006326
Cheers,
Chris
Ira Work wrote:
Does anyone in BEA answer questions in this newsgroup???
Please offer a location of a well-formed Template DTD file that couldbe used
for validating a template definition xml before submitting it for deploymentusing
the Admin API.
Thanks,
Ira
"Ira Work" <[email protected]> wrote:
The integration Admin API which allows creation of workflow tempaltes
and template
definitions programmatically takes an XML. The XML is supposed to
conform
to
the DTD file referenced here:
http://e-docs.bea.com/wli/docs70/classdocs/com/bea/wlpi/common/doc-files/TemplateDefinition.dtd
The problem I have is that this DTD is not well-formed. Try to validate
it in
your favorite XML editor (e.g. XMLSpy or XMLWriter) to confirm this.
Is there a newer VALID version of this DTD that could be published?
I'd like
to believe that Integration is using some DTD or better yet some XSD
or schematron
file to validate the XMLs passed into the Admin APIs.
Thanks,
Ira

Similar Messages

  • DTD files as external Definition

    Hi ,
    Read lot of threads on this which are having same problem ,some of them got solved none of them posted how did they succeded on those.
    i am getting error like Name "ds:Signature" is incorrect, when i tried to inport the .dtd file as external definition,so I did try converting dtd file to XSD ,it is creating the 3 xsd files and none of them are valid each one of them are error.But however the DTD file is valid .
    Using Invoicedetail DTD file for my scenario.
    you can download the file from http://cxml.org
    Please let me knw on this.
    Thanks,
    Madhu

    Hi,
    Here are the errors for the 3 xsd's
    1.     Value 'ds:Signature' is not allowed for attribute 'ref'.
              Hint: A valid value would be 'xml:lang'.
              Error location: xs:schema / xs:element / xs:complexType / xs:sequence / xs:element / @ref
    2.     Value 'ds:Signature' is not allowed for attribute 'ref'.
              Hint: A valid value would be 'xml:lang'.
              Error location: xs:schema / xs:element / xs:complexType / xs:sequence / xs:element / @ref
    3.                   Value 'xades:Identifier' is not allowed for attribute 'ref'.
              Hint: A valid value would be 'xml:lang'.
              Error location: xs:schema / xs:element / xs:complexType / xs:sequence / xs:element / @ref
    these errors are coming in xml spy when i tried to validate .
    Thanks,
    Madhu
    Edited by: madhu204 on Jul 23, 2009 4:54 PM
    Edited by: madhu204 on Jul 23, 2009 4:55 PM

  • How to convert DTD files into XML(template) by using Java ?

    I am a beginner to java,and want to convert a random DTD file
    into a XML template(having no data).
    any guys can give me some suggestions ?
    thanks very much

    DTD allow you to validate a XML file.
    To do so, you can use API such as dom or xalan.
    To transform an XML file from a vocabulary A to vocabulary B, you have to write a XSLT style sheet, and use xerces to perform the transformation.
    Using tools such as XSL-FO, you can transform your XML into PDF.

  • Ora-31001 invalid reference when enqueuing xmltype payload w/ dtd file ref

    We're using AQ to store xmltype payloads in an Oracle 10gR2 DB.
    We're able to enqueue normal XML payloads without issue, but recently we've attempted to enqueue XML with a DOCTYPE tag with reference to a dtd file. This results in an ora-31001 error stating the file reference for the dtd is invalid.
    We've tried moving the dtd around, but are unsure what the oracle dbms thinks is the base dir for the file reference.
    I've seen some documentation for xmldb that states the dtd must be located in reference to the xml doc, but as we are enqueueing an xmltype datatype in AQ I'm not sure how this can be applied. I've also seen documentation about using a dbms package to set the base url, but am also not sure how to apply it to this situation.
    Anyone able to tell me where I can drop this dtd so that Oracle can reference it when parsing the xml during an enqueue?
    Thanks!
    Tony

    Sorry didn't receive email notification of your response, or I would have replied sooner. Seems like that is happening on the forums sometimes.
    Here is a pl/sql block for enqueueing xml into a queue table with an xmltype payload:
    BEGIN
    declare
    enqOpts dbms_aq.enqueue_options_t;
    msgProps dbms_aq.message_properties_t;
    enqMsgid raw(16);
    begin
    dbms_aq.enqueue(
    queue_name => 'YOUR_QUEUE_NAME',
    enqueue_options => enqOpts,
    message_properties => msgProps,
    payload => XMLType (
    '<INSERT XML HERE>'),
    msgid => enqMsgId);
    commit;
    END ;
    END;
    /

  • Create a DTD file in path /bc/bsp/sap/smart_forms/smart_forms_xsf.dtd

    /bc/bsp/sap/smart_forms/smart_forms_xsf.dtdHello Gurus,
    Requirement
    I have a requirement to send the SMARTFORM pdf attachment in the form of a mail. It means the user will be able to look into the content of the PDF attachment of a smart form in the body of the mail. I found this standard program SF_XSF_DEMO which does exactly what I want. I can very well use the coding provided in this program to acheive what I want - send content of PDF attachment in the body of mail.
    Issue
    When I execute the standard program SF_XSF_DEMO I am finding that it is sending the mail to the email id specified in the selection screen of the program. The Mail is stuck in SOST where it is showing the email having data in required format - with logos, tables lines etc. But when I send the mail to the email id out of SOST it is received and I find there is formatting issue.
    The logo is not in the right place, the tables are not dispalyed but only the contents of the tables are displayed. It is not formatted in sequence. It is a continuous text.
    Then I found a PDF document
    http://www.erpgenie.com/sap/netweaver/images/SAP%20Smart%20Forms%20XSF%20-%20XML%20Output%20for%20Smart%20Forms%20for%20SAP%20Web%20Application%20Server%20610.pdf
    which explains step by step ways of working of this program. It also explains how the DTD <Document type definition> is used for this purpose.
    Question
    Please throw some light on how the DTD file to be created in the path bc/bsp/sap/smart_forms/smart_forms_xsf.dtd.
    I have content of the DTD that should go in to this path but how to upload it???
    I appreciate your help in advance.
    Regards
    Ram  

    I would like to know how the document type definition given in the PDF at page 25 and 26 can be uplaoaded as a DTD file in the required path,
    /bc/bsp/sap/smart_forms/
    The file to be put is smart_forms_xsf.dtd.
    Regards
    Ram

  • Invalid subckt definition name

    Not sure why the below errors occur. I created the attached IPD135N031.cir file from the OptiMOS3_30V_40V.lib file (changed to a txt file in order to post). I use the IPD135N031.cir file in the Select Simulation model > Load From File step 6 of the Component Wizard. 
    ------ Checking SPICE netlist for diode driver - Wednesday, May 18, 2011, 1:33:32 PM ------
    SPICE Netlist Error in schematic RefDes 'u1', element 'x1':  Invalid subckt definition name 's4_30_h_var'
    SPICE Netlist Error in schematic RefDes 'u1', element 'ipd135n03l__mosfet__2':  Due to errors, the subckt instance 'x1' has been omitted from the simulation
    SPICE Netlist Error in schematic RefDes 'u1', element 'xu1':  Not enough nodes found
    ======= SPICE Netlist check completed, 3 error(s), 0 warning(s) =======
    Thanks
    Attachments:
    IPD135N03L.cir ‏2 KB
    OptiMOS3_30V_40V.txt ‏489 KB

    Hi,
    In IPD135N031.cir file you attached, there is a line that starts with:
    X1  d1 g s Tj S4_30_h_var
    This line is a call command in spice, it's looking for another model called :s4_30_H_H_var.  You did not include the second model and that's why you got the error message.
    The attached file is the complete model.  I made one modification to the syntax that you should know about.  In the model, one of the expressions has a log function.  If left that way, Multisim will treat log()expression as ln(), otherwise you have to use log10.  I changed the expresssion to log10.
    Tien P.
    National Instruments
    Attachments:
    IPD135N03L_complete.txt ‏5 KB

  • Exception while importing waveset.dtd file in IDM

    Hi .
    I am trying to import waveset.dtd file in IDM am i got exception
    " An error occurred importing the file, although some of the file data may have been processed. ==> com.waveset.exception.XmlParseException: XML Error: 11:3: The markup in the document preceding the root element must be well-formed."
    actually i am trying to add Cc field for email template.

    I have never come across the scenario to import the DTD file?
    For email , you have to modify the template to incorporate the cc field

  • Idoc - DTD file  - schema

    Hi,
    In my outbound idoc scenario, i have to send idoc in XML format with schema.
    I don't know what schema is, if it's XSD file or other.
    My answers is:
    1) What is it schema (or XSD) file? I have to send always or just one first time?
    2) the DTD file which i can set in WE21 for XML port is the same thing? If not, which differents?
    Thanks lot.
    Matteo Vernile.

    Hi,
    1) What is it schema (or XSD) file? I have to send always or just one first time?
    schema is a definition of xml. It is metadata which describes what can be inside xml. You can find xsd in this transaction: WE60
    2) the DTD file which i can set in WE21 for XML port is the same thing? If not, which differents?
    DTD is another definition type but it's not the same as xsd.
    /wg

  • About ant tools dtd file

    An XML document that conforms to a given DTD or XML Schema can be said to be well formed according to the XML syntax rules and valid according to that DTD or XML Schema.
    Ant build files must be well formed XML documents. However, there are no formal DTD's or XML Schemas for Ant build files. Ant doesn't have DTD's or XML Schemas essentially because the rules for a valid Ant build file can change so easily. For example, Ant allows you to create your own types of XML elements and use them in your build files - which would immediately make your build file invalid according to the 'standard' DTD or XML Schema.
    QUESTION : if ANT doent have a dtd file , how it is decided that it is well
    formed or valid or wher r the rules defined ... please explain

    You cannot have a formal XML schema:
    http://www.theone.ru/lists/comp.lang.java.programmer/msg00560.html
    You can find an informal XML DTD or schema at
    http://www.sdv.fr/pages/casa/html/ant-dtd.en.html
    http://www.lal.in2p3.fr/cgi-bin/cvsweb/cvsweb.cgi/build/ant.dtd

  • DTD file?

    Hello,
    I got one DTD file from Client and i exported that file in external definition.
    when i check the message tab in external definition there is no message available.
    I tired to import the external definition, its giving error as Shipment has no message.
    Thanks and Regards,
    Chinna

    choose DTD as External format
    Selection Options in Messages List Box:message from DOCTYPE.
    A dtd can be referenced by other dtd.It is only possible to reference external definitions with the same namespace.see The External References tab page which lists the references found in the document .

  • Essbase Fatal Error: Invalid record in security file

    Hi,
    I'm newbie in Essbase, and I'm supporting Hyperion 7 for an pharmaceutical company.
    I have a serious problem with the Essbase services when I tried to start them.
    This message appears:
    Fatal Error: Invalid record in security file [16]
    I restarted the server but it's still doesn't work.
    I'll appreciate so much your quickly help.
    Regards.

    CL wrote:
    Easy, but unpleasant answer: your Essbase.sec file is probably, actually, almost definitely, bad.
    Some things you can try:
    1) Check to see if there is an Essbase.bak file in the Essbase\bin foler. If so, copy it to another name.
    2) Stop Essbase.
    3) Rename Essbase.sec to Essbase.sec.bad
    4) Rename Essbase.bak and start Essbase back up. You may have dodged a bullet.
    5) If #3 and #4 don't work for you, your best bet is to restore from tape.
    Regards,
    Cameron LackpourThe file essbase.sec is very easy to corrupt? We encountered this problem before but restored from essbase.bak.
    Any good practice to prevent similar problem?

  • OVM-5004 Invalid virtual machine config file.

    Hi,
    I'm getting this error message trying to import a VM to the Oracle VM Manager.
    1. OVM-5004 Invalid virtual machine config file.
    2. OVM-5004 Invalid virtual machine config file. -
    Config file: /etc/xen/vm.cfg
    # Automatically generated xen config file
    name = "VM3"
    memory = "2048"
    disk = [ 'file:/OVS/running_pool/VM3/System.img,xvda,w', ]
    vif = [ 'mac=00:16:3e:47:1d:90, bridge=xenbr0', ]
    vfb = ["type=vnc,vncunused=1"]
    uuid = "f6fd5c42-372f-bf12-4613-34e7ae570777"
    bootloader="/usr/bin/pygrub"
    vcpus=1
    on_reboot = 'restart'
    on_crash = 'restart'
    How can I fix it?

    Aftehr I thought I had resolve my problem, problem back.....
    It is the third time that I import that template and delete first 2 times, same template now give me that error when I try to import.
    When I try to import a new template, I obtain next error.
    OVM-5004 Invalid virtual machine config file. -
    I had next error in ovs_query.log file.
    "2010-01-04 16:37:24" INFO=> xen_hypervisor_info:success:mem_free=1470;vcaps=xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
    "2010-01-04 16:37:24" INFO=> get_rpm_version: success:agent_version=2.3-19
    "2010-01-04 16:37:24" INFO=> get_agent_version: success:agent_version=2.3-19
    "2010-01-04 16:37:25" ERROR=> get_vm_config: failed. vm_path('/OVS/seed_pool/OVM_EL5U3_X86_64_EBIZ12.1.1_APPS_VIS_PVM') => <Exception: failed:<Exception: vm.cfg does not exist under path: /var/ovs/mount/D378FE5B203A403988D3752CD8671581/seed_pool/OVM_EL5U3_X86_64_EBIZ12.1.1_APPS_VIS_PVM>
    StackTrace:
    File "/opt/ovs-agent-2.3/OVSXXenVMConfig.py", line 2602, in xen_get_vm_config
    raise Exception("vm.cfg does not exist under path: %s" % vm_path)
    >
    StackTrace:
    File "/opt/ovs-agent-2.3/OVSSiteVMConfig.py", line 1206, in get_vm_config
    raise Exception(rs)

  • RTF Templates and report file (.xdo)

    Hi all,
    I use Oracle report and I would like to migrate from that software to Oracle BI Publisher. During my tests, I encountered various problems like the following:
    I create my report (.xdo file is generated) in development with one RTF template. I load my template in the report and the system copy the rtf file is the same directory as the .xdo file. Also, the system modify the .xdo file to add a line like:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    When my report and template are ok, I update my customer to install them in production mode. When they are installed, my customer would modify the RTF template so he duplicates the RTF template, modify the file and load it in the report. Now, in the report, I have two lines:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    <template label="stkcinv2" type="rtf" url="stkcinv2.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    For my part, I modify the report in development to add a new value in the datamodel. Then I update another time my customer and erase the standard report by the new.
    the problem is that doing that, if I look at the .xdo file, I see that in the <templates> section, I have:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    So the templates loaded in the .xdo file is lost and my customer must reload it in the new report. If my customer has 100 reports, each time I update the soft, he will have to reload all templates... Amazing...
    How can I do to avoid that problem ?

    Well there appears to be a bug in the RTF generator.
    It appears that Oracle want to use paragraph left and right indentation properties to pad text in cells away from cell borders. There is a bug in the rtf reader in word that causes problems if cell padding properties are used so paragraph indentation appears a sensible work round.
    By default there appears to be a left hand indentation of 5 applied to all paragraphs in cells. If a left hand cell maring is applied to cells then the left hand cell margin in the report increases in size.
    However, right hand cell margins appear to be ignored and NOT written as attributes to cell paragraph text in the the generated report, and this causes problems when trying to print an RTF report as numbers in cells get clipped by cell borders.
    Edited by: user7137712 on 18-Mar-2010 03:21

  • How to register the .DTD file in Oracle Apps

    Hi,
    I am getting below error while generating XML file by concurrent program:
    Attaching XML file and .DTD file.
    Do I need to register this .DTD file somewhere?
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    System error: -2146697210. Error processing resource 'http://mbci-ebsdev.itciss.com/OA_CGI/label.dtd'.
    Below is the stored procedure I created to generate the XML file
    create or replace
    PROCEDURE Demo_XML_Publisher (errbuf VARCHAR2,retcode NUMBER,v_customer_id VARCHAR2)
    AS
    /*Cursor to fetch Customer Records*/
    CURSOR xml_parent
    is
    SELECT header_id,ordered_item
    FROM oe_order_lines_all
    WHERE header_id = v_customer_id;
    /*Cursor to fetch customer invoice records*/
    CURSOR xml_detail(p_customer_id NUMBER)
    is
    select a.order_number,a.header_id,a.order_type_id
    from oe_order_headers_all a,oe_order_lines_all b
    where a.HEADER_ID = B.HEADER_ID
    and a.header_id = p_customer_id
    AND ROWNUM<4;
    BEGIN
    /*First line of XML data should be <?xml version=”1.0??>*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="UTF-8"?>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<!DOCTYPE labels SYSTEM "label.dtd">');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<labels FORMAT="order.btw" PRINTERNAME="KIMBALL1872A" _QUANTITY="1">' );
    FOR v_customer IN xml_parent
    LOOP
    /*For each record create a group tag <P_CUSTOMER> at the start*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<label>');
    /*Embed data between XML tags for ex:- <CUSTOMER_NAME>ABCD</CUSTOMER_NAME>*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<HEADER_ID>' || V_CUSTOMER.header_id
    || '</HEADER_ID>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<ORDERED_ITEM>' || v_customer.ordered_item ||
    '</ORDERED_ITEM>');
    FOR v_details IN xml_detail(v_customer.header_id)
    LOOP
    /*For customer invoices create a group tag <P_INVOICES> at the
    start*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<P_INVOICES>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<variable name= "Order_no">' ||
    V_DETAILS.ORDER_NUMBER || '</variable>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<variable name= "Headr_Id">' ||
    V_DETAILS.HEADER_ID || '</variable>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<variable name= "Order_Type_Id">'||
    v_details.order_type_id||'</variable>');
    /*Close the group tag </P_INVOICES> at the end of customer invoices*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</P_INVOICES>');
    END LOOP;
    /*Close the group tag </P_CUSTOMER> at the end of customer record*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</label>');
    END LOOP;
    /*Finally Close the starting Report tag*/
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</labels>');
    exception when others then
    FND_FILE.PUT_LINE(FND_FILE.log,'Entered into exception');
    END Demo_XML_Publisher;
    Below is the Label.dtd file structure m using:
    <!ELEMENT labels (label)*>
    <!ATTLIST labels _FORMAT CDATA #IMPLIED>
    <!ATTLIST labels _JOBNAME CDATA #IMPLIED>
    <!ATTLIST labels _QUANTITY CDATA #IMPLIED>
    <!ATTLIST labels _PRINTERNAME CDATA #IMPLIED>
    <!ELEMENT label (variable)*>
    <!ATTLIST label _FORMAT CDATA #IMPLIED>
    <!ATTLIST label _JOBNAME CDATA #IMPLIED>
    <!ATTLIST label _QUANTITY CDATA #IMPLIED>
    <!ATTLIST label _PRINTERNAME CDATA #IMPLIED>
    <!ELEMENT variable (#PCDATA)>
    <!ATTLIST variable name CDATA #IMPLIED>
    Thanks in Advance

    In any case, the dtd is incorrect and that may be why. The element structure is at least look like this.
    <!ELEMENT labels (label*)>
    <!ELEMENT label (CUSTOMER_NAME?, HEADER_ID, ORDERED_ITEM, P_INVOICES*)>
    <!ELEMENT P_INVOICES (variable, variable, variable)>If you want to keep some flexibility on variable's cardinality, you can simply it like this.
    <!ELEMENT labels (label*)>
    <!ELEMENT label (CUSTOMER_NAME?, HEADER_ID, ORDERED_ITEM, P_INVOICES*)>
    <!ELEMENT P_INVOICES (variable+)>Then you add the appropriate ATTLIST for the elements.

  • Display Image on report through Field Definitions Only File.

    Hi all,
    I have a report where I work with Field Definitions Only files (ttx).
    These files are mapped to classes in code behind (csharp).
    In code behind I make lists of these classes. Each list is set as the datasource of a subreport.
    This works great!
    My new goal:
    Now I tried adding a picture to my report.
    In the TTX file I added a BLOB field.
    In the code-behind class I added a System.Drawing.Image.
    My actual problem:
    The class gets filled with the image, but the image is NOT displayed on the report
    Does anyone know why this is happening?
    How can I fix this? (should I use another Type in my class for the picture?) (should I format the picture in the report? ....)
    Kind regards,
    Wim

    Hi AG,
    Thanks for your response.
    This is my TTX field:
    Signature     BLOB          
    I can't see the image in the report because I create the image in code-behind.
    I think the problem doesn't occur in CrystalReports but in the conversion from my StrokeCollection (I use an InkCanvas [WPF] to capture a signature) to a ByteArray.
    I am already one step closer to the solution. You can't just assign an object of type Image to the BLOB field of the report but it has to be a Byte-Array.
    The problem I am facing now is that the picture is black after a conversion. (I see this when I export to disk and open the file in MSPaint).
    The good thing is that CR shows me a black image so I guess CR is doing its job!
    Kind regards,
    Wim

Maybe you are looking for