Need to XSL file create my XML file

Hello world

This is the first time that I post my question here in the XML section, in fact I have a XML file as
<root_node>
    <node_1>
        <element>abc</element>
    </node_1>
</root_node>
Now when I retrieve data from this XML file so I need to get the root node in the Dept and 1 node as DeptRow and item as an identifier.
While she will look like when I will actually try recover data
<Dept>
    <DeptRow>
        <Id>abc</Id>
    </DeptRow>
</Dept>
So for this I need to use Transform method in java and generate an XSL file that can convert data according to my needs without modifying the original file.

then may - does anyone know what content must exist in the XSL file.

your help would be appreciated too

Thank you
FIZZZ...

Apply an XSLT transformation to inpt XML. Please see
http://XML.sys-con.com/node/48763

Tags: Oracle Development

Similar Questions

  • He had to create to my XML file in the XSL file

    Hello world

    This is the first time that I post my question here in the XML section, in fact I have a XML file as
    <root_node>
        <node_1>
            <element>abc</element>
        </node_1>
    </root_node>
    Now when I retrieve data from this XML file so I need to get the root node in the Dept and 1 node as DeptRow and item as an identifier.
    While she will look like when I will actually try recover data
    <Dept>
        <DeptRow>
            <Id>abc</Id>
        </DeptRow>
    </Dept>
    So for this I need to use Transform method in java and generate an XSL file that can convert data according to my needs without modifying the original file.

    then may - does anyone know what content must exist in the XSL file.

    your help would be appreciated too

    Thank you
    FIZZZ...

    See a tutorial XSLT.
    http://XML.sys-con.com/node/48763

  • XSL file to format XML Document

    Hey programmers,.

    This thread is referring to this one (http://supportforums.blackberry.com/t5/Java-Development/Reading-XML-document/m-p/512637) which was resolved yesterday.

    A little history: I ripped with success of XML from a server in response to a post message, I was able to put it inside a document using InputStream and was able to read the text content of this XML on the Blackberry screen.

    Now I would use a .xsl file to format the XML document and then display it on the screen as HTML. Is this possible? How would I go to do this?

    I found this piece of code on the internet (java, not specific to the blackberry associated):

    public class CreationHTML {}
    public static void createHTML (xml, xsl string string, string html) bird Exception {}
    Create the source of DOM
    DocumentBuilderFactory FabriqueD = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = fabriqueD.newDocumentBuilder ();
    File fileXml = new File (xml);
    Document document = builder.parse (fileXml);
    Source source = new DOMSource (text);

    Creation of the output file
    File fileHtml = new File (html);
    Result result = new StreamResult (fileHtml);

    Configuration of the transformer
    FabriqueT TransformerFactory = TransformerFactory.newInstance ();
    StreamSource stylesource = new StreamSource (xsl);
    Transformer transformer = fabriqueT.newTransformer (stylesource);
    transformer.setOutputProperty (OutputKeys.METHOD, "html");
            
    Transformation
    transform. Transform (source, result);
    }
    Public Shared Sub main (String [] args) {}
    try {}
    createHTML ("Annuaire.xml", "Annuaire.xsl", "Annuaire.html");
    } catch (Exception e) {e.printStackTrace () ;}
    }
    }

    But actually I have a .xsl, not a string file, do you think that I could adapt it to meet my needs?

    Many thanks for any help!

    If you implement TransformerFactory on blackberry: sure, no problem.

    In the opposite case: rather not.

  • The attached VI works when I run it initially to create the XML file, but by pressing once the XML file is created, it is not up-to-date. What I am doing wrong?

    The attached VI works when I run it initially to create the XML file, but when I change the data and run once the XML file is created, it is not updated with new data. What I am doing wrong?

    Thank you.

    It sounds like the logic that has been written in VI

    Internal decision of true / false:

    (file exists: false) write in the file XML, unflatten for display

    (file exists: true) read the XML file, unflatten for display

    At no time when the file exists (true case) is the XML file updated...

  • How to create the xml file in oracle plsql

    Hello

    I need the under xml (abc.xml) in unix Server out_directory file (the out_directory path: / u01/apps/xml /)

    Select sivauser, sivapwd from sivainformations;-it will be multiple records

    Select sivatelepone phone; - it will be multiple records

    Select xyzverion versionid; - it will be multiple records

    based on the above information, I need the sub file xml using oracle plsql procedure or a block

    example: suppose we record

    <? XML version = "1.0" encoding = "UTF-8"? >
    "< sivaService version ="2.0"xmlns ="http://www.siva.ab/siva/4.0/test">."
    < data language 'DEU' = >
    < sivauser action = "siva3" sivapwd = "siva123" > --i need to sivainformations table(sivauser,sivapwd) timeline
    phone < sivatelepone > < / sivatelepone >--i need to chronogram sivatelepone table (phone) based on the sivauser column
    < abcversion version = "1.0" >
    < Productinfo >
    versionID < xyzverion > < / xyzverion >--i need to xyzverion (versionid) based on the sivauser column table records
    < / Productinfo >
    < / abcversion >
    < / action >
    < / data >
    < / sivaService >


    example: assume that multiple records

    <? XML version = "1.0" encoding = "UTF-8"? >
    "< sivaService version ="2.0"xmlns ="http://www.siva.ab/siva/4.0/test>
    < data language 'DEU' = >
    < sivauser action = "siva3" sivapwd = "siva123" > --i need to sivainformations table(sivauser,sivapwd) timeline
    < sivatelepone > '345678' < / sivatelepone >--i need to chronogram sivatelepone table (phone) based on the sivauser column
    < abcversion version = "1.0" >
    < Productinfo >
    '1.1' < xyzverion > < / xyzverion >--i need to xyzverion (versionid) based on the sivauser column table records
    < / Productinfo >
    < / abcversion >
    < / action >

    < sivauser action = "siva4" sivapwd = "siva123" > --i need to sivainformations table(sivauser,sivapwd) timeline
    < sivatelepone > '123456' < / sivatelepone >--i need to chronogram sivatelepone table (phone) based on the sivauser column
    < abcversion version = "1.0" >
    < Productinfo >
    "1.2" < xyzverion > < / xyzverion >--i need to xyzverion (versionid) based on the sivauser column table records
    < / Productinfo >
    < / abcversion >
    < / action >
    < / data >
    < / sivaService >

    Please help me

    Thank you
    Siva

    I added a column ID to match the lines between the three tables.

    SQL> with sivainformations
      2  as
      3  (
      4     select 1 id, 'karthick' sivauser, 'karthick' sivapwd from dual union all
      5     select 2 id, 'ram', 'ram' from dual
      6  )
      7  , sivatelepone
      8  as
      9  (
     10     select 1 id, 1234567890 telepone from dual union all
     11     select 2 id, 1234512345 from dual
     12  )
     13  , versionid
     14  as
     15  (
     16     select 1 id, 1.1 versionid from dual union all
     17     select 2, 1.2 from dual
     18  )
     19  select xmlelement
     20         (
     21             "shivaService"
     22           , xmlattributes('2.0' as "version", 'http://www.siva.ab/siva/4.0/test' as "xmlns")
     23           , xmlelement
     24             (
     25                 "Data"
     26               , xmlattributes('DEU' as "language")
     27               , xmlagg
     28                 (
     29                     xmlelement
     30                     (
     31                          "Action"
     32                        , xmlattributes(s.sivauser as "sivauser", s.sivapwd as "sivapwd")
     33                        , xmlelement("shivatelepone", t.telepone)
     34                        , xmlelement
     35                          (
     36                              "abcversion"
     37                            , xmlattributes('1.0' as "version")
     38                            , xmlelement
     39                              (
     40                                   "ProductInfo"
     41                                 , xmlelement("xyzversion", v.versionid)
     42                              )
     43                          )
     44                      )
     45                 )
     46             )
     47         ).EXTRACT('*') xml_output
     48    from sivainformations s
     49    join sivatelepone t
     50      on s.id = t.id
     51    join versionid v
     52      on s.id = v.id;
    
    XML_OUTPUT
    -------------------------------------------------------------------------------------------------------------------
    
      
        
          1234567890
          
            
              1.1
            
          
        
        
          1234512345
          
            
              1.2
            
          
        
      
    
    
    SQL>
    
  • I have 10 pdf files I want to merge to make 1 large pdf. I want to be able to search the content of each of them, in order to make 1 large pdf let me do this... I hope. Which product do I need to merge and create this big 1 pdf in Adobe?

    I have 10 pdf files I want to merge to make 1 large pdf. I want to be able to search the content of each of them, in order to make 1 large pdf let me do this... I hope. Which product do I need to merge and create this big 1 pdf in Adobe?

    You can use Acrobat Pro to combine multiple PDFs into a single PDF.

    You may be able to use Acrobat Standard as well - not sure.

    In my view, there is also a the Adobe online subscription service hosts that combine multiple PDFs into a single PDF.

    As for search. To make available content of every PDF should be text with a font mapping of characters of the regular police having families (each character we see ("glyph") represents a specific numerical value, which is held in the file under the hood) which in turn has a correct mapping to Unicode.  If there are pages that are the output of text parser image then make sure you use OCR to get the result of the OCR to support search/search.

    With all the 'one' PDF support find simple. Using Acrobat Pro, you can embed a search Index. This is a simple step. For full service advanced search use Acrobat Pro to create a stand alone catalogue Index (see the help file).

    Be well...

  • Create an xml file using the .xsd file

    Hi guys,.

    Version of DB: Oracle 11g

    I was wondering if I had any package that can create a xml file based on a (built-in) .xsd file. I searched but did not find any resource on the internet specific to my problem. Let's say I have an .xsd file. It is possible to load a schema and generate the XML that conform to the .xsd file using sql? If so, I want to store in a CLOB variable.

    Please point me to the right direction.

    Thank you.

    Hello

    No, there is no such functionality yet.

    To build the XML "manually", according to the XSD, for example using SQL/XML functions (XMLElement, XMLAttributes, and XMLAgg etc.).

  • Win/Mac CS3: create an XML file and add content

    Hello

    I want to create an XML file to a specified location. This file contains information about the images in an Indesign document.

    -Can I create a new file XML in Javascript?

    -If so, how can I add content?

    Thanks for all the tips

    Hans

    I made a small example, just to see how it works.

    I don't know if there is a smarter way of usage of the XMLobject, I guess that's what link is on about, haven't read it yet however.

    var myRootXmlObj = new XML ("" ');
    var font = "";
    var myInstalledFonts = app.fonts.everyItem () .name;

    for (i = 0; i< myinstalledfonts.length;="" i++)="">
    font = new XML ("" + myInstalledFonts [i] + "'");
    myRootXmlObj.fonts.appendChild (do);
    }

    var f = new File ("myTestFile.txt"); in windows XP, this is in the user documents folder

    writeXMLFile (f, myRootXmlObj);
    Alert (readXMLFile (f));

    ROM http://forums.adobe.com/message/1114070#1114070 forum thread
    function writeXMLFile (file, xml) {}
    If (!) XML XML instanceof))) {}
    throw "wrong XML" parameter;
    }
    leader. Encoding = 'UTF8 ';
    leader. Open ("w", "TEXT", "?");
    signature of Unicode, it comes to UTF16 but will convert to UTF8 'EF BB BF.
    leader. Write ("\uFEFF");
    file.lineFeed = "unix";
    leader. Write (XML. ToXmlString());
    leader. Close();
    };

    function readXMLFile (file) {}
    If (! file.exists) {}
    throw "file not found:"+ decodeURI (file.absoluteURI);.
    }
    leader. Encoding = 'UTF8 ';
    file.lineFeed = "unix";
    leader. Open ("r", "TEXT", "?");
    var str = file.read ();
    leader. Close();
    return of new XML (str);
    };

  • Add the short name field for specifications in the XSL file

    Hello

    I'm looking for help to see if it is possible to add the short name for the inputs and spare field in a specification of Formulation in the XSL file. If it is possible, how can I do this?

    Thanks in advance.

    Well, CSS is much more locked, by design. So it's a little (or maybe a lot) more complicated.

    Also remember that if you change the CSS schema, and you use the web service contract that we provide for the CSS message, then the approach will probably be different. This means that the web service contract would not support additional XML nodes, unless he expects them.

    If you do not use our web service contract, then you could make changes in the XML in a different way. Can you elaborate on how you receive the message in CSS?

    Basically, if you use the web service method, then you will probably need to use the ExportExtensions method, which is documented in the CSS guide. ExportExtensions allows you to include xml code in a node specific extensibility through managers, which are classes that you configure in the config\extensions\exportExtensions.xml configuration file. It is currently the custom how sections are included in syndication. So you can add your own XML nodes and call you a custom class to provide additional data that you need.

  • XSL file formatting

    XSL file formatting

    Hello.

    I have problem with this xsl files, the problem is the output for the date field and the number:
    a) `2011-05-13T21:50:00` instead of `13/05/2001 21:50:00`
    b) `.00` instead of `0`
    It is the output in XML format:
    <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
         <s:Schema id="RowsetSchema">
              <s:ElementType name="row" content="eltOnly" rs:CommandTimeout="30">
    
                   <s:AttributeType name="myDates" rs:number="6" rs:nullable="true" rs:writeunknown="true">
                        <s:datatype dt:type="dateTime" rs:dbtype="timestamp" dt:maxLength="16" rs:scale="0" rs:precision="19" rs:fixedlength="true"/>
                   </s:AttributeType>
    
                   <s:AttributeType name="Net" rs:number="29" rs:nullable="true" rs:writeunknown="true">
                        <s:datatype dt:type="number" rs:dbtype="numeric" dt:maxLength="19" rs:scale="2" rs:precision="10" rs:fixedlength="true"/>
                   </s:AttributeType>
    
                   <s:extends type="rs:rowbase"/>
              </s:ElementType>
         </s:Schema>
         <rs:data>
    
              <z:row myDates="2011-05-13T21:50:00" Net=".00" />
    
         </rs:data>
    </xml>
    This XML output is generate with the ASP code and saved in csv format:
    <!-- #include virtual="/_XML/adovbs.inc" -->
    
    <% 
    
    filename = "titty.xml" 
    
    Set xmlDoc = CreateObject("MSXML2.DOMDocument.4.0")
    Set xslDoc = CreateObject("MSXML2.DOMDocument.4.0")
    
    %>
    
    <%
    
    sql = "SELECT * FROM tbl_login" 
    Set rs = objConn.Execute(sql) 
    
    rs.Save xmlDoc, 1 
    
    xmlDoc.Save Server.MapPath(filename)
    
    rs.Close 
    Set rs = Nothing 
    
    %>
    
    <%
    
     Set oDOM = CreateObject("MSXML2.DOMDocument.4.0")
     oDOM.async = False 
     
     oDOM.Load Server.Mappath(filename)
      
     Set oXSL = CreateObject("MSXML2.DOMDocument.4.0") 
     oXSL.async = False 
     
     oXSL.Load Server.Mappath("Trasform_csv.xsl")
     
     strTransform = oDOM.transformNode(oXSL) 
     
     Set fso = CreateObject("Scripting.FileSystemObject")
     strPath = Server.Mappath("testme.csv")
      
     Set file = fso.opentextfile(strPath, 2, True)
     file.write strTransform
    
     file.Close 
     Set file = Nothing
      
     Set fso = Nothing
                            
     Set oDOM = Nothing 
     Set oXML = Nothing 
     Set oXSL = Nothing 
      
    %>
    The XSL file:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" 
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" 
     xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" 
     xmlns:rs="urn:schemas-microsoft-com:rowset" 
     xmlns:z="#RowsetSchema">
         <xsl:output omit-xml-declaration="yes"/>
         <xsl:template match="/">
              <!-- show a header by looking Schema element -->
              <xsl:for-each select="/xml/s:Schema/s:ElementType/s:AttributeType">
                   <xsl:value-of select="@name"/>
                   <xsl:choose>
                        <xsl:when test="position()!=last()">
                              <!-- xls -->
                             <xsl:text>     </xsl:text>
                             <!-- csv -->
                             <!--xsl:text>,</xsl:text-->
                        </xsl:when>
                        <xsl:otherwise>
                             <xsl:text>
    </xsl:text>
                        </xsl:otherwise>
                   </xsl:choose>
              </xsl:for-each>
              <!-- row data -->
              <xsl:for-each select="/xml/rs:data/z:row">
          <xsl:variable name="row" select="."/>
          <!-- for each column -->
                   <xsl:for-each select="/xml/s:Schema/s:ElementType/s:AttributeType">
                      <!-- display each column if it exists -->
                     <xsl:variable name="columnName" select="@name"/>
                        <!-- go through all columns and display something that matches-->
                        <xsl:value-of select="$row/@*[name()=$columnName]" />
                        <!--xsl:value-of select="translate($row/@*[name()=$columnName],'.',',')" /-->
                        <xsl:if test="position()!=last()">
                            <!-- xls -->
                             <xsl:text>     </xsl:text>
                             <!-- csv -->
                             <!--xsl:text>,</xsl:text-->
                        </xsl:if>
             </xsl:for-each>
                   <xsl:text>
    </xsl:text>
           </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>
    I need another exit in the XML file:
    <z:row myDates="13/05/2001 21:50:00" Net="0.00" />
    And the CSV file:
    13/05/2001 21:50:00, 0
    Can you help me?
    Thanks in advance.
    See you soon

    Published by: user6317803 on August 30, 2011 13:31

    Published by: user6317803 on August 30, 2011 13:34

    Published by: user6317803 on August 30, 2011 13:36

    Hello

    What database you use?

    I guess you could easily get in shape your columns directly in the SQL query, using something like TO_CHAR (Oracle), CONVERT (SQLServer) or CAST/DATE_FORMAT (MySQL), instead of a plain "SELECT."

  • Where to place the .xsl files commonly used in EBS 11i to BEEP to use

    Hi all
    I have a xsl file that I use in many layout templates by importing. I have this file in the directory XDO_TOP/resource $. But when I run the report I get a file not found exception because he is looking for this file in $APPLCSF / log directory.

    Due to: java.io.FileNotFoundException: /finapps/slofinx/slofinxcomn/admin/log/slofinx_xxxx/tcs.xsl (no such file or directory)

    Can anyone help?

    Thank you
    -John.

    Published by: John on January 14, 2013 10:21

    How import you xsl sous-modèle hand?

    You can try:
    -create the submodel (RSP. SUBTMPL.en.00)
    -create the main model and add

      
    

    It is work for main rtf and rtf sub-model
    but I don't check for sub-model xsl

  • I need to copy files from my USB DRIVE to the vmserver running RHEL 5

    I need to copy files from my USB DRIVE to the VMSERVER running RHEL 5

    I can tether the drive to my host, but my VMserver does not see the drive.

    Is there some way to copy files from to the VMserver USBDISK create through vSphere, ESXi

    bndwork

    Moved to VMware Server------General questions forum.

    Dave

    VMware communities user moderator

    Now available - vSphere Quick Start Guide

    You have a system or a PCI with VMDirectPath?  Submit your specifications to Officieux VMDirectPath HCL.

  • I need the entire file of version 28 not heel.

    I am an IT professional who uses Firefox. I recently saw the update to version 28. I noticed in some versions you had the 'heel '. I need the entire file that I load most of the machines from a USB key.

    You can find the full version of the current version of Firefox 28.0 in all languages and for all systems operating here:

  • m make a pop-up Unleashed PC saying I need to defragment files on my hard drive and if necessary to do through Mozilla-is it possible?

    I'm a model of the computer and it's my first computer. I have a head injury which does not help that I do things backwards, etc. Technical things are difficult for me. I need to know if Mozilla can scan my computer to see if I need to defragment files on the hard disk that I don't know how if she needs to. I do not know how to copy and paste, can you help me?

    Copy / paste
    A method that works in Firefox, on regular test files in Windows XP, and in fact, in many programs on different operating systems is of as follows

    1. SELECT
      highlight the required text, usually for example holding the left button of the mouse down and dragging the mouse. Otherwise for example within these messages or on Web sites using HotKey Ctrl + A to select all the IE all the message, or all the page or address bar when the mouse pointer is.
    2. COPY
      Use Ctrl + C (while the object/text is selected as above)
    3. DOUGH
      Use Ctrl + V AFTER you move the mouse pointer on the target location
    • Keyboard shortcuts

    CTRL + A is the abbreviation of

      1. Press the 'Ctrl' key or the command (often at the bottom left of the keyboard) and press and hold
      2. Press the 'A' (no need to use the shift key)

    DEFRAG
    You should be able to defragment the drive of the computer from the Windows XP operating system. It is not something that Firefox will do for you.

    A method in XP if I remember correctly, is to find the drive icon, and then right-click to get a Properties dialog. A tab or option is tools, which will have a defrag & /or analyse the option. It will also be possible to do so in the options in the control panel.

    See also

  • Need for Mib files for Toshiba estudio 16 series printers

    Hello
    I need the Mib files for printer Toshiba estudio 16 for my project. Please help me how to do the same.

    Thanks in advance.

    Concerning
    Emilie

    Hi Ravi

    Toshiba estudio 16 printer is not known to me and you will be very happy if you can find help here (for most of the themes of laptop). Google all over the place. Maybe you will find something at least on the net you can find almost everything.

    https://www.Aneka-INFOKOM.co.ID/Copier/?page=view&ID=10 try to contact dealers for more information.

    Good bye

Maybe you are looking for

  • Is it possible to remove a file from your time Machine?

    Is it possible to remove a file (s) from your time Machine?  When I tried, I got a pop up says that backs up the items cannot be changed. How do you get the room on your Time Machine disk?

  • can I use mac os and windows os alternative to the model of macbook air early 2014

    Hello I have the macbook air 13 inch Series No C0 * 085 I want to use both mac os and windows os alternately in my Mac... is this possible. < personal information under the direction of the host >

  • CPU Upgrade ThinkCentre M71e (3176)

    Dear members of the forum, Could you help me with the following question: I recently bought a lenovo thinkcentre desktop computer refurbished for home use. I would be able to upgrade the CPU with a core i3 or i5 processor Ivy Bridge socket 1155. For

  • Activate the switch

    Hello I have a signal being played, I should activate another process, if there is no difference in the value of the last 100 measurements of the signal (say about 1% deviation). Can anyone help. Best regards Hannah

  • Restore usb

    trying to ussb port files