Xsl fo doubt

Anyone can help me out..
I am having an order by date(date TYPE) in Purchase order xsl style sheet.The client want to add a Number variable to come to another date...
Something like this:
Nov 30 2009+7=Dec 7 2009
How to do this in XSL-FO??
thanks
kp

Hi Vetri
Please look out for fields <CREATION_DATE> and ATTRIBUTE1
thanks
kp
<?xml version="1.0" encoding="UTF-16"?>
<PO_DATA>
<TYPE_LOOKUP_CODE>STANDARD</TYPE_LOOKUP_CODE>
<SEGMENT1>9012364</SEGMENT1>
<REVISION_NUM>0</REVISION_NUM>
<PRINT_COUNT>0</PRINT_COUNT>
<CREATION_DATE>07-NOV-2009 11:56:37</CREATION_DATE>
<DOCUMENT_BUYER_FIRST_NAME>WAYNE</DOCUMENT_BUYER_FIRST_NAME>
<DOCUMENT_BUYER_LAST_NAME>LINDENBERG</DOCUMENT_BUYER_LAST_NAME>
<DOCUMENT_BUYER_AGENT_ID>16941</DOCUMENT_BUYER_AGENT_ID>
<CANCEL_FLAG>N</CANCEL_FLAG>
<CONFIRMING_ORDER_FLAG>N</CONFIRMING_ORDER_FLAG>
<ACCEPTANCE_REQUIRED_FLAG>N</ACCEPTANCE_REQUIRED_FLAG>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<CURRENCY_NAME>US Dollar</CURRENCY_NAME>
<FOB>Destination</FOB>
<FREIGHT_TERMS>Prepaid</FREIGHT_TERMS>
<PAYMENT_TERMS>30 Net</PAYMENT_TERMS>
<VENDOR_NUM>104200</VENDOR_NUM>
<VENDOR_NAME>DEUTSCHER &amp; DAUGHTER, INC</VENDOR_NAME>
<VENDOR_ADDRESS_LINE1>105-07 150TH STREET</VENDOR_ADDRESS_LINE1>
<VENDOR_ADDRESS_LINE2>P.O. BOX 350306</VENDOR_ADDRESS_LINE2>
<VENDOR_CITY>JAMAICA</VENDOR_CITY>
<VENDOR_STATE>NY</VENDOR_STATE>
<VENDOR_POSTAL_CODE>11435-0306</VENDOR_POSTAL_CODE>
<VENDOR_COUNTRY>United States</VENDOR_COUNTRY>
<VENDOR_PHONE>2918070</VENDOR_PHONE>
<VENDOR_CONTACT_FIRST_NAME>MATTHEW</VENDOR_CONTACT_FIRST_NAME>
<VENDOR_CONTACT_LAST_NAME>DEUTSCHER-19</VENDOR_CONTACT_LAST_NAME>
<VENDOR_CONTACT_PHONE>2918070</VENDOR_CONTACT_PHONE>
<SHIP_TO_LOCATION_ID>787</SHIP_TO_LOCATION_ID>
<SHIP_TO_LOCATION_NAME>JEFFERSON HOUSE-0219</SHIP_TO_LOCATION_NAME>
<SHIP_TO_ADDRESS_LINE1>300 EAST 115TH STREET</SHIP_TO_ADDRESS_LINE1>
<SHIP_TO_ADDRESS_INFO>NEW YORK, NY 10029</SHIP_TO_ADDRESS_INFO>
<SHIP_TO_COUNTRY>United States</SHIP_TO_COUNTRY>
<BILL_TO_LOCATION_ID>147</BILL_TO_LOCATION_ID>
<BILL_TO_LOCATION_NAME>NYCHA Disbursements</BILL_TO_LOCATION_NAME>
<BILL_TO_ADDRESS_LINE1>ATTN: Disbursements</BILL_TO_ADDRESS_LINE1>
<BILL_TO_ADDRESS_LINE2>P O Box 3636</BILL_TO_ADDRESS_LINE2>
<BILL_TO_ADDRESS_LINE3>Church Street Station</BILL_TO_ADDRESS_LINE3>
<BILL_TO_ADDRESS_INFO>New York, NY 10008</BILL_TO_ADDRESS_INFO>
<BILL_TO_COUNTRY>United States</BILL_TO_COUNTRY>
<ATTRIBUTE1>60</ATTRIBUTE1>
<ATTRIBUTE3>Supply Chain Operations</ATTRIBUTE3>
<ATTRIBUTE5>Supply Chain Operations</ATTRIBUTE5>
<ATTRIBUTE6>Supply Chain Operations</ATTRIBUTE6>
<ATTRIBUTE7>030</ATTRIBUTE7>

Similar Messages

  • Xsl fo doubt for instr function

    Can anyone please advice if I can use instr and substring functions in xsl fo?
    my issue is that i have a lon email address which needs to be wrapped up in 2 lines
    Always my email ends with 'v'
    So I tried to do this
    <xsl:value-of select="substring(BUYER_CONTACT_EMAIL,1,instr(BUYER_CONTACT_EMAIL,'@'))"/>
    <xsl:value-of select="substring(BUYER_CONTACT_EMAIL,instr(BUYER_CONTACT_EMAIL,'@')+1,instr(BUYER_CONTACT_EMAIL,'v',-1))"/>
    It throwed me error
    Any idea
    KP

    Instead of
    <xsl:value-of select="substring(BUYER_CONTACT_EMAIL,1,instr(BUYER_CONTACT_EMAIL,'@'))"/>
    use
    <xsl:value-of select="substring-before(BUYER_CONTACT_EMAIL,'@')"/> <xsl:value-of select="substring-after(BUYER_CONTACT_EMAIL,'@')"/>

  • Transformation of german characters using xsl

    Hi,
    I have an xml which contains german characters .. i apply an xsl on the xml to get an html output using xalan. and the german character is converted to "?". When i try converting this using a stand alone java client class it successfully transforms it and am able to see the german character but when the same code is deployed within the application server all the german characters are converted to "?" on the browser. can anyone help me out on this ? i am using an oracle application server (OC4J)
    Pointers on how to move ahead for solving the issue would be real helpful.
    Thanks in advance,

    I'm doing this, and my XSL files include other XSLs. Here's the line of code I use:Templates t =
    factory.newTemplates(new StreamSource(new File(getServletContext().getRealPath(xslFile))));where the String variable xslFile contains something like "Callers.xsl" and my Callers.xsl file is in the web application root. I don't doubt it would work just as well creating a Transformer.

  • No validation of xsl transforms within process

    Hi there,
    I've posted this before with no avail.
    I have process which creates an XML schema from a file adpator.
    The input/output XML validation is turned on, on my BPEL server and is working well.
    I then transform this XML to another 'global schema' which is heavily validated with lots of <restricts>.
    More processing is done on this global schema, then finally it is converted over to a DB schema for output to a DB.
    As meationed above the schemas are validated on input and output (from file, to DB) fine. If i place a <restrict> on any values on these schemas the process fails.
    BUT, is the transformation the takes place within the process (from the file schema to the global schema) suppose to be validated?
    Using the XSLT mapping tool i am able to test the transformation and when i click validate quite rightly it fails. But when in the BPEL server this section does not fail, it just does the tranformation without validation.
    Is this just functionality?
    thanks,

    You want to tell whether the output of an XSL transformation will validate against a schema? I don't see what good looking at the XPath expressions in the XSLT would do -- it might not even have any, or they might be simple ones relative to the context node. And even if you did have any, I can't see how they are relevant to the output of the transformation. Which could be anything.
    And I don't see how you could find out anything about paths in the output document. I doubt you could even tell whether the output was well-formed XML let alone whether it conformed to a schema.
    So: I don't think there's an existing solution for that because (a) it isn't very simple and (b) it isn't a common requirement. Of course I could be wrong in my opinion that it isn't possible to do such a thing. But I don't think I'm wrong about it being extremely difficult.

  • Subtemplate problem using XSL tags.

    Hi,
    I am working on XML Publisher reports. I am using subtemplate.rtf in maintemplate.rtf, but i am ending up with warning after submitting concurrent program.
    My subtemplate.rtf: (It prints a blank row)-- I registered in INV Application and code name is GENERIC.
    <xsl:template name="countdown">
    <xsl:param name="p"/>
    <xsl:if test="$p"><xsl:call-template name="countdown"><xsl:with-param name="p" select="$p - 1"/>
    </xsl:call-template></xsl:if>
    </xsl:template>
    My maintemplate.rtf:
    <?import:xdo://INV.GENERIC.en.US?>
    [here i have some columns]
    *<xsl:call-template xdofo:ctx="inline" name="countdown">*
    *<xsl:with-param name="p" select="2"/></xsl:call-template>*
    After submitting concurrent program, it is ending with warning. Only with 'import statement', It's is not giving any error; but if i use 'call-template',it's giving warning.
    I doubt that problem with 'call-template' syntax.
    Could anybody help me in making it successful.
    Thanks.

    Hi,
    There is small correction in my 'call-template' syntax.
    *<xsl:call-template xdofo:ctx="inline" name="countdown">*
    *<xsl:with-param name="p" select="number(2)"/></xsl:call-template>*
    Thanks.

  • Issue on Web sharing and XSL files

    Hi all,
    What are the things to be taken care while we are doing websharing. I have an issue with one of my xMII projects. Everything is working fine on that server except xsl files. It is not getting transformed into HTML at run time. It is showing in XML format instead. I really doubt the problem is with my web sharing, because the same set of files(<b>including XSL file</b>) are working on a different server without any issue.
    I have done websharing by right clicking on the folder name, selecting the websharing tab and giving Alias name. Is that ok or anything more as to be done?
    Can anyone please trace out the issue.
    Thanks in advance
    Muzammil P.T

    Hi,
    Webroot is still in c:\inetpub\wwwroot, but i set up a new virtual directory to <b>c:\Lighthammer</b> and accessing xMII using the URL http://*...*/Lighthammer
    and my project contects using http://*...*/Lh/CompApps/MyProj/HomePage.html
    (I have given Lh as the Alias name).
    Here, My xMII homepage is working and myProj Homepage is also working fine. Once i calls the HTML pages which contains XSL files, the problem is coming.
    Please Note: The same contents is working on our different server without any change.
    Regards
    Muzammil

  • Outbound message ,http sender doubt

    Hi
    1. i had created a bo,attached it to outboundmessagetype
    2.created a xai sender which references realtime http sender xaiclass
    3.Now i created a servicescript which creates outbound message
    4.created a uimap with a button and a textfield , onclick of that button i invoked that servicescript which should send the field value to the external webservice and send a response
    To achieve this i had created a wsdl file which returns hello on receiving hi as a message
    and i had added that wsdl hosted url in xai sender context fields
    q1.
    ==>Now whats my doubt is how can i send the textbox value to the webservice and receive a response ,i know that by invoking a bo with
    F1-OUTMSG MO i can send the outbound message but what should i write in bo and how can i map it to webservice?
    q2.==>Do i need a xsd file ?
    q3.==>is it compulsory for using xsl files in an external system for an http sender xaiclass?
    q4.==>mapXML="businessObjectRequest" what does this actually mean,to which xml it maps to ?
    these are the context values i used for my sender
    http url1 :http://172.25.145.35:7001/test/testing
    http header:Soapaction:receivecall
    http method:post
    httptimeout:45
    character encoding:ISO-8859-1
    any extra fields needed to be set?
    help me guys..
    Edited by: shanker on Apr 11, 2011 10:31 AM
    Edited by: shanker on Apr 11, 2011 10:33 AM

    One update
    i am able to create a message but i am getting this error
    Message from webpage
    HTTP status code (500) was returned.
    <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"><faultcode>S:Client</faultcode><faultstring>Couldn't create SOAP message due to exception: unexpected XML tag. expected: {http://schemas.xmlsoap.org/soap/envelope/}Envelope but found: {}sayHello</faultstring></S:Fault></S:Body></S:Envelope>....
    i had not attached an xsl file to an external system either for an request or response ,is it mandatory?
    what are the essential context fields for an httpsender?
    these are what i used for my xai sender
    http url1 :http://172.25.145.35:7001/test/testing
    http header:Soapaction:receivecall
    http method:post
    httptimeout:45
    character encoding:ISO-8859-1
    plz help me

  • XSL Transfromation

    Hi Guys,
    Stuck up with XSL Transformation.
    requirement Input XML --> <row>12 , wee , 67 ,6u,hh</row> multiple rows to a target XML.
    I have created a XSL transformation using stylus studio worked fine and also used the same Input XML / XSL in XML query works perfect.
    But when i use the same in --> XSL Transformation it is not working
    Transform URL :: http://129.292.888/test.xsl
    Input : Given Doc Output
    Now when i execute  it says always below
    [ERROR]: XSLTransform error: The markup in the document following the root element must be well-formed.
    [ERROR]: ACTION FAILED: End Action XSL_Transformation_0 : ( )
    i checked many times Format is correct and same XSL works perfect in XML Query converting to desired output.
    I have one more doubt in XSL Transaction : InputXSL ?? for what this used.
    If any one used this action Block XSL Transformation give idea.
    Adding to it i am using XMII 12 ,, any inputs ?
    Rgds
    Interface
    Edited by: InterfaceSavy on Sep 8, 2009 12:58 PM

    Hi
    Many Thanks
    Yes i tried the same seeing some sdn post , try to load in xml loader , below error it says
    Error in loading XML : The markup in the document following the root element must be well-formed.
    I even checked the format of the XSL loads fine in Explorer and works gud with XML Query.
    Any idea ??
    below 4r ref
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output encoding="UTF-8" method="xml" media-type="text/xml"/>
         <xsl:template match="/">
              <Rowsets>
                   <Rowset>
                        <Columns>
                             <Column Description=" " MaxRange="0" MinRange="1" Name="CoreID" SQLDataType="1" SourceColumn="CoreID"/>
                             <Column Description=" " MaxRange="0" MinRange="1" Name="CoreDesc" SQLDataType="1" SourceColumn="CoreDesc"/>
                        </Columns>
                        <xsl:for-each select="Rowsets/Rowset/Row">
                             <Row>
                                  <CoreID>
                                       <xsl:value-of select="substring(Row1,3,5)"/>
                                  </CoreID>
                                  <CoreDes>
                                       <xsl:value-of select="substring(Row1,6,8)"/>
                                  </CoreDes>
                             </Row>
                        </xsl:for-each>
                   </Rowset>
              </Rowsets>
         </xsl:template>
    </xsl:stylesheet>
    rgds
    Savy

  • XSL transform sort problem in 1.5

    I am having problems applying an XSL transform to some XML data I have under the 1.5 JRE.
    Under 1.4.2 (and in several tools and browsers), the transform works correctly. In 1.5,
    <xsl:sort...> directives don't seem work correctly. Here's a simplified version of my
    code. Assume that the generateXMLReport outputs an XML document to a stream.
    public void generateHTMLReport( OutputStream out, String strXslSheet ){
         File f = new File( strXslSheet );
         if( f.exists() ){
              ByteArrayOutputStream bos = new ByteArrayOutputStream();
              // Generate the XML data we will work from
              generateXMLReport( bos );
              bos.flush();
              // Convert the XML to HTML by applying an XSL transform
              ByteArrayInputStream bis = new ByteArrayInputStream( bos.toByteArray() );
              TransformerFactory tFactory = TransformerFactory.newInstance();
              Transformer transformer = tFactory.newTransformer( new StreamSource( strXslSheet ) );
              transformer.transform( new StreamSource( bis), new StreamResult( out ) );
    }Here's an XSL template:
    <xsl:template name="totalTable">
         <xsl:param name="matchSet"/>
         <xsl:variable name="maxValue">
         <xsl:for-each select="$matchSet">
         <xsl:sort select="total" data-type="number" order="descending"/>
         <xsl:if test="position() = 1">
              <xsl:value-of select="number( total )" />
             </xsl:if>
             </xsl:for-each>
             </xsl:variable>
    </xsl:template>If I remove the sort directive, I get the first value in the list, as I would expect.
    Other 'for-each' loops behave similarly. The problem in 1.5. When I run against 1.4.2,
    the transformation works fine.

    Show us the code please. Not the WHOLE code, just an example that demonstrates what you're seeing. I've never seen the problem you're encountering, but I rather doubt that it's a failing in the api. More than likely it's a semantic of how you're doing the listener but that's a guess on my part. Let's see what you have and go from there.
    PS.

  • Can I really use XML/XSL to achieve this HTML?

    Hi Folks,
    I want to convert the following XML:
    <foo name="aa" id="a">Name of person</foo>
    to the following HTML:
    <input type="text" name="a" size="30" value="aa">
    I've tried several alternatives but with no success. Please help.
    null

    Try this out
    <xsl:element name="input">
    <xsl:attribute name="type" select="'text'"/>
    <xsl:attribute name="name" select="/foo/@id"/>
    <xsl:attribute name="size" select="'30'"
    <xsl:attribute name="value" select="/foo/@name"/>
    </xsl:element>
    Only doubt I have is on the attribute id .
    null

  • Disappearing of Web Parts and a custom List Views containing XSL

    Hello!
    Recently, on the sites with Web Parts
    containing XSL or on List Views (.aspx-pages) containing
    XSL a message appears:
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Correlation ID:98bcff3d-5cc0-42b6-819c-41d36a4aa335
    And so it is as long as I do not take
    certain actions: indicated below as I
    struggled with this. In a day or two it
    repeats.
    Web Parts and List Views without XSL
    are displayed normal.
    Related LOGs for such Web Parts and List View containing XSL:
    Error while executing web part: System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at Microsoft.Xslt.MethodCollection.ResolveMethodDef(Int32 tokenNum)
    at Microsoft.Xslt.MethodCollection.GetMethodInfo(Int32 methodNumber)
    at Microsoft.Xslt.STransform.GetCompiledTransform()
    at Microsoft.SharePoint.WebPartPages.BaseXsltListWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
    Herewith:
    1. Updates have been installed on the server
    with a further rebooting.
    2. No doubt the correctness of XSL:
    previously these web parts and list views were displayed.
    And it is displayed in SP Designer.
    My actions for troubleshooting (a day or two
    it reappears):
    For Web Parts containing XSL:
    - Server rebooting does not help.
    - Resaving of Web Part settings
    helps (Web Part menu -> Change Web Part -> OK).
    - Sometimes resaving of Web Part settings does not help. In this case restarting of Application Pool 'SharePoint - 80' with further
    resaving of Web Part settings helps.
    For List Views containing XSL:
    - Server rebooting does not help.
    - Server updating with futher rebooting
    helps.
    - Restarting of Application Pool 'SharePoint - 80'
    helps.

    Hi,
    According to your post, my understanding is that Web Parts and List Views with XSL were displayed unnormal.
    The error message is caused by that the time allowed for doing the XSL transformation was exceeded.
    In SharePoint 2010 the XSL transform cannot take longer than 1 second.
    There is now a hot fix available from Microsoft to resolve this issue,  the solution are at this page:
    http://support.microsoft.com/kb/2639184. 
    In addition, you can install  sharepointfoundation2010-kb2597136-fullfile-x64-glb.exe and use the PowerShell
    script below to make the change to the Timeout value
    If the issue still exists, you can perform an AppPool recycle in IIS.
    More information:
    http://englando.wordpress.com/2012/01/05/unable-to-display-this-web-part-xsltlistview-and-xsltdataview-web-part-issues-in-ie/
    http://hsdhaarsma.blogspot.in/2013/06/indexoutofrangeexception-in.html#!/2013/06/indexoutofrangeexception-in.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • I understand that a XSL transformation is faster than JSP

    Hi all
    let's say the datasource solution provides data ,
    I'm under the impression that you can make the XSL loop through the information do various logic on the data and represent the data much faster than can be accomplished with JSP
    Is there anyone else out there that understands the same ?
    stev

    I tend to doubt it. The XSL is interpreted (well, usually) where as the JSP is compiled. Sure, you can write really bad JSP code that underperforms really good transforms, but I'd tend to believe that in general it would be faster than XSL.
    That said, XSL can provide for greater flexibility than JSP rendering and that may be easily worth any small performance penalty it may have.
    Chuck

  • Doubt in fbl1n transaction

    hi i have a doubt....
    in fbl1n transaction, there are open items and cleared items.
    in it the cleared items  for certain document types such as invoice etc is not present in the open item table (bsik)
    however the cleared items for document types such as general  voucher its present in the open items table (bsik)
    is this possible as all cleared item entries shld b present in the open item table with an indicator set for cleared or not...
    plz exlain!

    Hi
    There are 2 tables(open and Closed Items)  in FI for Account Payables and Account Receivables and GL accounts
    1.Account payables: BSIK is Open Items and BSAK is Closed items
    2.Account Receivables; BSID and BSAD for OPEN and closed items
    3/GL accounts :  BSIS and BSAS  for Open and Closed Items
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Xsl:if creates unwanted newline [SOLVED]

    Hi there.
    I'm making a report, with some images. This works fine (it's just an image of a checkbox, base64 data..). However, when printing many lines, I only want to print the checkbox if it's actually text there.
    Short explanation:
    Q1 Q2
    Q3 Q4
    Q5
    I don't want the last line (which WOULD have been Q6) to print the image aswell. (That is; I only want it to print once for the Q5)
    Here's my code:
    <xsl:if test="Q_NR!='' "><fo:instream-foreign-object content-type="image/jpg"><xsl:value-of select=".//IMG"/></fo:instream-foreign-object></xsl:if>
    And this mess up my entire report with newline with the image.
    If I use only
    <fo:instream-foreign-object content-type="image/jpg"><xsl:value-of select=".//IMG"/></fo:instream-foreign-object>
    then the images print exactly as I want them.
    How can I get around this issue?
    P.S: The if quoting is like this:
    if test=(double quotes)Q_NR != (two single quotes) (double quote)

    if@inlines should do the trick.

  • Customize Print Quote stylesheet ASOPRINT.xsl

    Hi,
    I have a requirement where I need to check if we can use the existing Print Quote functionality to generate custom Quote Reports. As i see we can create new XML templates by making changes to the standard style sheet ASOPRINT.XSL. According to what is mentioned in the oracle quoting guide we can add company logo, change height width etc.. of the report by modifying this style sheet. I need to know how do we cusomize the style sheet to include static text or add new tables etc.. I am very new to XSL so do not have much idea as to where is the data fetched from and where is the static text present.
    Thnaks
    AM

    Hi,
    Thanks a lot for the response. I went through the documents and they mainly talk about customizing the Quote report by including the company logo, Title and disclaimer. How can we add static text to the ASOPRINT.XSl style sheet in order to customize it and attach it to a custom tempalate. I am very new to this so do not have much idea. can we add the static test directly in the style sheet or is it fetched from somewhere?
    Regard
    AM

Maybe you are looking for

  • Horizontal menu bar displays grey in IE - Please Help

    These are my first websites and i have created it in DW CS4. Everything is working and i have checked in multiply browsers. The one issue i can't work out is that when viewed in IE the horizontal menu bar looks grayed out. The main menu should be tra

  • The font weight on exported PDF's differs on pages w/ graphics in Acrobat?

    Hi, I couldn't find anyone addressing this, so here goes... I just upgraded to iWork '06/Pages 2.02 so I could export PDF eBooks and retain the hyperlinks. Everything is working great, except that when I view the PDFs in Safari with Acrobat Reader (r

  • Error when trying to import and burn

    I get the following message when I try to start up iTunes: Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of installing other CD burning software. Please reins

  • IPad with version 4.3.3

    i have iPad2 and iPhone 3s ea with a different apple id. have the iPhone set up on iCloud but iPad running on version 4.3.3 how can I upgrade to iCloud not losing all Apps

  • Need help with apple software update error

    some time ago i must have installed some update that maybe wasnt apple approved, or i dont know exactly waht happened, but i did a virus scan i had a bunch, got rid of them, and am now trying to reinstall itunes(i uninstalled because it was acting fu