Basic  XML Publisher Question: How to access tags in the higher levels?

Hi All,
We have a basic question in XML Publisher.
We have a xml hierarchy like below:
<CD_CATALOG>
<CATALOG>
<CAT_NAME> CATALOG 1</CAT_NAME>
<CD>
<TITLE>TITLE1 </TITLE>
<ARTIST>ARTIST1 </ARTIST>
</CD>
<CD>
<TITLE> TITLE2</TITLE>
<ARTIST>ARTIST2 </ARTIST>
</CD>
</CATALOG>
<CATALOG>
<CAT_NAME> CATALOG 2</CAT_NAME>
<CD>
<TITLE>TITLE3 </TITLE>
<ARTIST>ARTIST3 </ARTIST>
</CD>
<CD>
<TITLE> TITLE4</TITLE>
<ARTIST>ARTIST4 </ARTIST>
</CD>
</CATALOG>
</CD_CATALOG>
We need to create a report like below:
CATALOG_NAME     CD_TITLE     CD_ARTISTCATALOG 1     TITLE1     ARTIST1
CATALOG 1     TITLE2     ARTIST2
CATALOG 2     TITLE3     ARTIST3
CATALOG 2     TITLE4     ARTIST4
So we have to loop at the level of <CD> using for-each CD. But when we are inside this loop, we cannot access the value of CAT_NAME which is at a higher level.
How can we solve this?
Right now, we are using the work-around of set_variable and get_Variable. We are setting the value of CAT_NAME inside an outer loop, and using it inside the inner loop using get_variable.
Is this the proper way to do this or are there better ways to do this? We are running into troubles when the data is inside tables.

you can use
<?../CAT_NAME?>copy past to your template
<?for-each:CD?> <?../CAT_NAME?> <?TITLE?> <?ARTIST?> <?end for-each?>

Similar Messages

  • How do I tag all the contents of a folder?

    How do I tag all the contents of a folder?
    I'm trying to add an archive tag to a lot of files and folders, and is it possible to just tag the parent folder and all files and folders within it to adopt this tag, so that when I come to search for a document later on, and it has an archive tag, I know to dismi

    Ideally, the program you want to delete has an 'uninstaller' application and that should delete all the files. If that isn't available you could download and run this free app: http://www.freemacsoft.net/appcleaner/
    Probably not as thorough but it will do the job of ridding you mac of most of the files associated with the app you no longer want.

  • I need to know how to access and use the Blue Tooth device that comes with the Thinkpad W520

    Forgive me for being a techo illiterate. But I know that this thing supports Blue Tooth. And one "problem" with it is although it has a DVD and sound card, music and movies have very lousy audibility. Is there something I can do about that? I can barely hear anything on a movie unless I plug in head phones to the computer. But that leaves me stuck in my seat. I'd like to get cordless headsets. And I'm ready to purchase the Plantronics BackBeat 903+ Wireless Stereo Headphones - Mic, Rich Audio, Bass-boost, Voice Alerts, OpenMic, 3-way Earpiece. And have heard that it's compatable with a pc that has Bluetooth capabilities. but could someone get back to me with exactly how I access and use the Blue Tooth device?

    I was searching for how to setup the 903+ and my W520 and came to this thread.
    1. The OP was asking about audio and there are updated audio drivers / tweaks to get it louder / install different drivers.
    but if you are going to go BT headset....
    2.  What I did for the 903+
    Uninstalled the currently installed ThinkPad Bluetooth program. ( I forget the exact name, came stock and was out of date).
    Required reboot.
    Activated the Bluetooth with FN + F5 menu.
    Downloaded the updated Bluetooth driver from lenovo (search lenovo driver matrix).
    Ran the updated Bluetooth driver install.
    Rebooted for good measure.
    Double-clicked the Bluetooth Tray icon.
    Clicked Add A Device.
    Turned off my 903+ and continued to hold down the power to enable pairing mode.
    Showed up in devices and added it.
    Worked for audio. There are probably additional options for enabling the mic.
    Hope that helps whoever might find this thread.

  • Hallo,my name is Adrian and i forgot my security questions,how do i find out the answers or how do i reset them? Thank You

    hallo,my name is Adrian and i forgot my security questions,how do i find out the answers or how do i reset them? Thank You

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • How to automat. copy configuration of higher level material to sub-item

    Hi Experts,
    I have Make to Order Scenario. 
    My customer wants the configuration of the non-phantom sub-items in the sales order to be automatically copied from the configuration of the higher level material.
    I have added the ZCOPY function module( to copy configuration) to the configuration profile of the sub-item but the program flow does not go through the function module because sub-item has a link to higher level material.
    If I go to the configuration of the sub-item in VA02, it appears a message u201CThe item configuration can only be changed by that higher level materialu201D. All chosen characteristics of the higher level material are shown, actually configuration of the higher level material is shown because of the link. But in CU44 of that sub-item, sales order no
    Characteristics are selected. 
    Any suggestion how and where to place automatic copy of the configuration of the higher level material to the sub-item?
    Kind regards,
    Danijela Zivanovic

    Vivek & Madhava
        Thank you for your comments. I know that adding A's routing to B is the best simple way to solve the problem. But as a little part of our global firm, our plant can't change master data related to cost calculation so easy. Every chance should be verified by global cost control team. And the routing is B is already very complex, we don't want to make it more complex.
        As same, create another material code is not available too because this should be considered by global team.
        Currently, we are creating production order for A separately. And A was looked as a component in B's production order. So, there are 2 production orders should be deal with. In fact, these two orders should be done at same time. It was complained by shop floor that too much order confirmation work to do. Warehouse complains too.  And further, this way disturbs production planning very much due to the system will not always plans these 2 orders together.
    Regards
    Robbie

  • How to make Default the Higher-Level Manager of the employee

    Dear experts,
    how to make Default the Higher-Level Manager of the employee as Further Participant in performance management ?
    Regards,
    TVS

    Hi,
    The delivered BAdI below defaults in both the appraiser and appraisee as part-appraisers//Default Further Participants.
    BAdI Area: Appraisal Enhancements
    BAdI Definition: HRHAP00_DOC_DEF_DO (Appraisal - Default Further Participants)
    App. Enhn.: DEFAULT_ALL_MANAGERS     
    Implementation: HRTMC_DEF_OTHERS
    Implementation short text: Determine All Managers
    Implement this BADI  in SE18/SE19 and  write the desired code in the  BADI methods
    Hope this will help u out.....
    Regards
    Lakhan

  • How do I permanently set the zoom level? I am sick of hacing to "ctrl +" on every page!!

    How do I permanently set the zoom level? I am sick of hacing to "ctrl +" on every page!! It is a HUGE waste of time. If I can't do it, then no more FF.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • XML PUBLISHER Questions

    Hi All,
    Following questions restrict to use of functionalities of XMLP:
    1. What could be functionality of Delivery manager of XMLP?
    2. How could process Delivery manager an user request?
    3. Delivery manager is full of Java API’s that means apps developer must know java. Am I correct? If it is Yes, what are java concepts need know so that developer can do his job successfully?
    4. What could be sub-template concept in XMLP? Please give one practical scenario.
    5. One scenario: I want generate group of invoices in PDF format and each invoice must generate in fresh page.
    XML Input to Template: Report output (output format in XML)
    Input parameters: Customer or Print date (i.e. all invoices of specified customer should populate)
    I could not able to generate each invoice in fresh page. Is it possible through XMLP?
    6. XSL: is language and used for transformation i.e. one form document to another form document (xml =>XHTML) am I correct?
    7. When do we go for XSL implementation in XMLP? Please provide example.
    8. Where do we write XSL code in template? Assume template I am using RTF form field method.
    Any help would appreciate.
    Thanks,
    [email protected]
    Date: 13-Aug-07.
    Hi All,
    What could be the difference between delivery manager and Document Processor engine?
    Could we use both for deliver XMLP documents to different Delivery channels?
    Thanks,
    [email protected]
    Message was edited by:
    user553699

    Hi All,
    I am also facing new problem while i am going to register template in following environment:
    Oracle applications version: 11.5.10.2
    XML publisher Version: 5.0.0
    My file size: 65 KB with out image
    363 KB with company logo
    The RTF used English language characters and want to register for English – USA
    My RTF template works fine in preview mode in Word. I go to upload it via XML Publisher Adminstator and I get a screen that just says "You have encountered an unexpected error. Please contact the System Administrator for assistance."
    What? The only option is Log out. Is there a way to validate my template to know what could possibly be wrong with it?
    Please let me know if any other information require about RTF template.
    Any help would appreciate.
    Thanks,
    Sai.Krishna @cavaya.com
    P.S: I do not know how to attach file in forum. please give me information how to attach file form so that i can attach RTF file.

  • XML Publisher Report:how to disappear the column if no data found

    Hi,
    I have a XMl publisher report requirement , the format is tabular lets say with the structure of 4 columns and 10 rows.requirement is to if suppose there is no data for row number 6 the row itself should not appear over the report and the immediate next row should come in place.
    please help me if any one of u has implemented the same.
    Ankit

    Ankit,
    This is almost hard to work although NOT impossible to achieve on the template.
    A little big of PL/SQL genius where all the columns are selected into variables may be used to achieve this, although you will have to manage them accordingly.
    I don't any other way round it.
    Rgds

  • How to add tags to the existing XML file?

    Hi,
    I have a requirement wherein I have to add a tag to the existing xml data.
    For Eg:
    <ROW>
    <EVNT_ID>7333976</EVNT_ID>
    <DISTRCT_CD>67</DISTRCT_CD>
    <TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
    </ROW>
    The desired output is,
    <DI_DATA>
    <ROW>
    <EVNT_ID>7333976</EVNT_ID>
    <DISTRCT_CD>67</DISTRCT_CD>
    <TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
    </ROW>
    </DI_DATA>
    I have to add <DI_DATA> </DI_DATA>at the start and end of the input.
    Could any of you help me on this?
    Thanks,
    GV

    If your XML is just in a CLOB, you can just use string manipulation to prepend/append the nodes on. If you have it in an XMLType you could just do the following
    select appendchildxml(XMLTYPE('<DI_DATA/>'),
                                  'DI_DATA',
                                  XMLTYPE('<ROW>
    <EVNT_ID>7333976</EVNT_ID>
    <DISTRCT_CD>67</DISTRCT_CD>
    <TIME_OFF>06-May-2008 10:50:04 AM</TIME_OFF>
    </ROW>'))  -- this would be your variable
      from dual;which will put your data within the DI_DATA node.

  • XML/XPath question--how to select a range of elements with XPath?

    Hi there,
    I have an XML DOM in memory. I need to do hold it and issue only parts of it to my client app in "pages". Each page would be a self-contained XML doc, but would be a subset of the original doc. So for instance the first page is top-level elements 1-5. 2nd page would be 6-10 etc. Is this solution best solved with XPath? If not, what's the best way? If so, I have the following question:
    Is there a way to use XPath to select a range of nodes based on position within the document? I know I can do an XPath query that will return a single Node based on position. So for example if I wanted the first node in some XML Book Catalog I could do XPathAPI.selectSingleNode(doc, "/Catalog/Book[position()=1]"); I could wrap the previous call in a loop, replacing the numeric literal each time, but that seems horribly inefficient.
    Any ideas? Thanks much in advance!
    Toby Buckley

    Your question is about marking a range of cells. 99% of the code posted has nothing to do with this. If you want to create a simple table for test purposes then just do:
    JTable table = new JTable(10, 5);
    JScrollPane scrollPane = new JScrollPane( table );
    getContentPane().add( scrollPane );
    In three line of code you have a simple demo program.
    When I leave the mouse button again, these bunch/range of cells shall stay "marked". table.setCellSelectionEnabled( true );
    and I'd like to obtain, say, a vector of a vector containing just those data marked beforeUse the getSelectedRows() and getSelectedColumns() methods for this information. I would suggest you create a Point object to reflect the row/column position and then add the point to an ArrayList.

  • How to access and restore the files in recovery D on my HP Pavilion Windows 7??????

    Im not very good with the technological side of computers, but it asked me to restore to factory settings after turning my computer on in the morning. I asked it to back up my computer so I can restore it which I believe it did to the Recovery D drive. I can open this file but it comes up with
    Recovery Partition Warning
    This area of your hard drive (or partition) contains files used to perform and system recover.
    Do no delete or alter any of these files
    Any change to this partition could prevent a system recovery in the future.
    It also says there is 1.94GB free of 15.7GB which must mean there are files in there but I dont know how to access them.
    Please help and please try to speak in term in which I may understand. As I said I dont really understand computer language lol.
    Thanks in advance for your help.

    Thank you. I think I completely stuffed it up. I didnt put anything into my computer to back it up like an external hard drive because I dont think I actually know what the computer was doing at the time so looks like I may have lost all my previously applications, settings and data. Oh well I'll have to live with that, Thanks for your help much appreciated

  • Realtime data for a flash game - how to access/handle/poll the back end.

    Hi,
    I'm about to start working on a game that will be played on multiple consoles simltaneously. The user input from each console will be fed into a server and would populate a database/external store. This needs to be a client/server architecture where the flash client (the game on the kiosk), works on real time data that it gets from the server. Keeping in mind the "real" time aspect of the gamelplay and that it would involve multiple users at a time, I'm not really sure of how to interface the database with AS. The back end will essentially be PHP/MYSQL driven and I was thinking of maybe using AMFPHP service calls. But would this be efficient for a real-time setup ? Also, the users of the game, can be playing it physically on a touch screen kiosk , on the web, on SMS all at the same time!!
    There are aspects in the game design, where a character changes animation based on their input. For example: If a user is playing an auction game and if his bid is the lowest (at the time of bidding), his character might start jumping. I'm not sure how to access this real time information from the database so that I can use it in Flash succesfully for such a client/server based multiplayer game.
    Please advice.
    Thanks
    smaira
    Message was edited by: sameermaira

    you would use the urlloader class from flash to access your server-side php and your php will query your database.

  • How to access objects in the Child Form from Parent form.

    I have a requirement in which I have to first open a Child Form from a Parent Form. Then I want to access objects in the Child Form from Parent form. For example, I want to insert a record into a block present in Child Form by executing statements from a trigger present in Parent Form.
    I cannot use object groups since I cannot write code into Child Form to first create object groups into Child Form.
    I have tried to achieved it using the following (working of my testcase) :
    1) Created two new Forms TESTFORM1.fmb (parent) and TESTFORM2.fmb (child).
    2) Created a block named BLK1 manually in TESTFORM1.
    3) Created two items in BLK1:
    1.PJC1 which is a text item.
    2.OPEN which is a push button.
    4) Created a new block using data block wizard for a table EMPLOYEE_S1. Created items corresponding to all columns present in EMPLOYEE_S1 table.
    5) In WHEN-NEW-FORM-INSTANCE trigger of TESTFORM1 set the first navigation block to BLK1. In BLK1 first navigable item is PJC1.
    6) In WHEN-NEW-ITEM-INSTANCE of PJC1, code has been written to automatically execute the WHEN-BUTTON-PRESSED trigger for the "Open" button.
    7) In WHEN-BUTTON-PRESSED trigger of OPEN item, TESTFORM2 is opened using the following statement :
    open_form(‘TESTFORM2',no_activate,no_session,SHARE_LIBRARY_DATA);
    Since its NO_ACTIVATE, the code flows without giving handle to TESTFORM2.
    8) After invoking OPEN_FORM, a GO_FORM(‘TESTFORM2’) is now called to set the focus to TESTFORM2
    PROBLEM AT HAND
    ===============
    After Step 8, I notice that it passes the focus to TESTFORM2, and statements after go_form (in Parent Form trigger) doesnot executes.
    I need go_form with no_activate, similar to open_form.
    Edited by: harishgupt on Oct 12, 2008 11:32 PM

    isn't it easier to find a solution without a second form? If you have a second window, then you can navigate and code whatever you want.
    If you must use a second form, then you can handle this with WHEN-WINDOW-ACTIVATED and meta-data, which you have to store in global variables... ( I can give you hints if the one-form-solution is no option for you )

  • How to access lyrics on the 11.0.4.4 update?

    the new update has limited the songs that i can put lyrics into. any suggestions on how to solve this?

    The instructions in the article from which you came are substantially still correct. The only difference is that the link to manage hidden purchases is titled "manage" now and is located under the iTunes in the Cloud header.
    Regards.

Maybe you are looking for