XSL for XML import?

Hi
I'm trying to create a xsl file so that the xml would rearrange the content.
I've found the tutorial of adobe here http://www.adobe.com/designcenter/indesign/articles/indcs2at_xsl.html
But when I import the xml with this xsl file, I get this error.
"Element 'output' can only be toplevel" or something like that.
Can someone give me a good (working) example of xsl tranformation for import in indesign?
This is what I had
<?xml version="1.0" encoding="UTF-8"?>
<xsl:styleshoot version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:element name="Reis">
<xsl:copy-of select="Continent"/>
<xsl:copy-of select="Land"/>
<xsl:copy-of select="Titel"/>
<xsl:copy-of select="Beschrijving"/>
<xsl:copy-of select="Inclusief"/>
<xsl:copy-of select="Dagen"/>
<xsl:copy-of select="Prijs"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
This is the XML
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="koningaap.xsl"?>
<Reizen>
    <Reis>
        <Continent>Afrika</Continent>
        <Land>Kenia &amp; Tanzania</Land>
        <Titel>Wildlife rond de evenaar</Titel>
        <Beschrijving>Droom je ervan om giraffen, neushoorns,... </Beschrijving>
        <Dagen>14</Dagen>
        <Inclusief>Internationale vluchten, de voor vertrek te betalen... </Inclusief>
        <Prijs>2445</Prijs>
        <Foto href="file://images/Kenia.jpg"/>
    </Reis>
</Reizen>

Ah, okay. Your XSL doesn't do anything
The element <Reis /> is correctly created into the output, but then it goes on to look immediately for the element Continent, the element Land, and so on, and these don't occur in your XML: you are still at the root level. Remember: you have to process your XML one level at a time (although it's possible to take shortcuts). A more proper XSL would be
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<!-- Match everything in the root -->
<xsl:template match="/">
     <xsl:apply-templates />
</xsl:template>
<!-- Match everything in Reis -->
<xsl:template match="Reizen">
     <xsl:apply-templates />
</xsl:template>
<!-- Write out single Reis -->
<xsl:template match="Reis">
<xsl:element name="Reis">
<xsl:copy-of select="Continent"/>
<xsl:copy-of select="Land"/>
<xsl:copy-of select="Titel"/>
<xsl:copy-of select="Beschrijving"/>
<xsl:copy-of select="Inclusief"/>
<xsl:copy-of select="Dagen"/>
<xsl:copy-of select="Prijs"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
To quickly test your XML output, I suggest you download Kernow. This is a front-end to Saxon, and you can change your XSL in a text editor, run Kernow, check output, adjust (etc.), before processing your files with InDesign. This is what it looks like:

Similar Messages

  • New line markers in template preparing for XML import

    How can I put new line markers (called static texts), in a template, preparing it for XML import, so that I get one line per object?
    I have put normal TAB characters as "static texts" as the InDesign help file shows, between the tagged placeholder texts. But all texts come out on one line when I enable the white space in the template to be kept when importing.
    See a longer description from me: http://forums.adobe.com/thread/788685?tstart=0
    Best regards,
    Andreas

    Are you sure, that the nl characters are deleted?
    They are usually not shown in the XML display.
    You can also use an adapter module instead of a Java mapping. So you can do a split in mapping, but the conversion to the flat file in the adapter module. If you have already a Java mapping for this purpose, you can easily create an adapter module based on that Java code.
    Regards
    Stefan

  • Best way to create placeholder frames for XML import

    This is my first attempt at importing XML into ID (CS2), my client has given me an Access database that includes about 150 records that include several fields of data, including an image file and a few brief paragraphs of descriptive text.
    The goal is to have each record occupy a page in the layout.
    My goal is to set up one initial page with a placeholder frame or frames and have ID automatically duplicate for all the records. And that's my question...do I create multiple frames, one for each field in the database, or do I create one frame and just tag various elements within the single frame?
    If I create multiple frames, I'm thinking I would have to copy/paste the group onto each new page (or am I wrong?)
    If I create one single master frame, then InDesign would just consider all the content one story and automatically create as many threaded frames as are needed--right?
    The other consideration is that the field containing the descriptive text will vary in length with each record and I want to make sure that there aren't inconsistent spacing issues happening, as would probably be the case if I created a unique frame for the descriptive text.
    I hope I'm being clear...would somebody who's done this type of thing before please advise me on the best way to set up my placeholders?
    Thanks so much.

    Hi,
    You can use Web Dynpro or Visual Composer for designing UI for your CA.
    1) WebDynPro Callable Object that implements GP Interface.
    You can use Web Dynpro Component CO to use a single Web Dynpro component in your GP Activity.
    4) Create a WebDynPro Application Callable Object :This is for entire Web Dynpro Application(multiple components).
    2) Consume the Application services(exposed as web services) in WebDynPro app :
    3) Creating a WebDynPro Model for the CAF Services.
    For example, in updating operations first we have to get the existing data from Database.For getting this data you can use application services in your Web Dynpro component.Later expose this WD component as CO insert in a GP activity.
    For creating operations, you can use Web Service CO(Application Service)  directly in GP Activity.
    These links are useful for you.
    [link1|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a00c07d0-61e0-2a10-d589-d7bc9894b02a]
    [link2|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b99341-60e0-2a10-6e80-b6e9f58e3654]
    [lnk3|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1078e3b0-ec5d-2a10-f08a-c9b878917b19]

  • Xsl:include and xml:import

    I want to use another stylesheet within the original one.
    the documentation just said how to declare an
    xsl:include or xsl:import element as top level, but no examples about how to call the imported or included stylesheet.
    I'll appreciate any examples you can provide to me .
    Thanks
    Chris

    I've done this, and the way i think about it is that each "imported" XSL document combines (or are appended) into the XSL document that imports the other XSL documents. As such, all of the template matching that is occuring has to be consistent with the way the XML tags are matching up with XSL templates.
    It is important that the templates in each imported XSL document will match up to the XML tags that the templates are designed to transform.
    In other words, if i have an employee list <emp>, and an XSL template matching the <emp> element, i can produce a transformation on the list itself. now, i can define a transformation for a child element of <emp> by "importing" the XSL document that defines the template match for the child element (for example, "emp/lastName" can be what the second XSL document matches on).
    Long story short, if you can paste the imported XSL into the importing XSL and things still work, then you can separate them out into multiple modular XSL files for inclusion.
    -dave
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Christos Kouros ([email protected]):
    I want to use another stylesheet within the original one.
    the documentation just said how to declare an
    xsl:include or xsl:import element as top level, but no examples about how to call the imported or included stylesheet.
    I'll appreciate any examples you can provide to me .
    Thanks
    Chris<HR></BLOCKQUOTE>
    null

  • Problem for XSL copying  XML file with Error in expression '*|/'.

    Hi,
    I am trying to convert xml file to another xml through command-line interface but failed.
    java oracle.xml.parser.v2.oraxsl data.xml data.xsl data_new.xml
    My sample xml and xsl files are:
    1. XML file
    <employee_data>
    <employee_row>
    <employee_number>7950</employee_number>
    <employee_name>ABC</employee_name>
    <employee_title>PRESIDENT</employee_title>
    <manager>1111</manager>
    <date_of_hire>20-JAN-93</date_of_hire>
    <salary>65000</salary>
    <commission>1000</commission>
    <department_number>10</department_number>
    </employee_row>
    </employee_data>
    2. XSL file
    <?xml version="1.0" ?>
    <xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="*">
    <xsl:copy>
    <xsl:apply-templates>
    <xsl:sort select=".//employee_name"/>
    </xsl:apply-templates>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    The error message:
    Error occurred while processing data.xsl: Error in expression: '*|/'.
    I used a sample XSL files copying from a XML book to do the convert but got the same error.
    Does anyone know how to fix this problem? I'll appreciate it very much for your help.
    Thanks.
    Yiguang Zhong

    Hi swanelvis ,
    I have the same issue. Were you able to resolve this ?
    Thanks

  • Import/Export-Tools for XML on Oracle-Lite

    We have to import/export XML-Format on the Oracle-Lite-Database.
    -Are there any tools available supporting Import and Export of XML-Data ?
    -Can someone give us a recomendation how to perform XML-Imports/Exports if there is
    no "out of the box-tool" available ?
    Thanks.

    So try. It is called Oracle XML-SQL utility and it set of classes for direct XML manipulation from/to database with HUGE amount of features. You can use it from JAVA and PL/SQL (via Java Stored Procedures). It is realy great.

  • Good Books for XML/XSL

    Hi Can any one suggest me good books for
    learning XML/XSL. I am new to XML. any help is appreciated
    Arun

    There are many excellent articles, whitepapers, and books that describe all facets of XML technology. Many of these are available on the world wide web. The following are some of the most useful resources we have found:
    XML, Java, and the Future of the Web by Jon Bosak, Sun Microsystems http://metalab.unc.edu/pub/sun-info/standards/xml/why/xmlapps.htm
    XML for the Absolute Beginner by Mark Johnson, JavaWorld http://www.javaworld.com/jw-04-1999/jw-04-xml_p.html
    XML And Databases by Ronald Bourret, Technical University of Darmstadt http://www.informatik.tu-darmstadt.de/DVS1/staff/bourret/xml/XMLAndDatabases.htm
    World Wide Web Consortium (W3C) XML Specifications http://www.w3.org/XML/
    XML.com (a broad collection of XML resources and commentary) http://www.xml.com/
    Annotated XML Specification by Tim Bray, XML.com http://www.xml.com/axml/testaxml.htm
    The XML FAQ by the W3C XML Special Interest Group http://www.ucc.ie/xml/
    XML.org (the industry clearing house for XML DTDs that allow companies to exchange XML data) http://xml.org/
    xDev (the DataChannel XML Developer pages) http://xdev.datachannel.com/
    Oracle XML Team
    null

  • [svn] 4128: Fix for - Examples imported by the @ includeExample tag are truncated after the first or second XML comment

    Revision: 4128
    Author: [email protected]
    Date: 2008-11-17 12:53:34 -0800 (Mon, 17 Nov 2008)
    Log Message:
    Fix for - Examples imported by the @includeExample tag are truncated after the first or second XML comment
    examples-path option is now public and adding period at the end of Constructor.
    QE Notes: baselines need to be updated.
    Doc Notes: None
    Bugs: SDK-18125, SDK-18077, SDK-18126
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18125
    http://bugs.adobe.com/jira/browse/SDK-18077
    http://bugs.adobe.com/jira/browse/SDK-18126
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/ASDocConfiguration.java

    I have the same problem except almost every song I bought from Itunes has this problem. Not only that, but somehow some of the music, about $125 worth has been deleted form my 3 back up discs. This is only happening with my purchases and not any songs I uploaded from cd. How on earth did this happen, and how did it wipe clean 3 different back ups? I have found some of the music where it belongs, but like I said some of them are gone, gone, gone. I run three different back ups and they are on 24/7. Where is all of this music? I still have it on my ipod, but it will not load back into itunes the way purchases used to. Some of the music is purchased straight to my ipod touch, but shouldn't i be able to reload them into itunes? I spent 3 hours going 1 song at a time reloading them from their original location. But I cannot locate about $125 worth of music that I purchased from itunes. I have 6 macs in my family and preach the good news to all who will listen about hows macs are flawless. Now I have egg all over my face and have thrown away a nice sum of money on missing music. Please help!

  • How to generate XSL for an XML file to use it for XSLT transformation -SSIS?

    Hi All,
    Can anybody please help me to generate XSL for my attached XML file?
    I need to use the XSL file for XSLT transformation.
    Thanks & Regards,
    Sri

    Hi Vibhav,
    Thanks for the response.
    I am aware of the process but not sure how to generate XSL file. 
    Can you please refer me to any tool which can convert XML to XSL? or please can you transform my simple XML to XSL?
    Thanks & Regards,
    Sri

  • XSLT samples for XML- ABAP mapping

    Hi all,
    Does anyone have a XSLT samples for XML->ABAP mapping ?
    regards

    first create XSLT program by copy pasting the below given code and give the program name as "Y_TEST"
    <b>XSLT code</b>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:output indent="yes"/>
      <xsl:template match="NewDataSet">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
          <asx:values>
            <OUTTAB>
              <xsl:for-each select="Table">
                <OUTTAB1>
                  <AIRPORTCODE>
                    <xsl:value-of select="AirportCode"/>
                  </AIRPORTCODE>
                  <CITYOFAIRPORTNAME>
                    <xsl:value-of select="CityOrAirportName"/>
                  </CITYOFAIRPORTNAME>
                  <COUNTRY>
                    <xsl:value-of select="Country"/>
                  </COUNTRY>
                  <COUNTRYABBRIVATION>
                    <xsl:value-of select="CountryAbbrviation"/>
                  </COUNTRYABBRIVATION>
                  <COUNTRYCODE>
                    <xsl:value-of select="CountryCode"/>
                  </COUNTRYCODE>
                  <GMTOFFSET>
                    <xsl:value-of select="GMTOffset"/>
                  </GMTOFFSET>
                  <RUNWAYLENGTHFEET>
                    <xsl:value-of select="RunwayLengthFeet"/>
                  </RUNWAYLENGTHFEET>
                  <RUNWAYELEVATIONFEET>
                    <xsl:value-of select="RunwayElevationFeet"/>
                  </RUNWAYELEVATIONFEET>
                  <LATITUDEDEGREE>
                    <xsl:value-of select="LatitudeDegree"/>
                  </LATITUDEDEGREE>
                  <LATITUDEMINUTE>
                    <xsl:value-of select="LatitudeMinute"/>
                  </LATITUDEMINUTE>
                  <LATITUDESECOND>
                    <xsl:value-of select="LatitudeSecond"/>
                  </LATITUDESECOND>
                  <LATITUDENPEERS>
                    <xsl:value-of select="LatitudeNpeerS"/>
                  </LATITUDENPEERS>
                  <LONGITUDEDEGREE>
                    <xsl:value-of select="LongitudeDegree"/>
                  </LONGITUDEDEGREE>
                  <LONGITUDEMINUTE>
                    <xsl:value-of select="LongitudeMinute"/>
                  </LONGITUDEMINUTE>
                  <LONGITUDESECONDS>
                    <xsl:value-of select="LongitudeSeconds"/>
                  </LONGITUDESECONDS>
                  <LONGITUDEEPERW>
                    <xsl:value-of select="LongitudeEperW"/>
                  </LONGITUDEEPERW>
                </OUTTAB1>
              </xsl:for-each>
            </OUTTAB>
          </asx:values>
        </asx:abap>
      </xsl:template>
    </xsl:stylesheet>
    <b>just create a type 1 program and paste the below given code.</b>
    report y_consume_webservice .
    data: wf_user type string .
    data: wf_password type string .
    types: begin of outtab1 ,
       airportcode(6)  ,
       cityofairportname(50),
       country(30)  ,
       countryabbrivation(10),
       countrycode(6)  ,
       gmtoffset(10)  ,
       runwaylengthfeet(15),
       runwayelevationfeet(15),
       latitudedegree(10)  ,
       latitudeminute(10)  ,
       latitudesecond(10)  ,
       latitudenpeers(10)  ,
       longitudedegree(10)  ,
       longitudeminute(10)  ,
       longitudeseconds(10)  ,
       longitudeeperw(10) ,
       end of outtab1 .
    data: outtab type  table of outtab1.
    data: wf_o like line of outtab .
    data: g_okcode like sy-ucomm .
    data: my_container   type ref to cl_gui_custom_container .
    data: g_dock type ref to cl_gui_docking_container .
    data: mygrid type ref to cl_gui_alv_grid .
    data: wf_field_cat type lvc_t_fcat .
    data: wf_field_cat_wa like line of wf_field_cat ,
          wf_is_layout type lvc_s_layo .
    data: wf_fld_cat type slis_t_fieldcat_alv .
    data: wf_fld_cat_wa like line of wf_fld_cat .
    data: wf_repid like sy-repid .
    data: int_tab_name type slis_tabname .
    data: xslt_err type ref to cx_xslt_exception .
    constants:
    * encoding for download of XML files
    encoding     type string value 'utf-8' .
    data: rlength type i,
          txlen type string  .
    data: http_client type ref to if_http_client .
    data: wf_string type string .
    data: wf_string1 type string .
    data: wf_proxy type string ,
          wf_port type string .
    selection-screen: begin of block a with frame .
    parameters: uri2(132) type c lower case .
    selection-screen skip 1.
    parameters: user(50) lower case,
                password(50) lower case ,
                p_proxy(100) lower case default 'proxy.xxx.com' ,
                p_port(4) default '80'.
    selection-screen: end of block a .
    at selection-screen output.
      loop at screen.
        if screen-name = 'PASSWORD'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    start-of-selection .
    clear wf_string .
    concatenate
    '<?xml version="1.0" encoding="utf-8"?>'
    '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
    '<soap:Body>'
    '<GetAirportInformationByCountry xmlns="http://www.webserviceX.NET">'
    '<country>' uri2 '</country>'
    '</GetAirportInformationByCountry>'
    '</soap:Body>'
    '</soap:Envelope>'
    into wf_string .
    clear :rlength , txlen .
    rlength = strlen( wf_string ) .
    move: rlength to txlen .
    clear: wf_proxy, wf_port .
    move: p_proxy to wf_proxy ,
          p_port to wf_port .
    call method cl_http_client=>create
      exporting
        host          = 'www.webservicex.net'
        service       = '80'
        scheme        = '1'
        proxy_host    =  wf_proxy
        proxy_service =  wf_port
      importing
        client        = http_client.
    http_client->propertytype_logon_popup = http_client->co_disabled.
    wf_user = user .
    wf_password = password .
    call method http_client->authenticate
      exporting
        proxy_authentication = 'X'
        username             = wf_user
        password             = wf_password.
    call method http_client->request->set_header_field
      exporting
        name  = '~request_method'
        value = 'POST'.
    call method http_client->request->set_header_field
      exporting
        name  = '~server_protocol'
        value = 'HTTP/1.1'.
    call method http_client->request->set_header_field
      exporting
        name  = '~request_uri'
        value = '/airport.asmx'.
    call method http_client->request->set_header_field
      exporting
        name  = 'Content-Type'
        value = 'text/xml; charset=utf-8'.
    call method http_client->request->set_header_field
      exporting
        name  = 'Content-Length'
        value = txlen.
    call method http_client->request->set_header_field
      exporting
        name  = 'SOAPAction'
        value = 'http://www.webserviceX.NET/GetAirportInformationByCountry'.
    call method http_client->request->set_cdata
      exporting
        data   = wf_string
        offset = 0
        length = rlength.
    call method http_client->send
      exceptions
        http_communication_failure = 1
        http_invalid_state         = 2.
    call method http_client->receive
      exceptions
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3.
    clear wf_string1 .
    wf_string1 = http_client->response->get_cdata( ).
    replace all occurrences of
        '<' in wf_string1 with '<' .
    replace all occurrences of
    '>' in wf_string1 with '>' .
    replace all occurrences of
    'xmlns=' in wf_string1 with 'xmlns:xsl=' .
    try .
        call transformation (`Y_TEST`)
                source xml wf_string1
                result     outtab = outtab.
      catch cx_xslt_exception into xslt_err.
        data: s type string.
        s = xslt_err->get_text( ).
        write: ': ', s.
        stop.
    endtry .
    break-point .
    Try this and give me your feedback.
    Regards
    Raja

  • Complex XML import

    Hello,
    I am faced with the task of importing a rather complex (about 50-60 tables, tree depth about 5-6, data in both attrs and nodes) XML tree into a relational schema (non-nested tables).
    I have understood that the XSU/XMLSAVE is not that fond of attributes and stores sub-types as objects(?) so it's not an "out-of-the-box-solution". Is it worth trying to write XSL for it or should I just read the DOM-tree and iterate over it manually and store it? Are there any other alternatives?
    Thanks in advance,
    -Nik

    Nicklas, do you need to insert into an existing relational schema?
    If not, you could use XML Db's option to create an object-relational schema based on the XML-schema definition of your XML.
    Load your xml-document into the XML-type table and the data gets loaded in the underlying object-relational schema. You can define vies on this object-relational schema for simple access.
    Btw., if yes, then you could do the same en use simple SQL to move you data to the final tables.

  • Insane XML Import, Huge Project, Duplicate file names work around...

    I planned on kicking off my journey attempting to edit a massive multi year documentary on FCPX with a nice introduction of the blog I'm going to keep about the experience, but I've run into a bit of a roadblock, or maybe major speed bump at least before even getting to that point. I wanted to share what is working as a work around for me and you guys can tell me how I'm doing it wrong.
    Ok, I will try to explain this as succinctly as possible. I'll write in somewhat stream of consciousness just to try and get through it quicker... Basically, after discovering the work around below, I am now utterly confused on how FCPX handles the relationship between its own database of where media is stored, and the actual media itself. I have plenty experience on FCPX now, probably done 30-40 pro commercial jobs on it over the last year since XML became doable as I'm also a Resolve Colorist and all the FCPX projects where hardcore coloring product spots. For commercial work, I never needed to worry about splitting up footage up over multiple Events. Everything, all in one, FCPX handled it no problem. (well the occasional beach ball, but that seems to be a thing with FCPX in general)
    This will be my 10th feature documentary as an Editor. Every one before it was either on Avid's many flavors over the last 12 years or FCP Studio. When this new film came along, I made the decision a few months ago to use FCPX for a few reasons, but mostly because I'm insane and I like to try to mix it up for myself in a career that can get stale quick if you aren't willing to be that way. The film was shot over 2+ years, every shoot was multi cam 5D (yes i know, looks great, but please kill me), I haven't done the math on length, but there is over 10,000 clips of video (this is actually medium in size compared to what I've dealt with before). Its 5D, so theres external audio for everything. FCPX's syncing is great, but I've learned that theres an unsaid window of heads and tales clips must fall within to sync properly with the nearby clips, if they are too far apart FCPX gives up. One shoot day could have 3 cams, 50 clips each, and 2 audio files to sync to, FCPX simply cannot handle this, so off to Plural eyes they went, no problems.
    Ok, all this is relevant eventually I swear! Again, in the past, all in one event, no problem. I tried for fun to bring all media into one Event on this film. It worked, but there is a 10+ second spinning beach ball for every single move you make, so thats no good. Ok, I'll separate the Events out to, lets say, each shoot month. Well that's dumb, in verite documentary, any shot could be the first, any shot could be the last, you need a command over all searchable footage at all times. Shift selecting all events to search *****, and it actually takes longer for FCP to reload each event each time than it does to just have the one massive one. So no go there. Next hair brained idea... What if make a new Event that is just Compound Clips of all the other Event's contents and do more with Markers and Favorites in logging that I was planning to parse it all out. That way I'm working with and FCPX is dealing with 50-60 clips instead of 10,000+ Quick test, Cmd-A, Opt-G, boom, boom, boom, move all to dedicated to Event, hide huge Event, BEHOLD, that works! FCPX chokes a little bit on the insane length of some of the clips, but searching, and general performance is back on par!
    So your saying to yourself "Ok *********, sounds like you figured it out, what's the problem." Well to you I say, "Not so fast!" Remember, that was just a quick test using the media I had imported into the massive 10,000+ clip Event. To do this project proper, I am having to import Multicam sync'd XMLs from Plural Eyes. And this is where it all starts to fall apart. A little foreshadowing for your eager eyes. 10,000+ files all shot with multiple 5D's over the course of years. What does that mean? many, many duplicate file names!
    FCPX as well all know irritatingly imports XML's as new Events, not into existing ones. This obviously takes a lot of burden off media management because with a new Event comes a new database referencing its own version of the raw media. All well and good, and I'm betting its starting to click for some if you advanced users where I'm finally going with this. So I have 50 or so XMLs to bring in, all done no problem. Now I want to replicate that singular Event like I did with the Compound Clip test and have it all in one place to be my master as extensive logging begins for easy searching once editing begins. Highlight the Events, click Merge Events. NOPE. I get a new "Kill Yourself Now" error (a term I coined for Out of Memory and General Error messages in FCP Legacy meaning there ain't much you can do about it): "Two or more files have the same name. Change the names and try again, because I don't know what the **** to do with them." Ok I made up that last part but that's basically what it's saying. Just take the variable out of the equation, this happens with every which way you could try to get the clips together. Merge Events, dragging events on top of each other, dragging just the Multicam clip alone, nothing gets passed that message. What's worse is that while Batch Renaming seems like a solution, the renames do not populate inside the created clips and there is no way to Batch Rename those. Renaming everything at the finder level isn't so great because then I'd have to resync and theres an offline/online thing going here where the film has to be reconformed eventually.
    Basically, I've found that FCPX handles media management in completely different ways depending on whether you are importing into one Event yourself or doing essentially what is a new import with FCPX moving or merging Events. If you bring in all the media to one Event, on a macro level FCPX goes through file by file making aliases referencing the master file. If it hits a duplicate, it makes a parenthesis counter, and keeps going. And with the genius of FCPX metadata, that file name doesn't even matter, you can change it at the Finder level and FCPX will keep the link intact. BUT for some reason if you try to do this outside the realm of a single Event and combine files after the fact a different process takes over in creating this database system and can't handle the duplicates. I can't totally figure the reason other than it probably is scared to change the originally referenced alias to something else (which it shouldn't be scared of since Merge Events deletes the original anyway).
    This is where it gets INSANE and where I lose all understanding of what is going on, and believe me it was a delicate understanding to begin with. It comes in to play with the work around I figured out. I make the master Event with the 10,000+ clips. Then I import all the XMLs as dedicated Events. Now, I then drag the Multicam clips into the master Event, it WORKS! just takes it, no "Kill Yourself Now" error. Stranger still, now with the switched referenced Event, it even takes into account which aliased duplicate file name it's referencing in the Original Media folder. Somehow, it's taking into account the original file path and saying "Ok, I see 5 instances of MVI_5834.mov. Based on the original file path or maybe creation date or god knows what, it must be MVI_5834 (fcp3).mov." It connects perfectly. I can even remove the old XML imported Event with no problem. Crazier yet, I can now move those again to the dedicated Event I wanted originally that only contains those Multicam or Compound Clips.
    So instead of going straight from A to C, going from A to B to C works even though that actually seems way more complicated. Why can't FCPX handle Merge Events and dragging clips the same way it handles media imported into a single Event. And weirder still, why can't FCPX handle the (fcp1,2,3...) appending in the same scenario. But if the appended links are already there, No Problem. And for the love of god, it'd be nice to important XML's into existing Events and make the correct referencing happen right from the get go, which is really the source of all the above headache. I'd have no problem helping FCPX with a little manual pointing in the right direction just like any other NLE needs.
    Ok, having said all of that crap above, my question is, have I missed something completely simple I should have done instead? Now that I have everything in place how I originally envisioned, I think I will still play around a little bit more to make sure FCPX is really going to be able to handle this project. I'm at a stage right now where going another direction is still an option, although the dare devil in me wants to make this work. Media management aside, once you start editing on a FCPX timeline, its hard to go back to anything else. Apple is going to have to figure out some way not to access to everything at all times to work fluidly or big projects like this are never going to be practical in FCPX.
    Sorry for the long confusing post....

    I'm having the exact same problem, but I know nothing of ruby scripts. I've exhausted my resources with tech support, and after literally hours of work with them it seems I now am faced with either re-rating each individual song, or pointing iTunes to each song that it can't locate. Is yours a solution that could help me? How can I find out more about Ruby Scripts? Thanks for your help, hellolylo (or anyone else who might also be able to help...)
    Kenn

  • Error for fetching long text in xml tag for xml publisher report

    My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
    button, or try again later.
    The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
    G_MEDIA...
    XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
    G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
    data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
    If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
    in xml tag.
    One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
    Please help.

    Hi,
    Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report...

  • Unable to locate Spring NamespaceHandler for XML schema namespace

    I am not sure if this is the best practice approach but this is the problem I am ruining into. Below, I explain what I am doing:
    1) What I am doing:
    =============
    Based on the oracle incubator example (http://coherence.oracle.com/display/INCUBATOR/Processing+Pattern+Examples); I am running a server and submitting tasks through a proxy application that submits them to ProcessingPatternConfigurator; let's call my task processReport.
    a) my processReport is using spring and ibatis together, I created a utility static class to obtain a spring context and retrieves beans using the following lines ( see exhibit "A1 and A2" below).
    b) when my task calls the context and that spring loads, it is failing with the error show in exhibit "B".
    I suspect I am missing a lib? I googled the error and searched you site but could find a meaningful discussion on it. I guess my question is if this is not the best approach, how do I integrated with spring initializing beans and setting up ibatis framwork, providing beans and database access through Ibatis for each task ruining on the grid (processReport).
    thanks
    A1) processReport (submitted in the grid) uses this line
    AbstractXmlApplicationContext ctx = (AbstractXmlApplicationContext) AmrContextUtil.getInstance();
              System.out.println("Classpath loaded. Executing Report...");
              ReportProcessor repProcessor = (ReportProcessor) ctx.getBean("reportProcessor");
    A2) Here is the AmrContextUtil:
    import org.springframework.context.support.AbstractApplicationContext;
    import org.springframework.context.support.ClassPathXmlApplicationContext;
    public final class AmrContextUtil {
         private static AbstractApplicationContext ctx = null;
         public AmrContextUtil() {
              super();
         public final static synchronized AbstractApplicationContext getInstance(){
              if (ctx == null){
                   ctx = new ClassPathXmlApplicationContext("classpath:config/applicationContext.xml");
                   setCtx(ctx);
              return ctx;
         public final static synchronized AbstractApplicationContext getCtx() {
              return ctx;
         public final static synchronized void setCtx(AbstractApplicationContext ctx) {
              AmrContextUtil.ctx = ctx;
    B) Here is the error reported by the server:
    2010-02-10 15:42:28.312/57.986 Oracle Coherence GE 3.5.2/463 <Warning> (thread=GridExecutor:Thread-2
    , member=1): TaskRunner - Failed to process 0x00000126B99E5524AC1F007AAB1587BBCFEC5E6637E1DED6CCB984
    03D6AADF4D due to:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:config/reports-application.xml] Offending resource: class path resource [config/applicationContext.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing
    Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: *Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]*
    *Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'*
    -> Property 'resourceMap'
    c)Here is my application-context.xml offending line:
    <bean id="reportSqlMapConfig"
    class="com.xx.report.generator.ReportSqlMapConfig">
    <property name="resourceMap">
    <map>
    <entry>
    <key>
    <util:constant static-field="com.xx.report.domain.ReportType.FPA"/>
    </key>
    <value>classpath:config/diehardReportSqlMapConfig.xml</value>
    </entry>
    <entry>
    <key>
    <util:constant static-field="com.xx.report.domain.ReportType.FCN"/>
    </key>
    <value>classpath:config/falconReportSqlMapConfig.xml</value>
    </entry>
    <entry>
    <key>
    <util:constant static-field="com.xx.report.domain.ReportType.ODS"/>
    </key>
    <value>classpath:config/odsReportSqlMapConfig.xml</value>
    </entry>
    </map>
    </property>
    </bean>

    My guess is that something is broken in the configuration of the cacheServer and its not finding
    all of the dependencies that your process pattern application needs. Probably the best way
    to debug this stuff is to define a static main in your runnable task which will make the call
    to the run() method and invoke it as the main class using the identical settings (classpath,
    run directory) that you are using to launch the Coherence cache server.
    Regards,
    Bob

  • Error messages during XML import of Project Pro 2010 files

    Hi folks,
    I'm trying to diagnose a couple of sick Project Pro 2010 files loaded from Project Server by saving them locally as XML files and then reimporting (not connected to the server during import).  The anomalous behavior exhibited by both files
    is that one takes 15 minutes to load from the server, while another takes over 20 minutes. These are not typical load times for this server.  In both cases, Project consumes about 25% of the CPU during the load process. There's little network I/O
    while this goes on, and when externally linked schedules are loaded to the cache, they load very quickly.  Other than the long load times, the schedules appear to be behave normally, except for some very odd print preview behaviors in one of the schedules
    that I asked about in a different thread (among other things, the default print preview start date is 17 years after the default finish date, and the finish date is about 11 years before the schedule actually starts).
    The questions I'm asking here are about errors I see when I try to import the files exported as XML, and whether they might provide any clues as to what's causing the load time issues.
    When attempting to import one of the files saved as XML, a pop-up appears that says, "The actual finish date is before some of the previously entered timephased actual work values. If  you continue with this operation, Project will truncate
    some of the previously entered timephased actual work values. To continue, click OK..."
    When attempting to import the other file saved as XML, I get a series of pop-ups identifying a series of tasks that say, "The timephased edit will cause 'Develop Requirements Review Meeting Mi...' to start before 'Conduct Requirements Review"
    finishes.  As a result the task link cannot be honored.  You can: () Continue. Keep the timephased edit and ignore the link.  () Cancel. Ignore the timephased edit.  (OK/Cancel/Help)".
    Interestingly, both files contain external Project Server predecessor / successor links.  In the case of the first file, the XML import just appears to strip those out.  In the case of the second file, I get a long series of pop-ups (with
    some buggy text inserts) in pairs.  The first message in the pair is typically "An import error occurred.  The element <PredecessorLink> in the <Task> element with <UID>=611 has invalid data.  Verify that the file
    name and path are correct, and then try again. (OK)", where the indicated UID varies. The second pop-up in the pair appears to have a buggy text constructor and looks like this, with "[stet]" indicating the apparent buggy text inserts,
    "An import error occurred.  The element [stet] Verify that the file name and path are correct, and then try again. [stet] in the 309 element with <UID>=7 has invalid data. [stet] ^4 (OK)"
    In the second pop-up of the pair, the "xyz element" varies, but the "<UID>=7" reference and "^4"  are consistent. In the XML, UID 7 appears to refer to a calendar, a task which includes a number
    of entries similar to:
    <TimephasedData>
    <Type>24</Type>
    <UID>7</UID>
    <Start>2014-10-03T08:00:00</Start>
    <Finish>2014-10-04T08:00:00</Finish>
    <Unit>2</Unit>
    <Value>PT8H0M0S</Value>
    </TimephasedData>
    ... and to an assignment:
    <Assignment>
    <UID>7</UID>
    <TaskUID>10</TaskUID>
    <ResourceUID>-65535</ResourceUID>
    <PercentWorkComplete>100</PercentWorkComplete>
    which includes blocks like:
    <TimephasedData>
    <Type>2</Type>
    <UID>7</UID>
    <Start>2014-10-17T08:00:00</Start>
    <Finish>2014-10-17T17:00:00</Finish>
    <Unit>2</Unit>
    <Value>PT8H0M0S</Value>
    </TimephasedData>
    Eventually, the second file also does load with no external file links indicated.
    Again, I'm just looking for anything that might be a clue to the long Project Server load times.
    Thanks in advance,
    LP

    Slow performance can come from a number of different things. Without knowing more detailed information about your setup or workflow, it's difficult to accurately troubleshoot.
    -What kind of Mac are you using?
    -What is your source format?
    -Where is your source footage located?

Maybe you are looking for