XSL Syntax Help

XSL file:
<INPUT type="radio" checked="checked"
value="<xsl:value-of select='ENVELOPE/@minx'></xsl:value-of>"
name="geocodeID"> </INPUT>
Problem: value can't evaulate the xsl syntax
Any suggestion. Thanks.

XSL file:
<INPUT type="radio" checked="checked"
value="<xsl:value-of
select='ENVELOPE/@minx'></xsl:value-of>"
name="geocodeID"> </INPUT>
Problem: value can't evaulate the xsl syntax
Any suggestion. Thanks.
<INPUT>
     <xsl:attribute name="type">
          <xsl:value-of select="'radio'" />
     </xsl:attribute>
     <xsl:attribute name="checked">
          <xsl:value-of select="'checked'" />
     </xsl:attribute>
     <xsl:attribute name="name">
          <xsl:value-of select="'geocodeID'" />
     </xsl:attribute>
     <xsl:attribute name="select">
          <xsl:value-of select="ENVELOPE/@minx" />
     </xsl:attribute>
</INPUT>
I meant:
<INPUT>
     <xsl:attribute name="type">
          <xsl:value-of select="'radio'" />
     </xsl:attribute>
     <xsl:attribute name="checked">
          <xsl:value-of select="'checked'" />
     </xsl:attribute>
     <xsl:attribute name="name">
          <xsl:value-of select="'geocodeID'" />
     </xsl:attribute>
     <xsl:attribute name="value">
          <xsl:value-of select="ENVELOPE/@minx" />
     </xsl:attribute>
</INPUT>

Similar Messages

  • XSL paginsation help

    Hello all,
    I need to paginate XML feed using XSL. I found a way to do it
    at
    http://www.codeproject.com/Purgatory/pagination.asp
    and using the way described, I have been able to make it work,
    except for one thing. When I click on the previous and next link,
    the page does not retrieve the next (or previous data). The page
    refreshes to the same page (showing the same data) again, even thou
    the URL is changed correctly.
    XSL I am using is:
    quote:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" version="3.2"
    encoding="ISO-8859-1"/>
    <xsl:param name="Page" select="0" />
    <xsl:param name="PageSize" select="1" />
    <xsl:template name="results" match="/">
    <xsl:variable name="mycount"
    select="count(root/customer)"/>
    <xsl:variable name="selectedRowCount"
    select="round($mycount div $PageSize)"/>
    <xsl:for-each select="root/customer">
    <!-- Pagination logic -->
    <xsl:if test="position() >= ($Page * $PageSize) +
    1">
    <xsl:if test="position() <= $PageSize + ($PageSize *
    $Page)">
    <!-- Do display here -->
    </xsl:if>
    </xsl:if>
    </xsl:for-each>
    <!-- Prev link for pagination -->
    <xsl:choose>
    <xsl:when test="number($Page)-1 >= 0">
    <A>
    <xsl:attribute
    name="href">page.php?page=<xsl:value-of
    select="number($Page)-1"/>&pagesize=<xsl:value-of
    select="$PageSize"/>
    </xsl:attribute>
    <<Prev
    </A>
    </xsl:when>
    <xsl:otherwise>
    <!-- display something else -->
    </xsl:otherwise>
    </xsl:choose>
    <xsl:if test="$selectedRowCount > 1">
    <b class="blacktext"><xsl:value-of
    select="number($Page)+1"/> of
    <xsl:value-of
    select="number($selectedRowCount)"/></b>
    </xsl:if>
    <!-- Next link for pagination -->
    <xsl:choose>
    <xsl:when test="number($Page)+1 <
    number($selectedRowCount)">
    <A>
    <xsl:attribute
    name="href">_dirresult?page=<xsl:value-of
    select="number($Page)+1"/>&pagesize=<xsl:value-of
    select="$PageSize"/>
    </xsl:attribute>
    Next>>
    </A>
    </xsl:when>
    <xsl:otherwise>
    <!-- display something else -->
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    Any ideas why the next (or previous data) is not being show?
    Thank you for your help.
    Ray

    XSL file:
    <INPUT type="radio" checked="checked"
    value="<xsl:value-of
    select='ENVELOPE/@minx'></xsl:value-of>"
    name="geocodeID"> </INPUT>
    Problem: value can't evaulate the xsl syntax
    Any suggestion. Thanks.
    <INPUT>
         <xsl:attribute name="type">
              <xsl:value-of select="'radio'" />
         </xsl:attribute>
         <xsl:attribute name="checked">
              <xsl:value-of select="'checked'" />
         </xsl:attribute>
         <xsl:attribute name="name">
              <xsl:value-of select="'geocodeID'" />
         </xsl:attribute>
         <xsl:attribute name="select">
              <xsl:value-of select="ENVELOPE/@minx" />
         </xsl:attribute>
    </INPUT>
    I meant:
    <INPUT>
         <xsl:attribute name="type">
              <xsl:value-of select="'radio'" />
         </xsl:attribute>
         <xsl:attribute name="checked">
              <xsl:value-of select="'checked'" />
         </xsl:attribute>
         <xsl:attribute name="name">
              <xsl:value-of select="'geocodeID'" />
         </xsl:attribute>
         <xsl:attribute name="value">
              <xsl:value-of select="ENVELOPE/@minx" />
         </xsl:attribute>
    </INPUT>

  • XSL indentation help

    Hi everybody,
    I managed to pass a .xsl file to my method that writes out the DOM in a xml file.
    For the moment it just prints out the nodes in different lines (instead of writing them in one eternal line) with this code:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">     
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />   
        <xsl:template match="@*|node()">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
         </xsl:template>     
    </xsl:stylesheet> I apply this code to the method in the thread "writing a DOM in xml" and is working. But there is no indentation and it is a mess to read it (even 'cause it is big). Is there someone that knows how to do it or to point me in the right direction? Thanks

    XSL file:
    <INPUT type="radio" checked="checked"
    value="<xsl:value-of
    select='ENVELOPE/@minx'></xsl:value-of>"
    name="geocodeID"> </INPUT>
    Problem: value can't evaulate the xsl syntax
    Any suggestion. Thanks.
    <INPUT>
         <xsl:attribute name="type">
              <xsl:value-of select="'radio'" />
         </xsl:attribute>
         <xsl:attribute name="checked">
              <xsl:value-of select="'checked'" />
         </xsl:attribute>
         <xsl:attribute name="name">
              <xsl:value-of select="'geocodeID'" />
         </xsl:attribute>
         <xsl:attribute name="select">
              <xsl:value-of select="ENVELOPE/@minx" />
         </xsl:attribute>
    </INPUT>
    I meant:
    <INPUT>
         <xsl:attribute name="type">
              <xsl:value-of select="'radio'" />
         </xsl:attribute>
         <xsl:attribute name="checked">
              <xsl:value-of select="'checked'" />
         </xsl:attribute>
         <xsl:attribute name="name">
              <xsl:value-of select="'geocodeID'" />
         </xsl:attribute>
         <xsl:attribute name="value">
              <xsl:value-of select="ENVELOPE/@minx" />
         </xsl:attribute>
    </INPUT>

  • Syntax help

    hi friends
    i need the syntax help for the below sentence
    F = (10 - (round(10 - j) - j)^2)
    this is giving error in editor
    pls help to resolve this
    thanks in advance
    with regards
    s.janagar

    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(UID) TYPE  OIJNOMI-ZZSCHEDID
    *"     REFERENCE(TIMESTAMP) TYPE  CHAR14
    *"  EXPORTING
    *"     REFERENCE(TOKEN) TYPE  CHAR25
    *timestamp (YYYYMMDDhhmmss)
      DATA: zyear TYPE i,
            zmon TYPE i,
            zdat TYPE i,
            zhrs TYPE i,
            zmin TYPE i,
            zsec TYPE i,
            zfrm TYPE i,
            zuid TYPE i,
            a TYPE i,
            b TYPE i,
            c TYPE i,
            d TYPE i,
            e TYPE i,
            f TYPE i,
            g TYPE i,
            h TYPE i,
            i TYPE i,
            j TYPE i,
            k TYPE i,
            w_data  TYPE i.
    splitting up the timestamp to date,month,hrs,minutes etc.,
      zuid = uid.
      zyear = timestamp+0(4).
      zmon = timestamp+4(2).
      zdat = timestamp+6(2).
      zhrs = timestamp+8(2).
      zmin = timestamp+10(2).
      zsec = timestamp+12(2).
      a = zhrs + 1.
      b = zuid - zdat + zhrs.
      c = zyear - zhrs.
      d = zmin + zuid .
      e = zyear + zhrs * 13 + zuid + zdat * 23 .
      f = e * zuid.
      g = zuid - zdat.
      h = zuid - zhrs.
      i = zhrs - zdat.
      j = zuid / 10.
      k = 25 - zhrs.
      zfrm = ABS( 15 * zuid * a + 11 * b + 19 * c + d * 3 + f + zhrs * zhrs * g * h + i * 23 * ( 10 - ( j - round( j ) * 10 ) exp 2 ) * ( k ) exp 2 ).
      token = zfrm.
    Edited by: janagar sundaramoorthy on Nov 25, 2008 9:20 AM

  • SELECT statement in FROM clause - syntax help

    Hi,
    I want to have a SELECT statement in the FROM clause. I get syntax error when doing this and since I am new to ABAP I need som help.
    I want to do the following, (and if anyone has any SELECT statement from their own system which you know there is no syntax error in please post it here so I can analyze the syntax):
    *I leave the INTO itab clause out, since I only want to demonstrate the functionality
    I am trying to get.
    <b>SELECT</b> tableOne~someField
    <b>FROM</b> tab <b>AS</b> tableOne (<b>SELECT</b> someField
                                         <b>FROM</b> tab
                                         <b>WHERE</b> someFiled > 1) <b>AS</b> tableTwo
    <b>WHERE</b> tableOnesomeField > tableTwosomeField
    like I said, the problem is that the select statement in the parenthesis in the from clause seems to be incorrect because I get "wrong expression" when trying to compile. Is this because I cannot have a select statement in the from clause or is it because of a minor syntax error, such as I forgot a dot, or some other sign?
    thanks and regards
    Baran

    sorry i am not enough familiar with sub queries but some error i can see which i will state here.
    1> you have to use sub queries i.e. select in ( ) after where clause because here you are fulfilling a where clause by another select statement.
    like this
    SELECT * FROM SFLIGHT
        INTO WA
        WHERE SEATSOCC = ( SELECT MAX( SEATSOCC ) FROM SFLIGHT ).
    2> you cannot specify field name without into clause either you have to use
    select *  or select f1 into tab-f1  like this...
    but if you are using select * without into you have to define
    tables : dbtab.
    selec * from dbtab. like that.
    regards
    shiba dutta

  • Syntax help needed in update using 'WITH' Clause

    Update     CP_JP_CORP_FSASA_FEEDUPLOAD_r r
                             set     (
                                   gfrn,                              
                                   tenor_code,
                                   tenor_description,
                                   exposure_category,          
                                   frr,          
                                   facility_classification,
                                   limit_amount,
                                   limit_usd,
                                   approval_ccy,
                                   approval_date,
                                   expiry_date,
                                   avail_status_code,
                                   avail_status_desc,
                                   revolving_indicator,
                                   committed_flag,
                                   committed_until_date,
                                   committed_amount,
                                   advised_flag,
                                   advised_amount,
                                   facility_long_description,
                                   booking_unit_code,
                                   extending_unit_code,
                                   extending_unit_short_desc,
                                   approving_unit_code,
                                   approving_unit_short_des,
                                   transaction_type,
                                   branch_no
                                   =
                                            With t as
                                                 Select     fac.gfrn,fac.tenor_code,fac.tenor_description,fac.exposure_category,fac.frr,
                                                      fac.facility_classification,fac.limit_amount,fac.limit_usd,fac.approval_ccy,
                                                      fac.approval_date,fac.expiry_date,fac.avail_status_code,fac.avail_status_desc,
                                                      fac.revolving_indicator,fac.committed_flag,fac.committed_until_date,fac.committed_amount,
                                                      fac.advised_flag,fac.advised_amount,fac.facility_long_description,fac.booking_unit_code,
                                                      fac.extending_unit_code,fac.extending_unit_short_desc,fac.approving_unit_code,fac.approving_unit_short_des,
                                                      /*'Check' normalflag,
                                                      cust.adjusted_orr fsasaorr1stborrower,
                                                      'Normal' category1stborrower,
                                                      cust.adjusted_orr fsasaorr2ndborrower,
                                                      'Normal' category2ndborrower,
                                                      cust.adjusted_orr fsasaorrfinal,
                                                      'Normal' categoryfinal */
                                                      txn.transaction_type,txn.branch_no,txn.gfcid,txn.transaction_id
                                                 from     cp_fsa_boj_corp_cr_fac_hist fac,
                                                           --cp_fsa_boj_corp_cr_cust_hist cust,
                                                           cp_fsa_boj_corp_cr_txn_hist txn
                                                 where     fac.gfcid = txn.gfcid
                                                           and fac.facility_id = txn.facility_id
                                                           and fac.as_of_date = txn.as_of_date
                                                           and to_char(fac.as_of_date,'yyyymm') = p_financial_period
                                                           and fac.as_of_date = last_day(fac.as_of_date)
                                            select      t.gfrn,
                                                      t.tenor_code,
                                                      t.tenor_description,
                                                      t.exposure_category,
                                                      t.frr,
                                                      t.facility_classification,
                                                      t.limit_amount,
                                                      t.limit_usd,                                             
                                                      t.approval_ccy,                                             
                                                      t.approval_date,                                             
                                                      t.expiry_date,                                             
                                                      t.avail_status_code,                                             
                                                      t.avail_status_desc,                                             
                                                      t.revolving_indicator,                                             
                                                      t.committed_flag,                                             
                                                      t.committed_until_date,                                             
                                                      t.committed_amount,                                             
                                                      t.advised_flag,                                             
                                                      t.advised_amount,                                             
                                                      t.facility_long_description                                             
                                                      t.booking_unit_code,                                             
                                                      t.extending_unit_code,                                             
                                                      t.extending_unit_short_desc,                                        
                                                      t.approving_unit_code,                                             
                                                      t.approving_unit_short_des,                                             
                                                      t.transaction_type,
                                                      t.branch_no
                                            from     t
                                       where      r.financialperiod           = p_financial_period
                                                 and exists
                                                           Select     1
                                                           from     t
                                                           where     t.transaction_id = r.ce_trans_id
                                                      )I'm facing syntax problem

    Hii All,
    This is my actual update.(I stopped performing dml operations in cursors following Karthick Arp) :-)
    Update     CP_JP_CORP_FSASA_FEEDUPLOAD_r r
                             set     (
                                   gfrn,                              
                                   tenor_code,
                                   tenor_description,
                                   exposure_category,          
                                   frr,          
                                   facility_classification,
                                   limit_amount,
                                   limit_usd,
                                   approval_ccy,
                                   approval_date,
                                   expiry_date,
                                   avail_status_code,
                                   avail_status_desc,
                                   revolving_indicator,
                                   committed_flag,
                                   committed_until_date,
                                   committed_amount,
                                   advised_flag,
                                   advised_amount,
                                   facility_long_description,
                                   booking_unit_code,
                                   extending_unit_code,
                                   extending_unit_short_desc,
                                   approving_unit_code,
                                   approving_unit_short_des,
                                   transaction_type,
                                   branch_no
                                   = (          
                                       Select     fac.gfrn,fac.tenor_code,fac.tenor_description,fac.exposure_category,fac.frr,
                                            fac.facility_classification,fac.limit_amount,fac.limit_usd,fac.approval_ccy,
                                            fac.approval_date,fac.expiry_date,fac.avail_status_code,fac.avail_status_desc,
                                            fac.revolving_indicator,fac.committed_flag,fac.committed_until_date,fac.committed_amount,
                                            fac.advised_flag,fac.advised_amount,fac.facility_long_description,fac.booking_unit_code,
                                            fac.extending_unit_code,fac.extending_unit_short_desc,fac.approving_unit_code,fac.approving_unit_short_des,
                                            txn.transaction_type,txn.branch_no
                                       from     cp_fsa_boj_corp_cr_fac_hist fac,
                                                 --cp_fsa_boj_corp_cr_cust_hist cust,
                                                 cp_fsa_boj_corp_cr_txn_hist txn
                                       where     fac.gfcid = txn.gfcid
                                                 and fac.facility_id = txn.facility_id
                                                 and fac.as_of_date = txn.as_of_date
                                                 and to_char(fac.as_of_date,'yyyymm') = p_financial_period
                                                 and fac.as_of_date = last_day(fac.as_of_date)
                             where Exists
                                                 Select     1
                                                 from     cp_fsa_boj_corp_cr_fac_hist fac,
                                                           cp_fsa_boj_corp_cr_txn_hist txn
                                                 where     fac.gfcid = txn.gfcid
                                                           and fac.facility_id = txn.facility_id
                                                           and fac.as_of_date = txn.as_of_date
                                                           and to_char(fac.as_of_date,'yyyymm') = p_financial_period
                                                           and fac.as_of_date = last_day(fac.as_of_date)
                                                           and txn.transaction_id = r.ce_trans_id
                                            )Now in my update I'm using same 'SELECT' twice once in 'SET' and again in 'EXISTS' clause. I'd like to make use of 'WITH' Clause and avoid unnecessary 'SELECT' . Please help me.

  • PL/SQL Function Syntax help please...

    Can someone help me with the syntax here please? I am sure i am doing something wrong in my LOOP.
    create or replace FUNCTION fcn_chk_dec(p_date number)
    return NUMBER
    as
    --DECLARE
    v_date NUMBER;
    v_active NUMBER;
    v_prev NUMBER;
    v_delta NUMBER;
    v_perc_delta NUMBER:
    CURSOR c_prev_active IS
         select date,people,
    lag(people,1) over (order by date)
         from stats
    where date between to_date(p_date, 'YYYYMMDD')-2 and to_date(p_date, 'YYYYMMDD')-1
         order by date desc
    BEGIN
         OPEN c_prev;
    loop
         FETCH c_prev INTO v_date,v_active,v_prev;
         exit when c_prev%NOTFOUND;
         v_delta:=v_active-v_prev;
    v_perc_delta:=trunc((v_delta/v_active*100),2)
    end loop;
    close c_prev;
    return v_perc_delta;
    END fcn_chk_dec;

    what i am trying to do is create a funtion that will return one value for the first row that comes back.
    here is my initial query. the reason i did not go with this query is because there are too many selects and i was told that's not good and slows down the system. Plus, i need to have a function call in another program that will access this function to compare it's output to a value in a table.
    here was my initial start:
    select date,people,delta,trunc((delta/people*100),2) as perc_delta
    from (select date, people,people-prev_dly_people as delta
    from
    (select date,people,
    lag(people,1) over (order by date) as prev_dly_people
    from stats
    where date between to_char(sysdate-2,'YYYYMMDD') and to_char(sysdate-1,'YYYYMMDD')
    order by date desc))
    basically, i have a table that has a total number of people. I want to get the percentage growth and decline from the most recent date and the date before it. This will give me a day to day percentage of people population change as of the most recent date.
    I need this to be a function becaus i want to be able to pass any date i want into it and get the given delta percentage at the time for the people's population.
    hope this makes sense.

  • Fn:escapeXMl syntax help

    Hi there,
    I am new to J2EE, and I need help in identifying this syntax.
    code snippet
    <tr>
         <td>\${header["user-agent"]}</td>
         <td>${fn:escapeXml(header["user-agent"])} </td>
         </tr>
    Could you tell me what does fn:escapeXml does in this code?
    I am looking forward to your suggestions
    Thanks,
    Nek

    The escapeXML function "Escapes characters that could be interpreted as XML markup. "
    ref - http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/tld-summary.html
    In effect it escapes characters like < and > making them into &lt; and &gt;

  • SQL query - syntax help

    Hi All,
    I have a table that has 2 columns X, and Y.
    create table temp(
    x number(5);
    y number (5);
    );I am trying to write a query to check both columns, here is what I mean.
    SELECT CASE
                 IF X = 1 AND Y = 0 THEN 3
              IF X = 2 AND Y = 1 THEN 4
              IF X  = 4 AND Y IS NULL THEN 5
          END AS STATUS
    FROM .....temp ...etc.I know what I want but having problems with the syntax.
    Thanks in Advance for your help.
    I'm using Oracle 11g, SQL Dev 3.0

    select case when x = 1 and y = 0 then 3
                when x = 2 and y = 1 then 4
                when x = 4 and y is null then 5
                else null
            end ans
      from ...for more on the case syntax see either one of these links.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/case_statement.htm
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions004.htm

  • SQL Syntax - help needed

    Guys,
    Help me understand the syntax please!! With PL/SQL I have achieved a task quite easily, with a branch of code to include or exclude some part of the query - no problem. But to use SQL ......
    If i have a variable on a page, say :p10_open_or_closed
    .. and I set the value of this to the text "Is Not Null"
    How can I incorporate this into an SQL query, say
    Select ID, Date1, Date2, Comment
    From Table1
    where Date1 Is Not Null
    Is there a way of substituting the ":p10_open_or_closed" variable into this query?
    ie
    Select ID, Date1, Date2, Comment
    From Table1
    where Date1 ":p10_open_or_closed"
    Thanks.

    Thanks for your help gents.
    Originally, I had a PL/SQL Statement constructing the code as needed, as Rekha
    suggested.
    if :P1_OPEN_OR_CLOSED = 1 then
    q:=q||' and ';
    q:=q||' p.ACTUAL_INSTALL_DATE is null ';
    end if;
    if :P1_OPEN_OR_CLOSED = 2 then
    q:=q||' and ';
    q:=q||' p.ACTUAL_INSTALL_DATE is not null ';
    end if;
    But, to use a Tabular form, where users can update fields of multiple records on screen then submit for a MRU, the option of PL/SQL code is not allowed, only SQL. So Phil UK, no it's not an elegant way of doing things, but I'm forced to use SQL, yeah?
    There are definitely ways that I can filter for the solution I am after, but they all involve more in depth solutions (that are not that great). Thus, I asked at this forum.
    Andy, your solution works :~) which makes me very happy. I'm not sure how just now but I'll learn from it.
    Thanks again.

  • VB Syntax Help for Pathpoint Anchor

    Greetings, Friends!
    I think that I am about to slap myself silly, as I know that as soon as I am presented the solution, I'll do one of those "Dang - I knew that", but after a few hours of trying, I'm currently coming up empty.
    Here's the problem: I am trying to (among other things) move a pathpoint that was added on a pathitem rectangle. The add of the pathitem goes well, the add of the pathpoint to the rectangle is fine, although when it it is "added" it picks some arbitrary position, hence the need to change the position, starting with the anchor.
    I typically write in VB.NET (2013), as I am doing here. Using Illustrator CS6.
    In VBScript, documentation shows:
        newPoint.Anchor = Array(75, 300)
    Using that syntax, I get a pre-complier error in VB.NET, as "Array" is a type and can't be used as an expression.
    To create an inline array in VB.NET, I would normally use:
        newPoint.Anchor = {75, 300}
    Using this syntax, I get a runtime COM-exception error.
    Any help would be GREATLY appreciated!!!
    Thank you in advance,
    TT

    Greetings! Wow - what a difference a good night's sleep makes.So  I guess I get to answer my own thread. Sure is lonely out here...
    Maybe someone else can use this info (if there "IS" anyone else out there who uses VB.NET with AI Scripting).
    So... in VB.NET, this does NOT work either:
         Dim newArray As Array = {x, y}
    nor this:
         Dim newArray As Object = {x, y}
    However, doing a "long-handed" array does (I simply created a function):
         pathPoint.Anchor = Array(123.123, -012.012)
         Private Function Array(x As Double, y As Double) As Object
              Dim newArray(1) '2 screen position points
              newArray(0) = x
              newArray(1) = y
              Return newArray
         End Function
    Not sure why .NET with AI Scripting is so touchy... Hope this helps someone.
    -TT

  • ALSA : LADSA plugin syntax help

    Hey all,
    I just set-up my .asoundrc file on a new build.  Using the declip plugin, in my alsa config, is producing some sound in the left channel, and only silence, interrupted by repetitious clicks, in the right channel.  Using Audacious, which ships with a GUI interface for using LADSPA plugins, everything sounds fine. 
    I'm not really sure what I'm doing wrong.  Any help would be appreciated.
    ~/.asoundrc
    pcm.!default {
    type plug
    slave.pcm "ladspa"
    hint {
    show on
    description "Actual Default"
    pcm.ladspa {
    type ladspa
    path "/usr/lib/ladspa"
    channels 2
    slave.pcm "hardware"
    hint { show off }
    plugins {
    0 { id 1207; policy none; }
    1 { id 1195; policy none; }
    pcm.hardware {
    type plug
    slave.pcm "hw:0,0"
    Output of "analyseplugin declip_1195.so"
    Plugin Name: "Declipper"
    Plugin Label: "declip"
    Plugin Unique ID: 1195
    Maker: "Steve Harris <[email protected]>"
    Copyright: "GPL"
    Must Run Real-Time: No
    Has activate() Function: No
    Has deactivate() Function: No
    Has run_adding() Function: Yes
    Environment: Normal or Hard Real-Time
    Ports: "Input" input, audio, -1 to 1
    "Output" output, audio, -1 to 1

    emeres wrote:Try adding slave.rate 44100; to your default pcm. It seems those plugins (or at least one of them) need to be driven with that frequency (maybe 44,1 kHz is hardcoded). Otherwise your asoundrc seems to be fine, although I did use a software pcm to test this setup and not directly hardware.
    Thanks for your help.  While changing the samplerate didn't affect anything, setting the policy to "duplicate" for both seemed to fix the issue.  Sound is great even at 96kHz

  • ForEach items syntax help please

    This shouldn't be a problem but it is. I have a JSP. I am sending it an attribute that is a collection by calling setAttribute() on the request and then dispatching to the JSP from my front controller servlet. I want to iterate through the collection. The name of the attribute is "changeRequets" and I have tried accessing it without any scope qualifiers and with scope qualifiers and no matter what, this forEach produces no data. I have verified that the JSP is receiving data, because I've accessed the request attribute separately without JSTL. What is wrong with the following please?
       <c:forEach var="chgRequest" items="${requestScope.request.changeRequests}">
                    <tr>
                        <td>
                            <input type="radio" name="crButton" value="<c:out value="${chgRequest.crChangeRequestID}"/>" <c:if test="${status.first}">checked</c:if> />
                        </td>
                    </tr>
    </c:forEach>This produces no data, no rows. I don't get it. I can't find anything in my JSTL book that helps. Thanks.
    Ken

    Ignore the previous reply
    change it to the following
    <c:forEach var="chgRequest" items="${changeRequests}">
                    <tr>
                        <td>
                            <input type="radio" name="crButton" value="<c:out value="${chgRequest.crChangeRequestID}"/>" <c:if test="${status.first}">checked</c:if> />
                        </td>
                    </tr>
    </c:forEach>

  • Syntax helper for ABAP code?

    Please, I would like to ask any of you ABAP developers with some expirience...is there any tool (inside or outside the Workbench) that can color the syntax of ABAP code... (the way it is done in some other IDEs like Visual Studio, JBuilder or even Ultra Edit...) ???

    There are some IDE external of SAP that do that. But .. I try it and don't like that.
    Ex : http://www.sapedit.com/
    Wait for next release, there will be some new stuff.
    Frédéric

  • Analytical function syntax help

    The following query sorts by most occuring hesid descedning and requires TWO full table scans of the episodes_full_test table :
    create table episodes_full_test (epikey number, hesid number, dob date) tablespace analysis_ip_d;
    insert into episodes_full_test values (100, 20, to_date('31-07-1975','DD-MM-YYYY'));
    insert into episodes_full_test values (101, 20, to_date('31-07-1975','DD-MM-YYYY'));
    insert into episodes_full_test values (102, 20, to_date('31-07-1975','DD-MM-YYYY'));
    insert into episodes_full_test values (103, 20, to_date('31-07-1975','DD-MM-YYYY'));
    insert into episodes_full_test values (104, 10, to_date('31-07-1985','DD-MM-YYYY'));
    insert into episodes_full_test values (105, 30, to_date('31-07-1995','DD-MM-YYYY'));
    insert into episodes_full_test values (106, 30, to_date('31-07-1995','DD-MM-YYYY'));
    insert into episodes_full_test values (107, 30, to_date('31-07-1995','DD-MM-YYYY'));
    commit;
    select eft.hesid, eft.epikey, eft.dob
    from episodes_full_test eft
    join (select hesid, count(hesid) count_hesid
    from episodes_full_test
    group by hesid) v1
    on eft.hesid = v1.hesid
    order by v1.count_hesid desc, eft.epikey;     
    HESID EPIKEY DOB
    20 100 31/07/1975
    20 101 31/07/1975
    20 102 31/07/1975
    20 103 31/07/1975
    30 105 31/07/1995
    30 106 31/07/1995
    30 107 31/07/1995
    10 104 31/07/1985
    I'm sure there's a way to use analytical functions such that Oracle only needs to perform ONE full table scan of episodes_full_test, but I can't figure out the syntax
    Can anyone advise please ?
    (Oracle 9r2)
    Thanks, Gus

    Thank you for providing the create table, insert commands and required output as it makes answering the question much easier (once I'd removed the tablespace specification)
    SQL> select hesid, epikey, dob
      2  from
      3      (
      4      select eft.hesid, eft.epikey, eft.dob,
      5          count(*) over (partition by eft.hesid) count_hesid
      6      from episodes_full_test eft
      7      )
      8  order by count_hesid desc;
         HESID     EPIKEY DOB
            20        100 31-JUL-75
            20        101 31-JUL-75
            20        102 31-JUL-75
            20        103 31-JUL-75
            30        105 31-JUL-95
            30        106 31-JUL-95
            30        107 31-JUL-95
            10        104 31-JUL-85
    8 rows selected.
    SQL>

Maybe you are looking for

  • SSL VPN IP Address Assignment from IAS radius server

    Can I use SSL VPN IP Address Assignment from IAS radius server?it can be done with acs server.are there some differ from the acs and IAS?

  • CD not being recognized by MacBook

    Hello! I recently purchased the "Glee Christmas Album" (don't judge) from Target, and I was excited to get it home and put it onto iTunes. Anyways, I put it into my MacBook, the right way and everything, because I know how to import CD's since I have

  • Issues on Messages

    Hi, 1. I have one message holding in adapter engine for longer time, even when try to resend the message, it is still showing holding status, but other messages of same interface are successful. 2. I have one message in adapter engine in Delivering s

  • Number of recipients in BEx Infobroadcaster

    Hai friends,      What is the maximum number of Email addresses and the Recipients that can be present in a single setting of BEx Broadcaster? I need to broadcast the report to about 100 users. When I scheduled the broadcast, it didnt reach to every

  • Is 1000Base-T GBIC Supported in Catalyst 6006 now in China?

    Is 1000Base-T GBIC Supported in Catalyst 6006 now? If so, what is the hardware/software environment it needs (i.e.1000Base-T GBIC Card type and the CatOS or IOS version)?