User Profile

Collapse

Profile Sidebar

Collapse
sakhawn
sakhawn
Last Activity: Mar 3 '09, 02:10 PM
Joined: Nov 26 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sakhawn
    started a topic XML schema transformation with XSLT
    in XML

    XML schema transformation with XSLT

    hi all,
    I need to transform an xml file into a different format (Dublin Core schema) using xslt, file contains different records each record needs to transformed based on a unique ID (in this case its element <guid>) that represents the record. Input file is:

    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ListRecords>
    <record>
    <header>
    <identifier>Project_DEM_100</identifier>
    ...
    See more | Go to post
    Last edited by Dormilich; Mar 3 '09, 02:02 PM. Reason: added code tags

  • sakhawn
    replied to Merging 2 different XML files...
    in XML
    Thnx. a lot for the help..
    Yes it works but only in case i have one record in each of the files but when merging more records, would require some concrete appraoch...
    See more | Go to post

    Leave a comment:


  • sakhawn
    replied to Merging 2 different XML files...
    in XML
    Thnx. for the reply..
    Actually i only changed the xpath u provided as i made a mistake while mentioning which file to copy so i have to copy data from file 1 into file 2 under record element based on that unique ID. So i only changed xpath in the sample u provided (i am not sure i did it write as i m messed up) so it is:

    [code=xml]
    <?xml version="1.0"?>
    <xsl:styleshe et version = '1.0'
    ...
    See more | Go to post

    Leave a comment:


  • sakhawn
    replied to Merging 2 different XML files...
    in XML
    "There is also this <metadata> element in both files, file1 (line 8 to 42) and in file2 (line 7 to 26) so i want to simply copy this <metadata> element and elements in between (sub-elements) till line 43 from file 2 into file 1 after file1's <metadata> element ends at line 26 and after that last element would be then simply <record>"

    Sorry a little mistake in above paragraph i want to merge record from...
    See more | Go to post

    Leave a comment:


  • sakhawn
    replied to Merging 2 different XML files...
    in XML
    Hi,
    Thnx. a lot for ur help and tried (still trying) but couldn't manage to write the XSLT file correctly and also its not possible to start with tutorial for xslt from beginning due to deadline so please help me so at-least when this first task is done i will be able to read more about it as tomorrow is deadline :-(

    As top elements <ListRecords> and then <record> in both files.This means that this <record>...
    See more | Go to post

    Leave a comment:


  • sakhawn
    replied to Merging 2 different XML files...
    in XML
    Thank you very much for the reply at-least i got the idea but problem is that i am totally new with XSLT so of-course have no time to start with tutorials due to deadline but still i am trying and i hope to solve it but in case i have any problems i will post them.
    See more | Go to post

    Leave a comment:


  • sakhawn
    replied to Merging 2 different XML files...
    in XML
    Thnx. a lot for ur reply i was so worried about it as i have a deadline
    Actually i want to join the record of similar id from file 2 into file 1 after the file 1 record for that id ends, the output might look like:
    Code:
    <ListRecords>
    <record>
    <header>
    <identifier>some value here</identifier> 
    <datestamp>2008-07-14T09:23:25Z</datestamp> 
    </header>
    <metadata>
    ...
    See more | Go to post

    Leave a comment:


  • sakhawn
    replied to Merging 2 different XML files...
    in XML
    sorry i forgot to mention, i have to use Java to merge them...
    See more | Go to post

    Leave a comment:


  • sakhawn
    started a topic Merging 2 different XML files...
    in XML

    Merging 2 different XML files...

    Hi,

    I have two files to merge using Java based on a similar text identifier:

    File 1:
    Code:
    <ListRecords>
    <record> 
    <header> 
    <identifier>oai:triple-l:2c7ba037-52a6-4323-97dd-b6ea1cdbfd18</identifier> 
    <datestamp>2007-05-29T15:55:00Z</datestamp> 
    <datestampasdatetime>2007-05-29T17:55:00+02:00</datestampasdatetime> 
    </header>
    ...
    See more | Go to post
No activity results to display
Show More
Working...