[JS][CS3] Trying to use XSL to transform a XML document

I´m trying to do a script to format my XML in a particular way. The XSL document is ok because I´ve used this document to format an XML document in Indesign CS3 and works fine.However, when I´m trying to use this document in my scripting method I can´t obtain my XML formatted. I´ve tried it many times but I really don´t know where is the problem.
I´ve changed the XMLExportPreferences (allowTransform,TransformFileName)in my scripting method before exporting my XML in order to obtain a formatted XML.
Anyone have any idea? What are the steps to make this work?
Thank u,
Peter

I'm having a similar problem but with importing XML. When I run this script I get a dialogue saying that "Stylesheet 'Macintosh HD:Users:myFolder:transform.xsl, specified in the XSLT processing instruction can not be found." But this is the location of the stylesheet??
Here's the entire script (a combination of Adobe samples):
main();
function main(){
mySetup();
mySnippet();
function mySetup(){
var myDocument = app.documents.add();
var myRootXMLElement = myDocument.xmlElements.item(0);
var myXMLTag = myDocument.xmlTags.add("body");
var myXMLElement = myDocument.xmlElements.item(0).xmlElements.add(myXMLTag);
myDocument.select(myXMLElement);
//Sets XML import options.
var myXMLImportPreferences = myDocument.xmlImportPreferences;
myXMLImportPreferences.createLinkToXML = false;
myXMLImportPreferences.ignoreUnmatchedIncoming = false;
myXMLImportPreferences.ignoreWhitespace = true;
myXMLImportPreferences.importCALSTables = true;
myXMLImportPreferences.importStyle = XMLImportStyles.mergeImport;
myXMLImportPreferences.importTextIntoTables = false;
myXMLImportPreferences.importToSelected = true;
myXMLImportPreferences.removeUnmatchedExisting = false;
myXMLImportPreferences.repeatTextElements = true;
myXMLImportPreferences.allowTransform = true;
myXMLImportPreferences.transformFilename = File("/Users/myFolder/transform.xsl");
myDocument.importXML(File("/Users/myFolder/document.xml"))
function mySnippet(){
var myDocument = app.documents.item(0);
myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
myDocument.xmlElements.item(0).xmlElements.item(0).placeIntoFrame(myDocumen pages.item(0), [35, 35, 758, 576]);

Similar Messages

  • How to use OAF transform sotred xml documents using XSLT...

    Does anyone have any experience using XSLT in OAF? Specifically, I have xml documents stored in a clob to which I wish to apply an XSLT transformation and then store the transformed documents back into the clob. Is there a way to apply an XSLT transformation using say BI-Publisher via OAF?

    "XML DIFF" are the keywords you can use to search for products that do this. Last time I looked there was a lot of XML Diff implementations, but none of them produced human-readable output that I really liked. I expect that's because XML diff is an easy thing for people to ask for but not an easy thing to do, given the considerable number of ways there are to change a document.

  • Is there a way to modify the style sheet so that it transforms an XML document with empty tags as tag / ?

    I have extracted some code from codeproject to
    reindent an XML document. Does anyone know how I can modify the stylesheet to make it so that the transform of an XML file will result in empty tags showing up as <tag /> instead of <tag></tag>?
    // http://www.codeproject.com/Articles/43309/How-to-create-a-simple-XML-file-using-MSXML-in-C
    MSXML2::IXMLDOMDocumentPtr FormatDOMDocument(MSXML2::IXMLDOMDocumentPtr pDoc)
    LPCSTR const static szStyleSheet =
    R"!(<?xml version="1.0" encoding="utf-8"?>)!"
    R"!(<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">)!"
    R"!( <xsl:output method="xml" indent="yes"/>)!"
    R"!( <xsl:template match="@* | node()">)!"
    R"!( <xsl:copy>)!"
    R"!( <xsl:apply-templates select="@* | node()"/>)!"
    R"!( </xsl:copy>)!"
    R"!( </xsl:template>)!"
    R"!(</xsl:stylesheet>)!";
    MSXML2::IXMLDOMDocumentPtr pXmlStyleSheet;
    pXmlStyleSheet.CreateInstance(__uuidof(MSXML2::DOMDocument60));
    pXmlStyleSheet->loadXML(szStyleSheet);
    MSXML2::IXMLDOMDocumentPtr pXmlFormattedDoc;
    pXmlFormattedDoc.CreateInstance(__uuidof(MSXML2::DOMDocument60));
    CComPtr<IDispatch> pDispatch;
    HRESULT hr = pXmlFormattedDoc->QueryInterface(IID_IDispatch, (void**)&pDispatch);
    if (SUCCEEDED(hr))
    _variant_t vtOutObject;
    vtOutObject.vt = VT_DISPATCH;
    vtOutObject.pdispVal = pDispatch;
    vtOutObject.pdispVal->AddRef();
    hr = pDoc->transformNodeToObject(pXmlStyleSheet, vtOutObject);
    //By default it is writing the encoding = UTF-16. Let us change the encoding to UTF-8
    // <?xml version="1.0" encoding="UTF-8"?>
    MSXML2::IXMLDOMNodePtr pXMLFirstChild = pXmlFormattedDoc->GetfirstChild();
    // A map of the a attributes (vesrsion, encoding) values (1.0, UTF-8) pair
    MSXML2::IXMLDOMNamedNodeMapPtr pXMLAttributeMap = pXMLFirstChild->Getattributes();
    MSXML2::IXMLDOMNodePtr pXMLEncodNode = pXMLAttributeMap->getNamedItem(_T("encoding"));
    pXMLEncodNode->PutnodeValue(_T("UTF-8")); //encoding = UTF-8
    return pXmlFormattedDoc;
    Or, if there is some other method for reindenting a MSXML2::IXMLDOMDocumentPtr object where I can specify how I want empty tags to be stored, that would be great too.  However, I don't want it to lose its status of an MSXML2::IXMLDOMDocumentPtr object.
     I.e. I would like to still perform operations on the result as if it was still an MSXML2::IXMLDOMDocumentPtr object.
    Thanks,
    A
    Adrian

    If anyone is interested, I got an answer on StackOverflow
    here.
    Adrian

  • Is the transformation between XML document and 2 dimensions table important?

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks!

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks! That is all oracle XDK is for. You can transform query results to xml and xml back into RDBMS. Infact Oracle provides much more flexible way than a DB2 extender does. In DB2 you need to give a DAD before you get any XML. Oracle relies on the direct transformation of query results into XML and adds flexibility of XSL ontop of the data.
    You can get more information on XML technology section of OTN.
    Once you write the article can we get a chance to see it.

  • How to use java to create an XML document from an SQL database?

    Hi,
    I'm a complete novice at XML and have only recently started programming in Java.
    I'm currently trying to develop a package in Java 1.1.8 which requires a set of very specifically formatted XML documents. These documents would need to be updated regularly by people with no knowledge of Java and I would like to make it as simple as possible.
    Since the data will already be in an SQL database, I thought it might be possible to generate the XML documents from the data using a small Java application, but I'm not too sure how to go about this or if this is even possible! Any help or pointers in the right direction would be very much appreciated.
    Louise

    Do you have the option of upgrading to a newer version of the JDK?
    JAXB does what you are wanting very easily. Also there are tools if you don't want to write your own. JAXB is available as early release on Sun's site as is the newest JDK. Otherwise, you have to design a factory and interface that will do this for you (which is what JAXB basically is in a very simplified view).

  • Transforming signed XML document with namespace invalidates signature

    I am running into a problem signing an XML document. Well, signing the document isn't the problem, as I can sign it and then verify the signature with the public key successfully. The problem comes when I transform the document to a string. It all appears to be OK, but when I transform it back, the hash no longer verifies. After more testing, it appears that the issue is related to namespaces. When I remove namespaces from the document, the signing and transformations work just fine. Does anyone have any insight on this?
    Here is how I am transforming the document to an XML string that I and back.
        try
          signSAML( doc, assertionElement );
          xmlSource = new DOMSource( doc );
          baos = new ByteArrayOutputStream();
          outputTarget = new StreamResult( baos );
          xmlString  = new String( new ByteArrayInputStream( baos.toByteArray() ) );
          transformerFactory = TransformerFactory.newInstance();
          transformer = transformerFactory.newTransformer();
          transformer.transform( xmlSource, outputTarget ); 
          boolean verified = verify( doc );
          if ( verified )
            System.out.println( "Verified" );
          else
            System.out.println( "UNVerified" );
        catch ( Exception e )
          // TODO Auto-generated catch block
          e.printStackTrace();
        }

    jtahlborn wrote:
    i'm not talking about the transform, i'm talking about this line:
    xmlString  = new String( new ByteArrayInputStream( baos.toByteArray() ) );which is a great way to break xml data.Yes. That's not the only kind of data it's good at breaking, either.
    To the OP: just have your transform output to a StringWriter in the first place. Don't muck about converting between chars and bytes unless you know the correct encoding and use it. Which you don't know it and you didn't use it.

  • How do I using Workshop's XMLMap Defined XML Document ?

    Hi ,
    I wonder that how can call the Workshop's XMLMap Defined Document in Java
    Application Client.
    I need to get not returned Object but returned XML Document in Java
    Application Client.
    Regards.

    Here's a more complete example:
    * @jws:operation
    public org.w3c.dom.Document getPurchaseOrderAsDocument() throws org.xml.sax.SAXException
    Document doc = null;
    try
    DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = fact.newDocumentBuilder();
    doc = db.parse(new InputSource(new FileInputStream(new File("c:/temp/mypo.xml"))));
    catch (IOException ioe)
    throw new SAXException("IO exception occurred", ioe);
    catch (ParserConfigurationException pce)
    throw new SAXException("JAXP Parser configuration exception occurred", pce);
    return doc;
    HTH,
    Mike Wooten
    "dudwnrla" <[email protected]> wrote:
    Hi ,
    I wonder that how can call the Workshop's XMLMap Defined Document in
    Java
    Application Client.
    I need to get not returned Object but returned XML Document in Java
    Application Client.
    Regards.

  • ENTITIES and transforming XML to XML/HTML using XSL

    I am going absolutely nuts. When using XSL to transform an XML
    file to HTML or another XML schema, critical entities dissappear.
    For example:
    <oldtag>press &quot;any&quot; key</oldtag>
    will get rendered to
    <newtag>press "any" key</newtag>
    by the XML/XSL parser, which is not valid HTML or XML.
    How do I preserve these entities through the transformation
    process. Escaping the text (in the XML source) with <![CDATA[]]
    is not possible in this case.--Michael
    null

    Assuming you can't use a CDATA in the DTD to prevent parsing,
    then my suggestion would be to use the XSL stylesheet to restore
    the entities as there is no way that I am aware of that will set
    conditional expansion.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Michael Van Auken (guest) wrote:
    : I am going absolutely nuts. When using XSL to transform an
    XML
    : file to HTML or another XML schema, critical entities
    dissappear.
    : For example:
    : <oldtag>press &quot;any&quot; key</oldtag>
    : will get rendered to
    : <newtag>press "any" key</newtag>
    : by the XML/XSL parser, which is not valid HTML or XML.
    : How do I preserve these entities through the transformation
    : process. Escaping the text (in the XML source) with <![CDATA
    : > is not possible in this case.
    : --Michael
    null

  • XSL-1009 error in XML to XML using XSL

    I'm using XSL to transform one XML format to another using and XSL transform file. I'm initiating this with ORAXSL in.xml transform.xsl out.xml. The XSL file has in it:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.oracle.com/XSL/Transform/Java" version="1.0">
    <xsl:import href="../generic/parsePOHeader.xsl"/>
    <xsl:import href="../generic/parsePOLine.xsl"/>
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    ORAXSL gives an error of XSL-1009: Attribute xsl:version not found in XSL:Stylesheet.
    Putting an XSL: prefix on the version doesn't help. A search for help on this site had a solution for XSL that create HTML.
    Has anyone else solved this problem?

    Thanks everyone for th ereply. Yes, I tested the mapping in integration bulider and it works fine. Even the file conversion works fine intermittantly! Sometimes it converts successfully and wrties file to target location and sometimes I get this error. I checkd in sxi_cache and I see the mapping xsl files there. I jus had basis reboot PI server and run some cache commands but still same problem! Also, when I have to files in source directory sometimes it converts both, sometimes one and sometimes both fails! I haveno clue what els to try.
    What are adapter nodes and wher can I check for that?
    Thanks.
    Mithun

  • BI publisher concurrent comes back with warning trying to use PL/SQL

    Hello,
    I am new to BI publisher and I am trying to use PL/SQL to generate XML and have the Publisher display the report with a template I have created. The concurrent is completing with a warning and from looking at the other forum posts I found the following in the OPP error logs...
    Template code:XML_TEST
    Template app: XML
    Language: en
    Territory: 00
    Output type: RTF
    [3/2/11 2:27:37 PM] [393078:RT2163613] Output file was found but is zero sized - Deleted
    [3/2/11 2:27:37 PM] [UNEXPECTED] [393078:RT2163613] java.lang.reflect.InvocationTargetException
    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:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:611)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:239)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
    Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'ref' used but not declared.
    at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
    at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
    ... 17 more
    I am pretty sire the PL/SQL is OK beacuse if I run without a template the XML output is displayed as expected.
    Would anyone have any ideas on this?

    Here's your problem:
    "Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'ref' used but not declared.
    at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
    at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
    What version of BIP Desktop are you using? From the error message it appears to be Template builder for Word 11.1.1.3. eBS is probably using 5.6.3 .
    Try this - edit the fields in the template using MS Word. Under Help or Status, remove tags that contain <?ref.....?>. Save and upload the template.
    Hope this helps. If this works, please don't forget to give me points for the right answer.

  • Example xsl to transform database table to xml

    Hi All,
    I am looking for sample xsl to transform database table to xml.
    Thanks in Advance.

    ODI does not use XSL for transforming DB Data into XML.
    It uses a built-in JDBC Driver for XML files. The XML file appears like a DB Engine. At the end of the day, it is more like JDBC to JDBC data transfer.
    Regards,
    -FX

  • Embedding XSL in XML document

    Hi
    I am new to this particular forum. I had some query regarding embedding XSL .
    Can we embedd the XSL stylesheet in the XML document itself.
    I searched this forum and got some similar queries but the output isn't working. Can anyone put a working example.
    I have got the following XSL stylesheet:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <body>
    <table border="1" width="100%" cellpadding="1">
    <tr bgcolor="#FFFF99">
    <th style="font-family:arial unicode ms;font-size:100%" align="center">Serial number </th>
    <th style="font-family:arial unicode ms;font-size:100%" align="center">Site number </th>
    </tr>
    <xsl:for-each select="Master/RECORD">
    <xsl:if test="SR_NO &gt; 0">
    <tr>
    <td style="font-family:arial unicode ms;font-size:80%" align="right"><xsl:value-of select="SR_NO"/></td>
    <td style="font-family:arial unicode ms;font-size:80%" align="right"><xsl:value-of select="ACR_SNO"/></td>
    </tr>
    </xsl:if>
    </xsl:for-each>
    </table>
    </body>
    </xsl:template>
    </xsl:stylesheet>
    The XML document is as below:
    <?xml version="1.0" encoding="utf-8"?>
    <?xml-stylesheet type="text/xsl" href="archivingmaster.xsl"?>
    <Master>
    <RECORD>
    <SR_NO>1</SR_NO>
    <ACRSNO>1</ACR_SNO>
    </RECORD>
    <RECORD>
    <SR_NO>2</SR_NO>
    <ACRSNO>2</ACR_SNO>
    </RECORD>
    </Master>
    Thanks in advance
    Ameya.

    I have already gone through that link and searched for this on the net. But it doesn't seem to work on my Mozilla Firefox browser.
    Can anybody put a working example if possible.
    Thanks
    Ameya.

  • How to use fnd_webattch.add_attachment API to attach document to an invoice?

    I am trying to use fnd_webattch.add_attachment API to attach document to an invoice.
    But the program seems successfully loaded  the attachment to Invoice. But when I try to open the attachment from UI, I got ORA-01403 no data found screen.
    Don’t know what’s worng with code, Can someone help?
    My pdf file is locate  at app  and DB servers.
    Here is my sql program,
    set feedback off
    set verify off
    set serveroutput on size 100000
    set autocommit off
    Declare
    v_category_id              NUMBER;
    v_attached_doc_id          NUMBER;
    v_invoice_id               NUMBER :=2814131;
    v_invoice_image_url        VARCHAR2(500) := NULL;
    v_function_name            VARCHAR2(50)   := 'APXINWKB';
    v_category_name            VARCHAR2(100) := 'CUSTOM291';
    v_description              VARCHAR2(300) := 'Test script for attaching OB10 scanned image file to AP invoice';
    v_entity_name              VARCHAR2(100) := 'AP_INVOICES';
    v_file_name                VARCHAR2(100) := '/tmp/AMKOR_PRD_0000577922_20130712-151504.pdf';
    v_user_id                  NUMBER               := 1234;
    TYPE result_set_type IS REF CURSOR;
    v_result_set_curr           result_set_type;
    CURSOR  cur_cat_id
    IS
        SELECT     fdc.category_id
        FROM       fnd_document_categories fdc
        WHERE      fdc.name  =  v_category_name;
    BEGIN
         OPEN cur_cat_id;
         FETCH cur_cat_id INTO v_category_id;
         CLOSE cur_cat_id;
             -- Invoke the fnd_webattach api for attaching the file to the invoice
            fnd_webattch.add_attachment ( seq_num                   => 100
                                         ,category_id               => v_category_id
                                         ,document_description      => v_description
                                         ,datatype_id               => 6
                                         ,text                      => NULL
                                         ,file_name                 => v_file_name
                                         ,url                       => v_invoice_image_url
                                         ,function_name             => v_function_name
                                         ,entity_name               => v_entity_name
                                         ,pk1_value                 => v_invoice_id
                                         ,pk2_value                 => NULL
                                         ,pk3_value                 => NULL
                                         ,pk4_value                 => NULL
                                         ,pk5_value                 => NULL
                                         ,media_id                  => NULL
                                         ,user_id                   => v_user_id
                                         ,usage_type                => 'O'
            SELECT    count(fad.attached_document_id)
            INTO      v_attached_doc_id
            FROM      fnd_attached_documents fad
            WHERE     fad.pk1_value = v_invoice_id;
            IF  v_attached_doc_id > 0
            THEN
              DBMS_OUTPUT.PUT_LINE('Attached sucessfully');
            ELSE
              DBMS_OUTPUT.PUT_LINE('Failed to Link the Attacment.');
            END IF; --IF  v_attached_doc_id > 0

    Hi Hussein,
    Yes. I got "Attached Successfully" message at the end.
    Don't know why it didn't created FND_LOBS record for it.
    My sql was copied from the reference on your reply.
    Thanks,
    Florence

  • WLS 7.0 SP2 - deploy error using security-permission in weblogic.xml on Win NT (jdk1.3.1)

    I am trying to use this in my weblogic.xml and this is the error that I get:
    weblogic-web-app>
    <description>Test Web App</description>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/TestDSRef</res-ref-name>
    <jndi-name>TestJdbc</jndi-name>
    </resource-description>
    </reference-descriptor>
    <security-permission>
    <security-permission-spec>
         // grant ability to read any file
         grant codeBase "http://server/virtual_directory/-"
         permission java.io.FilePermission "<<ALL FILES>>", "read";
         </security-permission-spec>
    </security-permission>
    </weblogic-web-app>
    Error parsing descriptor in Web appplication "e:\bea7_2\user_projects\mydomain\.\applications\.wlnotdelete\wl_comp15697.war"
    [Path="e:\bea7_2\user_projects\mydomain\.\myserver\upload\ourpeople", URI="ourpeople.war"]
    Any ideas on what I might be doing wrong? When I remove the security-permissions,
    the application deploys fine.

    I am trying to use this in my weblogic.xml and this is the error that I get:
    weblogic-web-app>
    <description>Test Web App</description>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jdbc/TestDSRef</res-ref-name>
    <jndi-name>TestJdbc</jndi-name>
    </resource-description>
    </reference-descriptor>
    <security-permission>
    <security-permission-spec>
         // grant ability to read any file
         grant codeBase "http://server/virtual_directory/-"
         permission java.io.FilePermission "<<ALL FILES>>", "read";
         </security-permission-spec>
    </security-permission>
    </weblogic-web-app>
    Error parsing descriptor in Web appplication "e:\bea7_2\user_projects\mydomain\.\applications\.wlnotdelete\wl_comp15697.war"
    [Path="e:\bea7_2\user_projects\mydomain\.\myserver\upload\ourpeople", URI="ourpeople.war"]
    Any ideas on what I might be doing wrong? When I remove the security-permissions,
    the application deploys fine.

  • Using java to fill in the blanks in an xml document via a schema

    Hi all
    What im trying to do is basically take an xml document and run it through a xml schema validator and then if the xsd has any default values to basically populate the original xml document with these default values
    e.g.
    <root>
    <name>dave</name>
    <name></name>
    </root>
    the schema would be something like
    <xs:element name="name" default="bobby">
    after schema validation i would want the document to be
    <root>
    <name>dave</name>
    <name>bobby</name>
    </root>
    is that something possible to do in java with any specific xml frameworks out there? if so can any one give me any pointers in the right direction?

    i assume by the lack of response this cannot be done then :(

Maybe you are looking for

  • Data not populated when run from a different machine

    I have a stored procedure which populates a table The stored procedure when it is run on my machine using SQL Plus populates data correctly in a table. I select using SQL PLUS and it shows that the data is there But when I run the SAME procedure ( SA

  • Connect to two networks, ethernet(LAN w/o internet), wireless(w/ internet)

    so i'm trying to connect to two networks, a wireless and a wired one the wireless(which connect to an access point) is a network which allows me to connect to internet, and the wired(regular router) one is a small home local network, which does not c

  • Why Is My iPhone 4 Struggling To Pick Up a Wifi Signal My Macbook Has No Problem Receiving?

    I have both an iPhone 4 and a late 2009 Macbook.  I work at an office just a few yards from the local hospital.  The hospital has a public wifi that is definitely receivable, although weak in spots.  But what I have noticed is that my iPhone 4 has a

  • Validate for Outlook 2007 (Word 2007) on Mac

    Hi, we are creating HTML email campaigns here that we want to be as compliant as possible across all email clients. I've learned a great deal about properly coding the HTML files so that they break down as gracefully as possible (inline styles only,

  • Hard Drive Speeds

    My friend, the professor, is a mac man. Im thinking on making the jump. Just worried about HD speed. My homebuilt junker has a 7200rpm. Was looking for at least that. Do I have to buy the sickest mac laptop to get it? Ive read some of the forums, wou