Trying to combine selectors gives me wrong result

Hi everyone.
I'm just learning HTML5 and CSS3 and have hit a stumbling block.
I am trying to color format all elements within a <section id="faq">.  They are an h2, h3 and p. The only sequence that gives me the desired effect is this:
#faq,
#faq p {
          color: hsl(298, 20%, 39%);
But from what I understand, I shouldn't have to repeat the #faq to color p(?)  If I don't repeat it, the p is colored, but not the h2 and h3.  Shouldn't the ID tag make it easy to color EVERYTHING within that <section>?
Am I missing something?
Thanks,
B.

Hey everyone.
Thanks for your replies - I appreciate them.  Nancy, I am using an external stylesheet only, so there's not any issue with embedded or inline styles conflicting.
Okay, so I suppose my mistake was in assuming that a class/ID declaration would automatically overide any existing styles for the elements it contains.
If, as you mention, Jon, repeating "#faq" beside the p selector is not improper, I'll keep it. But when I ran my css through the w3 validator, it tagged this as an error.
Here's the entire code so far - perhaps you all can tell me if it is proper:
body {
    font-family: "Times New Roman";
a:link {
          color: blue;
a:visited {
          color:green
a:focus {
          color:red
a:hover {
          color:orange
a:active {
          color:purple
p {
          color: hsl(263, 0%, 42%);
#faq,
#faq p {
          color: hsl(298, 20%, 39%);
h1, h2, h3, h4 {
    font-family: "Arial";  
#main-title {
    font-weight: bold;
    font-size: 40px;
h2 {
    font-size: 30px;
h3 {
    font-size: 20px;
Thanks again!
B.

Similar Messages

  • Validate "work e-mail" from user information list --give me wrong result

    How can I validate the user "work email" from User Information List is working
    properly?
    I am following this >> http://social.msdn.microsoft.com/Forums/sharepoint/en-US/e4d41f77-c7e4-40ef-b85f-de7f972f2a3f/allow-submitter-see-only-the-items-that-are-relevant-to-him-in-drop-down-list?forum=sharepointcustomizationprevious#4d63b721-7acb-463a-b578-87eb1d72b5f1
    But instead to get the correct work email I am getting >>domain \usernamedomain
    \username domain \username  (example: americas\admin_andress_belloamericas\admin_andress_belloamericas\admin_andress_bello)  
    CRISTINA&amp;amp MICROSOFT Forum

    Hi,
    How did you validate the work e-mail?
    I recommend to set another text field to get the email of the user from User Information List and then use the text field for validation.
    Could you please provide an example of your requirement for reproducing this issue?
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • Select for update gives wrong results. Is it a bug?

    Hi,
    Select for update gives wrong results. Is it a bug?
    CREATE TABLE TaxIds
    TaxId NUMBER(6) NOT NULL,
    LocationId NUMBER(3) NOT NULL,
    Status NUMBER(1)
    PARTITION BY LIST (LocationId)
    PARTITION P111 VALUES (111),
    PARTITION P222 VALUES (222),
    PARTITION P333 VALUES (333)
    ALTER TABLE TaxIds ADD ( CONSTRAINT PK_TaxIds PRIMARY KEY (TaxId));
    CREATE INDEX NI_TaxIdsStatus ON TaxIds ( NVL(Status,0) ) LOCAL;
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100101, 111, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100102, 111, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100103, 111, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100104, 111, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200101, 222, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200102, 222, NULL);
    Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200103, 222, NULL);
    --Session_1 return TAXID=100101
    select TAXID from TAXIDS where LOCATIONID=111 and NVL(STATUS,0)=0 AND rownum=1 for update
    --Session_2 waits commit
    select TAXID from TAXIDS where LOCATIONID=111 and NVL(STATUS,0)=0 AND rownum=1 for update
    --Session_1
    update TAXIDS set STATUS=1 Where TaxId=100101;
    commit;
    --Session_2 return 100101 opps!?
    --Session_1 return TAXID=100102
    select TAXID, STATUS from TAXIDS where LOCATIONID=111 and NVL(STATUS,0)=0 AND rownum=1 for update
    --Session_2 waits commit
    select TAXID, STATUS from TAXIDS where LOCATIONID=111 and NVL(STATUS,0)=0 AND rownum=1 for update
    --Session_1
    update TAXIDS set STATUS=1 Where TaxId=100102;
    commit;
    --Session_2 return 100103                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This is a bug. Got to be a bug.
    This should be nothing to do with indeterminate results from ROWNUM, and nothing to do with read consistency at the point of statement start time in session2., surely.
    Session 2 should never return 100101 once the lock from session 1 is released.
    The SELECT FOR UPDATE should restart and 100101 should not be selected as it does not meet the criteria of the select.
    A statement restart should ensure this.
    A number of demos highlight this.
    Firstly, recall the original observation in the original test case.
    Setup
    SQL> DROP TABLE taxids;
    Table dropped.
    SQL> 
    SQL> CREATE TABLE TaxIds
      2  (TaxId NUMBER(6) NOT NULL,
      3   LocationId NUMBER(3) NOT NULL,
      4   Status NUMBER(1))
      5  PARTITION BY LIST (LocationId)
      6  (PARTITION P111 VALUES (111),
      7   PARTITION P222 VALUES (222),
      8   PARTITION P333 VALUES (333));
    Table created.
    SQL>
    SQL> ALTER TABLE TaxIds ADD ( CONSTRAINT PK_TaxIds PRIMARY KEY (TaxId));
    Table altered.
    SQL>
    SQL> CREATE INDEX NI_TaxIdsStatus ON TaxIds ( NVL(Status,0) ) LOCAL;
    Index created.
    SQL>
    SQL>
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100101, 111, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100102, 111, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100103, 111, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (100104, 111, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200101, 222, NULL);
    1 row created.
    SQL> Insert into TAXIDS (TAXID, LOCATIONID, STATUS) Values (200102, 222, NULL);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> Original observation:
    Session1>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    ROWNUM        = 1
      6  FOR UPDATE;
         TAXID
        100101
    Session1>
    --> Session 2 with same statement hangs until
    Session1>BEGIN
      2   UPDATE taxids SET status=1 WHERE taxid=100101;
      3   COMMIT;
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    Session1>
    --> At which point, Session 2 returns
    Session2>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    ROWNUM        = 1
      6  FOR UPDATE;
         TAXID
        100101
    Session2>There's no way that session 2 should have returned 100101. That is the point of FOR UPDATE. It completely reintroduces the lost UPDATE scenario.
    Secondly, what happens if we drop the index.
    Let's reset the data and drop the index:
    Session1>UPDATE taxids SET status=0 where taxid=100101;
    1 row updated.
    Session1>commit;
    Commit complete.
    Session1>drop index NI_TaxIdsStatus;
    Index dropped.
    Session1>Then try again:
    Session1>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    ROWNUM        = 1
      6  FOR UPDATE;
         TAXID
        100101
    Session1>
    --> Session 2 hangs again until
    Session1>BEGIN
      2   UPDATE taxids SET status=1 WHERE taxid=100101;
      3   COMMIT;
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    Session1>
    --> At which point in session 2:
    Session2>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    ROWNUM        = 1
      6  FOR UPDATE;
         TAXID
        100102
    Session2>Proves nothing, Non-deterministic ROWNUM you say.
    Then let's reset, recreate the index and explicity ask then for row 100101.
    It should give the same result as the ROWNUM query without any doubts over the ROWNUM, etc.
    If the original behaviour was correct, session 2 should also be able to get 100101:
    Session1>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    taxid         = 100101
      6  FOR UPDATE;
         TAXID
        100101
    Session1>
    --> same statement hangs in session 2 until
    Session1>BEGIN
      2   UPDATE taxids SET status=1 WHERE taxid=100101;
      3   COMMIT;
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    Session1>
    --> so session 2 stops being blocked and:
    Session2>SELECT taxid
      2  FROM   taxids
      3  WHERE  locationid    = 111
      4  AND    NVL(STATUS,0) = 0
      5  AND    taxid         = 100101
      6  FOR UPDATE;
    no rows selected
    Session2>Of course, this is how it should happen, surely?
    Just to double check, let's reintroduce ROWNUM but force the order by to show it's not about read consistency at the start of the statement - restart should prevent it.
    (reset, then)
    Session1> select t.taxid
      2   from
      3    (select taxid, rowid rd
      4      from   taxids
      5      where  locationid = 111
      6      and    nvl(status,0) = 0
      7      order by taxid) x
      8   ,  taxids t
      9   where t.rowid = x.rd
    10   and   rownum = 1
    11   for update of t.status;
         TAXID
        100101
    Session1>
    --> Yes, session 2 hangs until...
    Session1>BEGIN
      2   UPDATE taxids SET status=1 WHERE taxid=100101;
      3   COMMIT;
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    Session1>
    --> and then
    Session2> select t.taxid
      2   from
      3    (select taxid, rowid rd
      4      from   taxids
      5      where  locationid = 111
      6      and    nvl(status,0) = 0
      7      order by taxid) x
      8   ,  taxids t
      9   where t.rowid = x.rd
    10   and   rownum = 1
    11   for update of t.status;
         TAXID
        100102
    Session2>Session 2 should never be allowed to get 100101 once the lock is released.
    This is a bug.
    The worrying thing is that I can reproduce in 9.2.0.8 and 11.2.0.2.

  • 0CRM_OPPT_H  (Transaction RSA3 gives wrong result)

    Hi gurus,
    <b>0CRM_OPPT_H  (Transaction RSA3 gives wrong result)
    BBPCRM 4.0
    BW 3.50 version</b>
    I had enhanced the structure "crmt_bw_oppt_h"
    and also written a BADI to populate Opportunity header status.
    But when I run extract checker RSA3 for CRM data,
    I get wrong number of records.
    I am having 95 records for Opportunities header data.
    Data Records / Call = "100"
    Display Extr. Calls = "10"
    Above settings, I am retrieving only 61 records.
    <b>Data Records / Call = "1"
    Display Extr. Calls = "200"
    For the above settings in RSA3,
    I am able to retrieve 95 records correctly.</b>
    The problem is that in RSA1 transaction of BW 3.50 server also,
    61 records are being loaded from CRM server.
    <b>Could this be a Cache memory problem,
    Are any of my BASIS settings a cause for this problem?</b>
    Any help is really appreciated and will be rewarded.
    Thanks,
    Aby Jacob
    ========

    Dear Friends,
    <b>I had to do a small correction in my BADI code.
    I got a solution from Online SAP HELP portal.</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf4940e11d295df0000e82de14a/frameset.htm
    Notes on BADI Usage
    ====================
    The instance generated through the factory method should be declared
    as globally as possible or generally be passed as a parameter
    to ensure that the initialization process must be run as rarely as possible
    – just once would be best. In no case should you discard the instance as soon as
    it is generated or repeatedly run the initialization process in a loop.
    Within the adapter class interface,
    required database accesses are buffered locally,
    so that each access is executed once only.
    However, repeated initialization makes
    the buffer useless and dramatically reduces performance.
    Due to the local buffering, you can call Business-Add-In methods
    without having to expect considerable performance restrictions,
    even if no active implementations exist.
    Also, if the definition of the Business-Add-In is filter-dependent,
    a single instance is sufficient.
    However, you should not do without initialization altogether.
    Even if you could call static methods of the implementing
    class of the Business-Add-In implementation without an instance,
    you would lose the benefit of performance improvement through
    the Business-Add-Ins and the possibility of multiple use.
    If you switch the method type in the interface from the static method
    to the instance method at any time in the future,
    many code adjustments are required.
    In addition, you can no longer use default code that is provided.
    <b>Many Thanks to ROBIN
    and the whole SDN team</b>
    Aby Jacob ,,,,,

  • My appstore says cannot connect to iTunes and it shows blank page i tried all advices but there is no result shall give my iPad to the apple store to make it

    My appstore says cannot connect to iTunes and it shows blank page i tried all advices but there is no result shall give my iPad to the apple store to make it   

    I think you should probably also read the iPad User Guide. You didn't say what version of iOS your iPad is running, so here's the links to both the iOS 6 and iOS 7 (PDF) versions:
    iPad User Guide for iOS 6
    iPad User Guide for iOS 7

  • Hello Apple community... I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.

    I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.  When I drag the doc in a line would show up in the past, and if I went above th eline all was good.  It doesn't have a line, and no matter what I try I am having no success.
    Please help!

    According to an Apple Support article, unless there are unforeseen issues
    in file ownership or permissions, the combining of .PDFs should be simple.
    •OS X: Combining PDF documents using Preview - Apple Support
    There are a few variable and similar methods, some change with version
    of OS X in use; some vintage OS X may vary a little in the process...
    A variety of similar topics appear in search results, with terms:
    " mac os x combine pdf into one " such as this page shows...
    https://www.google.com/?gws_rd=ssl#q=mac%20os%20x%20combine%20pdf%20into%20one
    If the system is older than Mavericks there may be other methods to try.
    Suggestions are among linked results in the search. I see a few fair ones.
    •Here's another that offers generally similar suggestions...*  this info looks OK, extra links, do not:
    http://osxdaily.com/2014/06/27/how-to-join-multiple-pdf-files-into-a-single-pdf- document-in-mac-os-x/
    { note: avoid clicking on links to products in * this ^ page, since they likely will not help & may be adware prone }
    If you have a problem after trying other methods, based on an OS X
    your computer is running, post back with more exact information...
    Good luck & happy computing!
    edited

  • Please Help Urgent:Fast Search returning wrong result sets

    Hi All,
    We are facing below issue with fast search.
    Currently in My project  when  we are searching  for a phrase it is returning wrong result sets.
    For example if we search for “Endura”, It is returning documents related to
    Endura  as well as Centura.
    But the expected results are only Endura documents.
    When we look in to the documents we didn’t find the search term (“Endura” ) either inside document content or in its meta data.
    In order to resolve the issue we tried the below steps
    1-     
    We manually edited and saved the document, to ensure the appropriate Guid association to metadata.
    2-     
    Index reset
    3-     
    Full crawl
    But no luck  so far.
    Please help.Thanks in advance.
    Regards
    Subrat

    Subrat,
    This may be related to spellchecking or may be synonym. Spellcheck is based on indexed terms.
    The best test would be to run the queries from qrserver (13280) and then look at the spellcheck query transformations. If spellchecking is not doing it, then you must have a synonym setup .Check your keyword/synonyms from the SharePoint side. 

  • So it is trying to make me give credit card information to make an apple id but im trying to pick none but it dont say none what can i do

    so it is trying to make me give credit card information to make an apple id but im trying to pick none but it dont say none what can i do

    Either add or credit card or
    Create a NEW account/ID for her using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before. Make sure you specify a birthdate that results in being at least 13 years old
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    More details of how:
    http://ipadhelp.com/ipad-help-tips-tricks/how-to-get-free-apps-from-the-app-stor e-without-a-credit-card/

  • SQL Server 2012 Time(7) DataType values Comparison giving wrong result. Please help

    We have a Table with StartTime and EndTime columns in Time(7) datatype, so we want to count the rows for each hour from 6 AM to 5 AM. If a record in table is as StartTime= 7 PM to EndTime = 5 AM (a shift of an employee) then the result is wrong beacause
    being time(7) datatype the EndTime(5AM)< StartTime(7PM) in 24 hours format so following query gives wrong results.
    select
    * from EmpSchedule
    where (StartTime>='19:00:00.0000000'
    OR EndTime>='19:00:00.0000000')
    Please help me out. Thanks

    DECLARE @clockIns TABLE (employeeID INT, startDateTime DATETIME, endDateTime DATETIME)
    INSERT INTO @clockIns (employeeID, startDateTime, endDateTime)
    VALUES
    (1, '2014-07-01 19:01:00.000', '2014-07-02 04:27:00.000'),
    (2, '2014-07-01 18:01:00.000', '2014-07-02 05:27:00.000'),
    (3, '2014-07-01 19:01:00.000', '2014-07-02 05:27:00.000'),
    (4, '2014-07-01 18:01:00.000', '2014-07-02 04:27:00.000')
    SELECT *
    FROM @clockIns
    WHERE datepart(HOUR,startDateTime) BETWEEN 19 AND 23
    OR datepart(HOUR,startDateTime) BETWEEN 0 AND 4
    OR datepart(HOUR,endDateTime) BETWEEN 19 AND 23
    OR datepart(HOUR,endDateTime) BETWEEN 0 AND 4
    Try this out.

  • Oracle gives an inconsistent result. what am I supposed to do?

    I was very upset with Oracle XML DB after I found that Oracle didn't give a consistent result.
    I guess my Oracle XML DB didn't fully installed.
    I got an help from Geoff Lee
    his xquery
    select xmlquery('declare namespace xbrli1="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    let $in-xml :=
    <noNamespace>
    <xbrli:prefixed xmlns:xbrli="http://www.xbrl.org/2003/instance">
    <unprefixed>testing</unprefixed>
    </xbrli:prefixed>
    </noNamespace>
    return name($in-xml//xbrli1:prefixed)' returning content).getStringVal() from dual
    gives me errors with Oracle 10g 10.2.0.3.0 in SunOS 5.8 sun4u sparc SUNW,Netra-T12
    SQL> select xmlquery('declare namespace xbrli1="http://www.xbrl.org/2003/instance" ;declare namespace iso4217="http://www.xbrl.org/2003/iso4217";let $in-xml := <noNamespace> <xbrli:prefixed xmlns:xbrli="http://www.xbrl.org/2003/instance"> <unprefixed>testing</unprefixed> </xbrli:prefixed></noNamespace>return name($in-xml//xbrli1:prefixed)' returning content).getStringVal() from dual
    ORA-19112: 평가 중 오류 발생:
    ORA-06550: 줄 1, 열13:PLS-00201: 'SYS.DBMS_XQUERYINT' 식별자가 정의되어야 합니다
    ORA-06550: 줄 1, 열7:PL/SQL: Statement ignored
    but gives me correct answer expected with Oracle 10g 10.2.0.1.0 in Windows XP
    SQL> select xmlquery('declare namespace xbrli1="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    let $in-xml :=
    <noNamespace>
    <xbrli:prefixed xmlns:xbrli="http://www.xbrl.org/2003/instance">
    <unprefixed>testing</unprefixed>
    </xbrli:prefixed>
    </noNamespace>
    return name($in-xml//xbrli1:prefixed)' returning content).getStringVal() from dual;
    XMLQUERY('DECLARENAMESPACE...
    xbrli:prefiexd
    1 rows selected
    I asked Oracle technical support team to come , what am I supposed to ask them to fix the problem?
    I have things to ask.
    this query works fine.
    select extract( value(it),
    '/krfr-pte:*',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ).getStringVal() as output
    from XBRLO r,
    table (
    xmlsequence(
    extract(object_value,
    '/xbrli:xbrl/krfr-pte:*[@contextRef="D20070331_001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) it
    where existsnode(object_value,
    '//xbrli:identifier[.="001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) > 0 and rownum < 10
    please focus on extracting element with prefix , krfr-pte:*.
    But this kind of xpath failed with Xquery , it's weird.
    I tested this xquery with both CLOB based XBRLC, Object-relational XBRLO table, both ot them failed.
    select XMLQuery('
    declare namespace xdb="http://xmlns.oracle.com/xdb/XDBResource.xsd";
    declare namespace xbrli="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    declare namespace kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09";
    declare namespace kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09";
    declare namespace kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09";
    declare namespace kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09";
    declare namespace kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09";
    declare namespace kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario";
    declare namespace kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31";
    declare namespace krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31";
    declare namespace krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31";
    declare namespace link="http://www.xbrl.org/2003/linkbase";
    declare namespace p0="http://www.xbrl.or.kr/2006/role/subitem-notes";
    declare namespace xlink="http://www.w3.org/1999/xlink";
    for $item in $doc/xbrli:xbrl/krfr-pte:*
    return $item'
    PASSING o.OBJECT_VALUE as "doc"
    RETURNING CONTENT).getClobVal() as output FROM XBRLO o
    WHERE existsnode(object_value,
    '//xbrli:identifier[.="001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) > 0 and rownum < 10
    I definitely believe this xquery is correct, I checked it out with XMLSPY which gave me correct answer.
    and CLOB table XBRLC, Object-relational table XBRLO
    They behaved differently with same xquery that made me frustrated a lot.
    I changed xquery with prefix krfr-pte: and applied it to XBRLC (Clob based)
    it made a correct answer.
    SQL> select XMLQuery('
    declare namespace xdb="http://xmlns.oracle.com/xdb/XDBResource.xsd";
    declare namespace xbrli="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    declare namespace kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09";
    declare namespace kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09";
    declare namespace kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09";
    declare namespace kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09";
    declare namespace kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09";
    declare namespace kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario";
    declare namespace kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31";
    declare namespace krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31";
    declare namespace krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31";
    declare namespace link="http://www.xbrl.org/2003/linkbase";
    declare namespace p0="http://www.xbrl.or.kr/2006/role/subitem-notes";
    declare namespace xlink="http://www.w3.org/1999/xlink";
    for $item in $doc/xbrli:xbrl/*
    return $item'
    PASSING o.OBJECT_VALUE as "doc"
    RETURNING CONTENT).getClobVal() as output FROM XBRLC o
    WHERE existsnode(object_value,
    '//xbrli:identifier[.="001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) > 0 and rownum < 10;
    OUTP
    <link:schemaRef xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="http://www.xbrlkorea.com/taxonomies/kr/kisinfo/fr/application/ci/2007-02-09/kisinfo-ci-std-2007-02-09.xsd" xlink:type="simple"/>
    <xbrli:context xmlns:xbrli="http://www.xbrl.org/2003/instance" id="I20070331_001097">
    <xbrli:entity>
    this time , I tried it with XBRLO - Object-relational
    SQL>trucate table XBRLO;
    SQL>insert into XBRLO select OBJECT_VALUE from XBRLC;
    SQL> select XMLQuery('
    declare namespace xdb="http://xmlns.oracle.com/xdb/XDBResource.xsd";
    declare namespace xbrli="http://www.xbrl.org/2003/instance" ;
    declare namespace iso4217="http://www.xbrl.org/2003/iso4217";
    declare namespace kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09";
    declare namespace kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09";
    declare namespace kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09";
    declare namespace kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09";
    declare namespace kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09";
    declare namespace kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario";
    declare namespace kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31";
    declare namespace krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31";
    declare namespace krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31";
    declare namespace link="http://www.xbrl.org/2003/linkbase";
    declare namespace p0="http://www.xbrl.or.kr/2006/role/subitem-notes";
    declare namespace xlink="http://www.w3.org/1999/xlink";
    for $item in $doc/xbrli:xbrl/*
    return $item'
    PASSING o.OBJECT_VALUE as "doc"
    RETURNING CONTENT).getClobVal() as output FROM XBRLO o
    WHERE existsnode(object_value,
    '//xbrli:identifier[.="001097"]',
    'xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:kisinfo-ci="http://www.xbrlkorea.com/kr/kisinfo/fr/gaap/ci/2007-02-09" xmlns:kisinfo-ci-std="http://www.xbrlkorea.com/fr/kisinfo/fr/application/ci/2007-02-09" xmlns:kisinfo-gcd="http://www.xbrlkorea.com/kr/kisinfo/fr/gcd/2007-02-09" xmlns:kisinfo-profile="http://www.xbrlkorea.com/kr/kisinfo/fr/profile/2007-02-09" xmlns:kisinfo-ratio="http://www.xbrlkorea.com/kr/kisinfo/fr/ratio/2007-02-09" xmlns:kisinfo-scenario="http://www.xbrlkorea.com/kr/kisinfo/fr/common/scenario" xmlns:kr-gaap-ci="http://www.xbrl.or.kr/kr/fr/gaap/ci/2006-05-31" xmlns:krfr-pte="http://www.xbrl.or.kr/kr/fr/common/pte/2006-05-31" xmlns:krfr-ptr="http://www.xbrl.or.kr/kr/fr/common/ptr/2006-05-31" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:p0="http://www.xbrl.or.kr/2006/role/subitem-notes" xmlns:xlink="http://www.w3.org/1999/xlink"'
    ) > 0 and rownum < 10;
    OUTP
    0 rows selected.
    How could I do with inconsistent result .
    I'm really in trouble . please get me out !!

    These look bugs to me. Please work with Oracle support to file TARs with these problems. In the meantime, does extract() with XPath meet your needs?
    Regards,
    Geoff

  • Query returning wrong results - Help required.

    Hi All,
    I am having a query in which I have 10 records, 5 with stop time 1 and 5 with stop time 2.
    I have a scenario in which, I need to calculate the maximum,minimum for the records
    with stop time 1 and 2.
    What I did is, I selected all the 10 records using for loop. Within the loop
    I am trying to find the maximum and minimum. It is giving me wrong results.
    Please help me. My code is follows
    declare
         v_p1_min_stop_tm     number;
         v_p1_max_stop_tm     number;
         v_p2_min_stop_tm     number;
         v_p2_max_stop_tm     number;
    begin
         for i in(
              select
                   stop_tm
              from
                   sample_stop
              where
                   map_nbr = 16645 and
                   stop_dt = '05-sep-08'
         )loop
              if i.stop_tm = 1 then
                   select
                        min(i.stop_tm),
                        max(i.stop_tm)
                   into
                        v_p1_min_stop_tm,
                        v_p1_max_stop_tm
                   from
                        dual;
              elsif i.stop_tm = 2 then
                   select
                        min(i.stop_tm),
                        max(i.stop_tm)
                   into
                        v_p2_min_stop_tm,
                        v_p2_max_stop_tm
                   from
                        dual;
              end if;
         end loop;
         dbms_output.put_line('minimum p1 stop time : '|| v_p1_min_stop_tm);
         dbms_output.put_line('maximum p1 stop time : '|| v_p1_max_stop_tm);
         dbms_output.put_line('minimum p2 stop time : '|| v_p2_min_stop_tm);
         dbms_output.put_line('maximum p2 stop time : '|| v_p2_max_stop_tm);
    end;
    My o/p is :
    Minimum P1 stop time : 523
    Maximum P1 stop time : 523
    Minimum P2 stop time : 719
    Maximum P2 stop time : 719
    Here how can I make the data as two sets, one set with stop time 1 and
    other with stop time 2.
    Regards
    Raghu

    If the data type of stop_tm is varchar then try following
    declare
         v_p1_min_stop_tm number;
         v_p1_max_stop_tm number;
         v_p2_min_stop_tm number;
         v_p2_max_stop_tm number;
    begin
         for i in(select  stop_tm  from  sample_stop
              where
                   map_nbr = 16645 and
                   stop_dt = '05-sep-08'
              )loop
         if i.stop_tm = 1 then
              select min(to_number(i.stop_tm)), max(to_number(i.stop_tm))
                   into v_p1_min_stop_tm,v_p1_max_stop_tm
              from
                   dual;
         elsif i.stop_tm = 2 then
              select
                   min(to_number(i.stop_tm)),     max(to_number(i.stop_tm))
                   into
                   v_p2_min_stop_tm,v_p2_max_stop_tm
              from
                   dual;
         end if;
    end loop;
    dbms_output.put_line('minimum p1 stop time : '|| v_p1_min_stop_tm);
    dbms_output.put_line('maximum p1 stop time : '|| v_p1_max_stop_tm);
    dbms_output.put_line('minimum p2 stop time : '|| v_p2_min_stop_tm);
    dbms_output.put_line('maximum p2 stop time : '|| v_p2_max_stop_tm);
    end;
    / Regards
    Singh

  • WebService returning wrong result

    Hi All,
    I am trying to write a webservice but somehow getting wrong result. Not sure where i am going wrong. I am seeing following in logs -
    Request envelop -
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <Multiply xmlns="http://tempuri.org/">
    <A xsi:type="xsd:float" xmlns="">40.0</A>
    <B xsi:type="xsd:float" xmlns="">20.0</B>
    </Multiply>
    </soapenv:Body>
    </soapenv:Envelope>
    Response -
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><MultiplyResponse xmlns="http://tempuri.org/"><MultiplyResult>0</MultiplyResult></MultiplyResponse></soap:Body></soap:Envelope>
    This is a webservice available online url - http://samples.gotdotnet.com/quickstart/aspplus/samples/services/MathService/VB/MathService.asmx?op=Multiply
    Please HELP!!! Thanks in advance.
    -Tarun

    send this and write the results...
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body>
              <m:Multiply xmlns:m="http://tempuri.org/">
                   <m:A>3.14159E0</m:A>
                   <m:B>3.14159E0</m:B>
              </m:Multiply>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

  • Safari is slowly getting more buggy.  Actions, such as clicking on a field, don't give the expected results.  I may have to click on the red exit button 5 times to get it to work.  I get unwanted dropdown menus.  I have version 5.1.7 on OS 10.6.8

    Safari is slowly getting more buggy.  Actions, such as clicking on a field, don't give the expected results.  I may have to click on the red exit button 5 times to get it to work.  I get unwanted dropdown menus.  I have version 5.1.7 on OS 10.6.8.  System is 3 years old.

    Are you running low on RAM..?
    see > Using Activity Monitor
    Is your Hard Drive getting full...?
    see > Freeing space on your Mac OS X startup disk
    Have you tried Repair Disk Permissions after upgrading Safari...?
    see > About Disk Utility's Repair Disk Permissions feature
    Reset Safari...?

  • Wrong results after upgrading 10g database to 11.2.0.2.6

    Hi,
    Do anyone know, why the following query results are different?
    Not Working query:
    sql1:
    select col1 from tab1
    where col1 = (select '123' from dual)
    Working query:
    sql2:
    select col1 from tab1
    where col1 = '123';
    Both the sql1 and sql2 are returning same reseults in 10g database , but not in 11g.

    Pl post OS details along with sample outputs and explain plans from the the sql1 statement from the two databases. These MOS Docs may help also
    Things to Consider Before Upgrading to 11.2.0.2 to Avoid Poor Performance or Wrong Results [ID 1320966.1]
    Wrong Results on 11.2.0.2 with Function-Based Index and OR Expansion [ID 1264550.1]
    Wrong Results/No Rows for Sql Involving Functions in 11.2.0.2. [ID 1380679.1]
    HTH
    Srini

Maybe you are looking for