Position() method -- any equivalent outside XSLT

Hi, here's my problem:
I'm trying to assign alternate-color backgrounds to a generated table, just as shown in the SampleXMLSQLServlet that comes with JDeveloper 3.
I'm trying to use an equivalent syntax to the
<xsl:for-each select='ROWSET/ROW'>
<tr>
<td class='r{position() mod 2}'>
<xsl:value-of select='ENAME'/>
</td>
</tr>
</xsl:for-each>that's provided in the example, however I want to use it in a client-side stylesheet using the
xmlns:xsl="http://www.w3.org/TR/WD-xsl"namespace. The simple 'r{position() mod 2}' syntax won't work in that case, and I've tried to find a workaround using the index() pattern method, but to no avail. Any suggestions?
thanks
Leonard Turing

In the older version of Microsoft XSL, you'll need to:
<tr>
<xsl:attribute name="class">
<xsl:value-of select="index()">
</xsl:attribute>
</tr>
and then combine this with some use
of <xsl:eval> to do the mod calculation.

Similar Messages

  • Default positioning methods settings for maps 3.04

    i have a nokia x6 with maps 3.04 installed. i have been messing with the positioning methods settings, and i forgot what the defaults were. can someone tell me what the default settings were for the positioning methods?
    i have reinstalled the maps, but i still get the same settings i have after i messed with them.
    Greece Nokia X6 RM-559 v40.0.002
    Solved!
    Go to Solution.

    Since last week, I had no issues about my credit getting reduced from maps. Now each time it ask for my Mobile Network, though I had been useing WiFi/Network  ticked. And it was charged. Now that when I have used only Integrated GPS, it shows still searching for locations... I cannot get my current location...
    Does any one know the solution for the same?

  • Any equivalent for "Oracle9i Database: Seminar Series for Oracle Server"?

    Dear all
    I'm interesting on the Oracle course named "Oracle9i Database: Seminar Series for Oracle Server" - [D16665GC10|http://education.oracle.co.uk/html/oracle/68US/D16665GC10.htm]
    AFAIK as Oracle 9i is unsupported, I don't belive that I can find this course available anywhere. So my question is: "Is there any equivalent for above course for 10g/11g?"
    Thanks in advance

    Kamran Agayev A. wrote:
    Dear all
    I'm interesting on the Oracle course named "Oracle9i Database: Seminar Series for Oracle Server" - [D16665GC10|http://education.oracle.co.uk/html/oracle/68US/D16665GC10.htm]
    AFAIK as Oracle 9i is unsupported, I don't belive that I can find this course available anywhere. So my question is: "Is there any equivalent for above course for 10g/11g?" Yes, those are excellent materials. A lot of the material is covered in the DBA 1 & 2 courses, but not as focused and not as 'in depth'. I encourage that you write directly to Oracle University and ask them to upgrade the seminar. (Tell them I'd be happy to update/deliver it. ;-))
    An alternative, and possibly even better, is to watch for (or ask for) a local presentation by Jonathan Lewis and/or Cary Millsap (Method R)
    /Hans

  • N97 Mini positioning method disabled after reboot

    Hi, I have the latest firmware installed on my N97 Mini (12.0.110) and have discovered recently that every time i reboot the phone, the positioning methods all get cleared(disabled). I have to go into the Locations option in the apps page and reselect each positioning method again. this is a pain. Are there any workarounds/fixes? Raj
    Lumia 800
    1600.2483.8106.11500
    7.10.7740.16
    Orange UK

    Presumably related to this problem is that if I try to restart the svc it gets disabled.
    For example (while tailing /var/svc/log/site-bind9:default.log in background):
    bash-3.00# svcs bind9
    STATE STIME FMRI
    online 3:37:45 svc:/site/bind9:default
    bash-3.00# svcadm restart bind9
    [ Apr 17 03:38:07 Stopping because service restarting. ]
    [ Apr 17 03:38:07 Executing stop method ("/opt/bind/var/svc/method/bind9 stop") ]
    [ Apr 17 03:38:07 Method "stop" exited with status 0 ]
    [ Apr 17 03:38:07 Disabled. ]
    bash-3.00# svcs bind9
    STATE STIME FMRI
    disabled 3:38:07 svc:/site/bind9:default
    Any ideas what is wrong with this svc (manifest posted above) ?

  • Hi when I stream video content to my Tv using Apple from my Ipad3 I find the Ipad goes to sleep after 2/3 minutes and disconects, the only way I have found to stop this is to continually tap the Ipad screen but there has to be a simpler method/ any help

    Hi when I stream video content to my Tv using Apple tv from my Ipad3 I find the Ipad goes to sleep after 2/3 minutes and disconects, the only way I have found to stop this is to continually tap the Ipad screen but there has to be a simpler method/ any help would be most welcome.

    Welcome to the Apple Community.
    Contact the developer of the Air Video app.

  • HT4967 Mobile Me was so handy. I pushed the little sync button and everything updated. Is there any equivalent for I Cloud?

    Mobile Me was so handy. I pushed the little sync button and everything updated. Is there any equivalent for I Cloud?

    Welcome to the Apple Community.
    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage. (not all these alternatives offer all the services previously provided by iDisk)

  • Delete  all occurances of any character outside a given set in a string

    Hi Experts,
    I have a situation in which I have to send a  file to some external system.
    The file is a fixed length file and I have been provided with the range of
    acceptable ASCII character set for the external system, which comprises of
    alphabet,digits and specific symbols: '-=\][';/.,!@#$%&*()_{}|:"?<>
    If any fiield of the file has any character outside this range, then I have to delete it.
    Looking at the huge length of the file.
    Please suggest some Function Module or anything that can handle this
    scenario without leaving an advese effect on the performance.
    Thanks in advance.
    Regards,
    Amit.

    Hi,
    @Srinivas--> Thanks for your solution , but I have a different situation, I have to exclude all the characters which are not in the range provided. I don't know what are those characters.
    @Katigiri---> Thanks for your solution, but using search I can find the known field. Here I have to find all those fields which are not in this range and delete them.
    Experts, please suggest me a procedure to find all the fields which are not in this range . So, that I can find them and delete them.

  • Cannot find the ''Positioning Methods'' option on ...

    Hello....I have recently bought the C7-00 and I wanted to test my GPS but I could not find the "Positioning Methods'' option to select the A-GPS, so can anyone help on this.
    Thank you.

    Do you not have a Location app in your Applications Folder ? As CJ mentioned , that is where you set your location methods to on/off. Inside Location you should have 3 sub folders, Landmarks,GPS data and Positioning. Open Positioning and you should be able to change the settings !
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • WIFI and mobile data connections not connecting with any other outside WIFI networks. Bluetooth not working in car. Any solution?

    After installed iOS7 I am facing the following two problems:
    1. WIFI as well as mobile data connection are working fine at my home. But, not connecting with any other outside WIFI networks. Error message is 'unable to join network'. Mobile data also not connected outside my home. Sometimes wifi and mobile data connect outside my home when I turn off and on the phone.
    2. Bluetooth, in my car, paires well and incoming and out going calls can be received and made. The problem is no sound out put from speakers.
    Apple please make note of the above problems (of million people) and give solution before giving any other updations for painting and tinkering the screens.

    Check this thread, the same solution might work for you:
    http://discussions.nokia.com/t5/Nseries-and-Symbia​n-Smartphones/N8-111-040-1511-Wifi-and-mobiledata-​...

  • How to Extract top most position in any given Org Unit

    Hi Experts,
    I have  a requirement to extract the highest position(or root position) in any given OrgUnit.  See the below example for more info.
    Eg: org1
           -- position1
        Org2
             -- position2   
        Org3
           --Org3A
              -- position3
           --Org3B
              -- position4
    As shown in the above structure, I need to extract the top most position in each Orgunit structure like postion1, position2, position3 and position4.  Note that Org3 does not have a immediate position or chief position so we are reading position3 and 4 instead for org3.
    Thanks in Advance,
    Vijay

    The best way is to search until there is no more, in order to create the hierarchy.
    To get all the B002 relationships for a respective Org. use parameter ACT_TDEPTH = 99 (i guess it won't go that deep) for the top Org.
    The output table RESULT_STRUC will have a hierarchy structure, with all organizational units below the top one. Use the fields LEVEL and PDOWN (or PUP) to construct the hierarchy. Then for each ORG. just search for the manager position (B012).
    Just a small look-in to what the fields in that table mean :
    LEVEL - Level of the Org.
    SEQNR - Index of ORG.
    PDOWN - SEQNR of ORG below.
    VCOUNT - Number of "brothers" (Orgs at the same level)
    PNEXT - Brother to the RIGHT
    PUP - Father
    PPREV - Brother to the Left
    Here is a sample program i made to insert this into a table that will later be used for creating an ALVTREE as an F4 for a field.
    REPORT  YHR00101UPDPG.
    * TABELAS
    TABLES: HRP1000, HRP1001.
    * VARIAVEIS AUXILIARES
    DATA: T_STRUC TYPE TABLE OF STRUC,
          WA_STRUC TYPE STRUC,
          WA_YTHR00035 TYPE YTHR00035.
    DATA: W_PLVAR type OBJEC-PLVAR.
    DATA: W_OBJID TYPE HRP1000-OBJID.
    * ECRAN DE SELECCAO
    SELECTION-SCREEN : BEGIN OF BLOCK bloco1 WITH FRAME TITLE text-001.
    PARAMETERS : P_objid type hrp1000-objid MATCHCODE OBJECT PLOMA,
                 P_begda type hrp1000-begda DEFAULT sy-datum.
    SELECTION-SCREEN END OF BLOCK bloco1.
    START-OF-SELECTION.
    * Get plan variant
      call function 'RH_GET_ACTIVE_WF_PLVAR'
           importing
                act_plvar = w_plvar
           exceptions
                others    = 1.
      CALL FUNCTION 'RH_STRUC_GET'
        EXPORTING
          ACT_OTYPE              = 'O'
          ACT_OBJID              = p_objid
          ACT_WEGID              = 'B002'
          ACT_PLVAR              = w_plvar
          ACT_BEGDA              = p_begda
          ACT_ENDDA              = p_begda
          ACT_TDEPTH             = 99
          ACT_TFLAG              = 'X'
          ACT_VFLAG              = 'X'
          AUTHORITY_CHECK        = 'X'
        TABLES
          RESULT_STRUC           = T_STRUC
        EXCEPTIONS
          NO_PLVAR_FOUND         = 1
          NO_ENTRY_FOUND         = 2
          OTHERS                 = 3.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      if not t_struc[] is initial.
        delete from YTHR00035.
      endif.
    * Agora temos a estrutura vamos criar a tabela YTHR00035
      LOOP AT T_STRUC INTO WA_STRUC.
        clear WA_YTHR00035.
        WA_YTHR00035-NIVEL          = WA_STRUC-LEVEL.
        WA_YTHR00035-SEQNR          = WA_STRUC-SEQNR.
        WA_YTHR00035-ORGID          = WA_STRUC-OBJID+0(8).
        WA_YTHR00035-FILHO          = WA_STRUC-PDOWN.
        WA_YTHR00035-NR_IRMAOS      = WA_STRUC-VCOUNT.
        WA_YTHR00035-IRMAO_DIREITA  = WA_STRUC-PNEXT.
        WA_YTHR00035-PAI            = WA_STRUC-PUP.
        WA_YTHR00035-IRMAO_ESQUERDA = WA_STRUC-PPREV.
    * Primeiro vamos buscar a descrição da Unidade Organizacional
        select single MC_STEXT into WA_YTHR00035-NMORG from HRP1000 where
          PLVAR = w_plvar and
          OTYPE = 'O' and
          OBJID = WA_YTHR00035-ORGID and
          BEGDA <= p_begda and
          endda >= p_begda.
        clear hrp1001.
    * Aqui verificamos se a Un. Organizacional tem uma posição de chefia associada
        select single * from HRP1001 where
          plvar = w_plvar and
          OTYPE = 'O' and
          ISTAT = '1' and
          OBJID = WA_YTHR00035-ORGID and
          RSIGN = 'B' and
          RELAT = '012' and
          BEGDA <= p_begda and
          endda >= p_begda.
        if sy-subrc = 0.
    * Encontramos uma ligação com uma posição de chefia
          WA_YTHR00035-POSID = HRP1001-SOBID+0(8).
    * Primeiro vamos buscar a descrição da Unidade Organizacional
          select single MC_STEXT into WA_YTHR00035-NMPOS from HRP1000 where
            PLVAR = w_plvar and
            OTYPE = 'S' and
            OBJID = WA_YTHR00035-POSID and
            BEGDA <= p_begda and
            endda >= p_begda.
        endif.
        INSERT YTHR00035 FROM WA_YTHR00035.
      ENDLOOP.
      commit work.
    END-OF-SELECTION.
    Hope this helps.
    Edited by: Pedro Guarita on Dec 16, 2010 2:30 PM

  • HT4539 I followed the instructions given to turn my automatic download icon in my iphone 3 and still goes back to off position. Any idea how to fix this issue without getting a new one?

    I followed the instructions given to turn my automatic download icon in my iphone 3 and still goes back to off position. Any idea how to fix this issue without getting a new one?

    Something may have gone amiss on your iPhone.
    To attempt to correct this follow these steps:
    Backup your iPhone using iTunes or iCloud.
    Use iTunes to completely restore your iPhone as Factory new.
    Monitor battery usage to see if it is normal. If not, you may have a hardware problem - if so, contact Apple support.
    Restore your iPhone from your backup above.
    Check battery usage to confirm that it is still normal.

  • Ping via RG54G3 to any IP outside timeout

    Hello all, I have a problem with my RG54G3. Ping to any IP outside local network will result in "request timeout". I have tried to disconnect this router and connect to WAN directly and this was succesfull. Does anyone know what is the problem? I am trying to set "factory defaults" on RG54G3 but any reset doesn´t work correctly.
    Thanks for help, David.

    you'll have to open up the ports used by the FTP server in the router's firewall, refer to your manual for how to do this

  • Positioning methods in Lumia?

    I know there are few methods for positioning in Lumia. 
    Even user guide list those: GPS, GLONASS, A-GPS, Wi-Fi, or network (Cell ID) based positioning.
    My problem is that how the user can control the use of those - or know what is used and how accurate is reading. 
    I would like to know how accurate is the reading - and am I using the most efficient/accurate method for getting the info. 
    I tried to search for settings from phone - no luck. Search the user guide - no luck. And last the forums/discussions - no luck. 
    I hope I will get more details on this one. 

    paulheu wrote:
    Try Wikipedia.. I mean really..
    In short you have GPS and GLONASS is the Russian counterpart. A-GPS stands for Assisted GPS and does what it says on the tin, it aids with positioning through GPS and/or GLONASS. Positioning with Wi-Fi is wildly inaccurate as it generally points to where the server is and that may be halfway across the world. Cell tiangulation is just that; using three or more cell towers to find your location.
    You trying to be funny?
    I did not ask about differency of GPS, GLONASS or any of other methods. You can read again my question...
    I did ask about:
    1. How to change from one method to another? 
    2. How to verify that 'selected' method is used? 
    3. Is there any method to actually see the current accuracy of used postioning? (including hw/sw based solution). 
    None of the answers match my question. 

  • Any website for XSLT AND ABAP mapping

    Hi XI experts,
    I am looking for any good website/Material for XSLT and ABAP Mapping with examples.
    So experts if you any one of you have any clue , i would appreciate it , if you post the info here .
    Regds,
    Ram.

    Hi,
    For XSLT mapping, please try to create msg types for sender and recv, import these two into XML Mapforces (This is a software which enables us to do mapping this you can download from altova mapforce site) , do mapping in that mapforce , late click on XSLT icon , one XSLT file will be c reated that file , prepare zip and late come to xi , import under imported archieves,do Interface mapping by selecting the XSLT mapping option, select imported archieve..
    See below examples..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    http://www.troobloo.com/tech/xslt.toc.shtml
    http://www.w3schools.com/xsl/
    http://www.w3.org/TR/xslt
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic%20xslt%20mapping%20in%20sap%20xi%2c%20part%20i.pdf
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    Required XSLT Mapping tips!
    Regards
    Chilla..

  • Import Methods - Any difference?

    PPro CC
    Is there any difference between the various import methods? Are files imported or interpretted any differently using different methods?
    - Media Browser
    - File>Import
    - Drag from Finder
    Thanks,
    phil

    No difference but there are many advantages using the Media Browser.
    Here's a article that covers the different ways to import files into Premiere
    http://www.peachpit.com/articles/article.aspx?p=1946401
    Best,
    Peter Garaway
    Adobe
    Premiere Pro

Maybe you are looking for

  • [SOLVED] Updating a package with renamed dependency using yaourt

    I am trying to update  aur/python2-epd-oss using yaourt. The problem is that the installed version depends on biopython and the new one depends on python2-biopython. When yaourt tries to replace  biopython with python2-biopython I get this: :: python

  • IPhoto Update Gliche

    I have just downloaded and installed the new Iphoto update, all 1.2gb of it, yet the Mac store still shows it as an update available, even theough the little grey box says that it is already installed. Support has told me to clear the Updated Folder

  • ITunes store item availability in Canada

    I realize this isn't really the right place to ask this, but there is no where else to go! I want to buy a movie that is available only on the US iTunes store - not listed as available in Canada. My question is - can I get around this somehow (and I

  • Formula to deviate the needle of 3dguage in sap XMII

    i m getting confused about the formula to deviate the needle position.i found lot.but i dont know which one suits well.

  • Simple preloader in AS3 - HELP

    Hi, Could anyone please point me in the direction or tell me how to build a simple preloader in AS3/PlashPlayer 9. I'd just like to have a movie clip in frame one which animates until the rest of the timeline has loaded, then once loaded go to frame