PLz help xsl prob

this problem has been annoying me for a while now.
I cant see logically what im doing wrong.im trying to select all child nodes of a root node and print the current node
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:template match="/">
<html>
  <body>
    <fieldset>
      <legend>
        <font face="verdana,arial,helvetica" size="+3" color="#00006B">
            <xsl:apply-templates />   
        </font>
      </legend>
    </fieldset>
      <xsl:apply-templates />
  </body>
</html>
</xsl:template>
  <xsl:template match="*">
    <xsl:value-of select="name()" />
  </xsl:template>
  <xsl:template match="/child::*">
    <xsl:value-of select="current()" />
  </xsl:template>
</xsl:stylesheet>The first template prints the root node name just as i want but the second template will not work.the page is just blank.can anyone help me??i cant find many examples liek this.im trying to write an xslt that can create a standard html representation for any xml file.
Many thanks

Look for [email protected] (http://www.mulberrytech.com/) and post it there. Amazing xslt people on that mail list! The author of Saxon Micheal Kay and others answer questions about xslt there.

Similar Messages

  • Plz help prob with a query and.. a trigger

    hi..
    1)i've created a view.gave the commit..
    now when i execute this query i get no rows selected...
    sql>select text from user_views where view_name='d1_v';even when i give sql>select * from user_views; all i see are column names and nothing else..
    do i need to grant my user any privilige. my user has create any view privilige.
    2)
    is it possible for me to create a trigger that updates records by itself for every 6 months by adding 1000 to the sal field
    i tried
    create or replace trigger after logon on emp ..............like that
    but i receive an error saying system triggers cannot be based on tables or views..
    plz help me out..
    thank u
    rajiv

    1. Try "select text from user_views where view_name='D1_V';
    BTW, no need to use "commit", CREATE VIEW is a DDL command, and DDLs do implicit commit.
    2. Why do you want to use triggers ? You can do that in at least two other ways : cron jobs and Oracle jobs.

  • Experts plz help its very urgent

    hi expert
    plz help- me
    previously i was getting dump in this statement
    TRANSFER v_tab TO p_file.
    FYI:
    here v_tab is a table which hav som records
    and p_file contains the path of a file like c:\new\ggg.txt
    DATA: v_tab TYPE STANDARD TABLE OF t_line WITH HEADER LINE,
    TYPES: BEGIN OF t_line,
           pspid(9) TYPE c,
           tab1 TYPE x,
           post1 TYPE proj-post1,
           tab2 TYPE x,
           vernr TYPE prps-vernr,
           tab3 TYPE x,
    END OF t_line.
    DUMP I WAS GETTIN :
    For the statement
       "TRANSFER f TO ..."
    only character-type data objects are supported at the argument position
    "f".
    In this case. the operand "f" has the non-character-type "T_LINE". The
    current program is a Unicode program. In the Unicode context, the type
    'X' or structures containing not only character-type components are
    regarded as non-character-type.
    to avoid this dump i used feild symbol
    assign V_TAB to <IN> casting.
          p_file = <in>.
          unassign <IN>.
    nw there is no dump
    but problem is p_file contains the contents of v_tab not the file path .
    plz help me its very urgent
    thanx in advance

    Hey, no probs,
    after your initial declaration, do this.
    TYPES: BEGIN OF n_line,
    pspid(9) TYPE c,
    tab1(15) TYPE c,        "check the length you want
    post1 TYPE proj-post1,
    tab2(15) TYPE c,         "check the length you want
    vernr TYPE prps-vernr,
    tab3(15) TYPE c,         "check the length you want
    END OF t_line.
    DATA: n_tab TYPE STANDARD TABLE OF n_line WITH HEADER LINE.
    now after you fetch data into v_tab,
    move it to n_tab.
    using a loop at v_tab and move corresponding fields to n_tab's work area
    append to n_tab.
    once you have populated n_tab and are ready to TRANSFER.
    OPEN your file using
    open dataset <file> for output in text mode encoding default.
    now
    loop at n_tab.
    TRANSFER n_tab to p_file.
    endloop.
    CLOSE DATASET.

  • Reports are not called from form in browser plz help

    Hi,
    I have installed 9iAS+8.1.7 database on the same machine with NT4 server.My system's forms(.fmx) are running well but my reports are not running from my main form.i call reports from the
    from as,
    Run_Product(reports,'..\iReports\xglrxx12.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);
    Actually want to know the report's setting when calling from the from in a browser(environment variables,virtual paths etc.).
    My database is installed in drive E:\8idb_home\ and 9iAS is on
    G:\9iAS_home\.My systems .fmx & .rep files are in "iforms" and "ireports" folder respectively.
    Plz help!
    Many thanks!

    Hi,
    First of all thanks to Vincent Botteman for solving the prob.
    Yes when i changed my call of run_product by excluding the path i have specified when calling from form it then makes a result.
    Also specified the entry of your reports .rep files by giving path in reports60_path registery variable as,
    Run regedit-->Hkey_Local_Machine-->Software-->Oracle here give the full path of your .rep files as an first entry in reports60_path variable.And finally not mention the path when calling reports from form as,
    Run_Product(reports,'xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Correct way.
    Run_Product(reports,'..\iReports\xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Wrong way.
    Regards!

  • Query on FBL3N................Urgent  plz help me on this.

    Hi Friends
         Here is my query,
    I am changing the tcode FBL3N to add one extra field into it and to display data in the name1 field for the spcific entries in the selection screen,
    After selecting the All item radio button and giving the range in the select-options when i am pressing F8 it is giving me the correct output,after that when i am trying to display the name1 field by selecting the ctrl+f8 button and pressing the apply button  it is giving me the error as
    "An internal error has arisen in the form routine ANALYZE_ACT_FIELDCAT
    for program RFITEM_INC.
    This is due to inconsistencies between table T021S (special fields) and
    structure RFPOSEXT."
    I changed everything to Y* but still it is giving the error.
    Plz help me in this if someone face the same prob or someone having idea on this.
    Thanks a lot in Advance
    Mrutyun^

    Hi Mrutyunjaya,
    Did you manage to resolve this error?
    Thanks and Regards
    Pras

  • PLZ help me w/ battery problem

    ok i bought my ipod mini last may. 4 the past few months, after i charge it 4 4 hrs, ill listen to maybe 3 songs, and a 45 min long podcast and then it dies w/ the "battery out of power, pls connect ipod 2 pwr". i brought it in 2 da apple store, they tested it and sed it worked 17 hrs. i continued to have the same problem. i have called them on the phone and sum1 told me that i cant exchange or return it after 14 days.
    the warranty only works that if they find a prob, theyll fix it or replace ur ipod.
    i relly am losing patience. i h8 the apple co. their products r cheap, i wasted 200 dollars on this and it wont work. dont they realize the ipod minis have so many problems- they stopped making them.
    i only have 3 months left on my warranty- PLZ HELP ME!!!
      Windows XP  

    Jeff Bryan is right… absolutly right… But, let me give you my experience… I had, and I wrote this post two days ago, a big Battery problem… I repeat : When I inadvertendly updated my iPod Mini first generation into the new one (1.4, then 1.4.1 in order to correct the bug), my iPod started to bug… The bug was : after 30 minutes, or 1 seconds (as soons as I turned it on), or 10 minutes, — in few words it depended on the iPod —, it cuts violently off… Imagine my head hearing a sudden cut-off whereas you were listening a The Ruts "Jah war", or the Fall "New face in ****" (that were my face which was in ****, in fact), or a Joy Division's "The Kill", or a Clap your Hand say Yeah… I don't know… Imagine my face… Well I posted plenty of posts in French Mac discussions, then in Apple Discussions, in order to find solutions… I received great advices from for instance Jeff Bryan, and of course french iPod users… But nobody understood why the update software was the origin of the battery problem… I called Apple France, they answered to me that there was not a Battery problem (they were right because before updating, the iPod used to run for 7 hours)… They adviced me to reset, reset, untill it corrects the bug… That I did… But, in fact, I wrongly reseted… and I was able to correct it… yesterday, I was pretty upset seeing all around me with their Nano, their Video, or their Photo, OR their MINI∞ whatever… I reseted one more time and suddenly, a page with all languages (the famous first page you have when you just formated it), which meant that I correctly reseted… I was very ashamed because, till yesterday I wrongly reseted it… Now… after a little bug, it works… I succeeded to get over the third (because after updating it into the 1.4, 1.4.1, it cut off after a third iPod listenning… and even though I went back with the 1.1, then the 1.3, it cut off after a third iPod listenning… What a stress !!)… So if you are sure that this is not a Battery problem, I mean if before this problem you usually had no problem battery, I advice you to reset it carefully…
    I would like to thank Jeff Bryan for his great advices…

  • Plz Help(Reg javascript & jsp)

    hi all
    I am new to java .i strcked in one situation.
    in appl, i used scriptlet code in javascript.
    can i write script let code in javaScript.there is any prob,while writing sciptlet code in javascript.
    i posted my code here .plzz help me.
    function sendvalues(firstinstall){
    var installmentfee = new Array();
    <!--installmentfee is an array to store resp installment fees-->
    <%
    for (int j = 0; j < al.size(); j++) {
    InstallmentVO insVo = (InstallmentVO) al.get(j);
    %>
    installmentfee[0]=firstinstall;
    installmentfee[<%=j+1%>] ="<%=insVo.getTotalFee()%>";
    alert(installmentfee[<%=j%>]);
    <%}%>
    alert(installmentfee[2]);
    var val = document.form.money.value;
    <% int k=0;%>
    while(val>=0) {
    alert("k"+<%=k%>);
    if(val>installmentfee[<%=k%>]){
    val=val-firstinstall;
    document.form.installamount<%=k%>.value = (firstinstall);
    bal=0;<% k++;%>
    }else{
    document.form.installamount<%=k%>.value = (val);
    bal=(firstinstall)-(val);
    val=-1;<% k++;%>
    document.form.balance0.value =bal ;
    if(document.form.balance0.value<=0){
    document.form.FullPaid0.value = 'Y';
    else{
    document.form.FullPaid0.value = 'N';
    document.all['Layer1'].style.visibility = "visible";
    return false;
    plz help me.

    can i write script let code in javaScriptNo you cannot use scriplet code in a java script,
    scriplets are only used in JSP files.
    Kind Regards
    WernsScriplets are only used in JSP files.
    But OP's question was - can i write script let code in javaScript?
    According to my understanding, its possible. Yes, we can write scriplet codes in java script as below
    <html>
    <head>
    <title>Scriplet tags in Javascript</title>
    </head>
    <script>
    function foo(){
         <%System.out.println("Scriplet tags in Javascript");%>
    </script>
    <body>
    <form name="index" onSubmit="index.jsp" method="post">
    <input type="submit" name="submit" value="Submit" onClick="foo()">
    </form>
    </body>
    </html>and, U cant use scriplet tags in a javascript file(js file)
    Am I correct? Comments pls....
    Cheers.
    Message was edited by:
    astelaveesta

  • My nokia n900 freez plz help

    my new replacement by nokia n900 works fine since yestredy, this morning when i was on facebook browsing all of surdon my phone freez .now no option to go back, i switch off. and restart, with and without sim, its main screen comes but when i press any icon or menue  nothing happen . plz help what should i do? thanks
    Solved!
    Go to Solution.

    So so you still got that prob..? anyway don't worry about the warranty. And font be afraid to flash your device. its easy 
    This is for a windows PC
    1) Download the flashing software 
    Maemo flasher 3.5
    http://tablets-dev.nokia.com/maemo-dev-env-downloa​ds.php
    2) Download the image file
    Download the global PR 1.3 image.
    RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin
    http://tablets-dev.nokia.com/nokia_N900.php
    3) Install maemo flasher 3.5 to your PC
    Then open the folder that youve installed maemoflasher 3.5 and ,copy the image file to that folder.
    4) After that,,,
    Charge your battery to 100%
    Turn off your device
    slide out your keyboard and press and hold " u "button
    Connect your device to your PC via USB cable
    (back light wont be turned on. But you'll be able to see a freezed nokia logo)
    after that you can stop holding U button
    Then launch maemo flasher
    Type,
    flasher-3.5 -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin ​-f -R
    Hit enter!
    Done! I'll take about 2 mins to flash your OS!
    Click the star if this helps you
    Click the star if this helps you (",)
    If this is your answer, please do not forget to click "Accept as solution" (",)

  • Slow browser - plz help :)

    Hi all
    still trying to solve my speed prob
    Here's the setup:
    Mac Pro hadwired to AEBS
    with a mac address
    DHCP reservation: 192.168.1.2
    i can connect to internet but the pages take about 10 secs to load
    On my wireless powerbook pages load in about 1 sec.
    Tried hard reset but still the same thing
    Could it be the settings in the MacPro prefs?
    Here they are:
    Using DHCP with manual address
    ip: 192.168.1.2
    dns server: 192.168.1.2
    tcp/ip pannel:
    configure ipv4 with manual address:
    ipv4: 192.168.1.2
    configure ipv6 automatically
    dns pannel
    dns server : 192.168.1.1 (grayed out)
    192.168.1.2
    plz help
    thanks

    I solved the slow speed problem by switching from Ethernet 2 to Ethernet 1
    Why did that make a diffence ?

  • STUCK IN DFU MODE   PLZ HELP ME

    RECENTLY GOT A GIFT PACKED IPHONE 4S. LAST NIGHT MY PHONE WAS IN DFU MODE. IJUST WANTED TO UPDATE NEW FIRMWARE. BUT WHEN I CONNECTED TO LAPTOP AFTER PRESSED RECOVERY IT TOOK TIME AND SHOWD AN ERROR 1611 . WHATS THE MATTER . ITRIED ON ANOTHER PC BUT SAME PROB IM STILL IN DFU   PLZ HELP ME 

    From another post:
    Error 1611: This error may indicate a hardware issue with your device. Follow the steps in this article. Also attempt to restore while connected with a known-good 30-pin Dock Connector cable, computer, and network to isolate this issue to the device. The MAC address being missing or the IMEI being the default value (00 499901 064000 0) can also confirm a hardware issue. Out-of-date or incorrectly configured proxy or security software, such as FoxyProxy, can cause error 1611. To troubleshoot third-party security software, follow these steps.
    Above from:
    http://support.apple.com/kb/TS3694#error1611
    As specified, you likely have a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Well i set a passcode on my iphone 4 and ive forgotten it i have no idea what to do and i only just got this phone plus i dont want to do these bypassing with emergancy call just in case i get it wrong plz help (urgent)

    well i set a passcode on my iphone 4 and ive forgotten it i have no idea what to do and i only just got this phone plus i dont want to do these bypassing with emergancy call just in case i get it wrong plz help (urgent)

    If you set the phone to erase on 10 failed passcodes - then just keep typing and it will wipe itself. 
    Otherwise I believe you can set it to recovery mode and restore etc.. via iTunes...  There is no easy way as the passcode is designed to protect the phone exactly against what you are trying to do now...
    http://osxdaily.com/2011/01/08/iphone-recovery-mode/
    Others may have some additional tips !
    Sorry for the probs you are having...
    Regs Neil

  • Error while opening a module. plz help me, very urgent.

    when i try to open a module, the following error message appears on my screen.
              " no j2ee component found in d:\krisp\programs\servlets".
              i've installed bea in c: drive and my servlet program is in d: drive.
              plz help me, it's very urgent.

    Can you provide some more information? What were you doing when this happened?
              Can you post the entire error message?
              -- Rob
              WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Hi when i open my application folder, all the application is shown in trash folder. when i click the application it says this app is in trash first move it out. and when i try to open through finder go it says this file doesn't exist. can some1 plz help?

    hi when i open my application folder, all the application is shown in trash folder. when i click the application it says this app is in trash first move it out. and when i try to open through finder> go it says this file doesn't exist. can some1 plz help? how can i put all my application through application folder?

    Something really odd is going on. In your first screen shot, I noticed that the Applications folder does not have the proper icon displayed in the side bar. Also, in the title bar it lists it as Applications 08-59-29-909.
    Not sure where it's picking up that odd name, unless it's because it's still truly within the Trash folder.
    Try this. In the Finder > Preferences > General > turn on "Always open folders in a new window". (I have a feeling you have the default setting with this off).
    Now, in Finder > Go > move down and open the Applications Folder from there. Now open the folder where you see all your applications that you show in your screen shot, select all, and move them to this true appliactions folder.
    This is what you should properly seeing (but with different apps listed):
    See how the Applications folder has the icon of the letter A shaped with a pencil, ruler & pen.

  • How to select the download location? its automatically downloading to users folder in c drive. i wanna change it..plz help me out......

    how to select the download location? its automatically downloading to users folder in c drive.. i wanna change to my desktop...plz help me out...

    Tools -> Options -> Save files to -> Click browse button and browse for folder where you want to save the file.

  • How to print text/data in flex 3 using printer???Plz help...

       Hi,
              plz tell me the way to print text/data using printer in flex.  I tried the FlexPrintJob class. but it takes object of a container to be printed & prints the visible content of that container(along with scrollbars), bt i want to print all contents of the container(including invisible).
          I have tried to print bitmap image through FlexPrintJob but it takes lot of time for spooling... So plz help me out in printing(fast with all content) in flash
    I am using flex 3 (flex Builder 3 IDE).
      Thanks in advance!!!

    Hi Sagar,
    Don't worry You can use the below work around to print all the contents of the Container including the invisible contents under scrolll with out scroll bar..
    So what the idea here is we are seeting the container height to full size with out scrolls before sending the container object to printer and as soon as you print the object you are restoring it to the original height with scrolls...so that you can print the full contents without scrolls...
    You may have doubt that by chnaging and restoring the size the user may see momentary resize of the container but it is not so as it is a fraction of a second and user cannot notice this change... Give it a try ..I had already run into this problem recently and I have found a work around for this which is as below:
    // Here mainContainer is the container or box id the contents of which you want to print
       private function doPrintContainer():void
        var printJob:FlexPrintJob = new FlexPrintJob();
        if(printJob.start() != true) return;
        try
         var mainContainerHeight:int = mainContainer.height;
         //Increasing the height of the desired component to be printed.
         mainContainer.height = mainContainer.measuredMinHeight;
         mainContainer.verticalScrollPolicy = "off";
         //Adding the resized Component to our FlexPrintjob and then sending the print request
         printJob.addObject(this,FlexPrintJobScaleType.MATCH_WIDTH);    
         printJob.send();
         //Resizing the component back to normal size
         mainContainer.height = mainContainerHeight;
         mainContainer.verticalScrollPolicy = "auto";    
        catch(error:Error)
                     trace("Error : " + error.message);
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

Maybe you are looking for