XSLT problems convert with namespaces

We have a problem with xslt.
we are working with RAD 6.0.1.
We are Trying to convert XML that contain many tags to another xml using xsl file.
on some of the tags we have namespaces.
When we are trying to run our application that convert between the 2 xmls we are getting a new tag (the wanted tag) but all the attributes are empty. it is happanning only when the original tag has namespaces.
has anyone have the answer to this ?
Thanks in advance.
P.

In XSLT you put a prefix before the XPATH rule like this:
p1:root/p2:subnode/element
you declare the namespaces in header as attribute xmlns:p1="..."
Something like:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:p1="..." ...>
In your example you have to consider, that namespaces without prefix are inherited to subnodes. That means you have to build your XPATH like this:
p1:NemRefusionIndberetningSamling/p2:NemRefusionIndberetningStruktur/p3:HeaderStruktur/p3:ReferenceAttributTekst

Similar Messages

  • XSLT for payload with namespaces

    Hello Experts,      attn:Stefan.
      I am using a XSLT to parse the input xml payload and retrieve the Value of a particular field which will be used for receiver determination.
    The XSL code used by me is :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
    <ns1:Receivers xmlns:ns1="http://sap.com/xi/XI/System">
    <Receiver>
    <Service>
    <xsl:value-of select="NemRefusionIndberetningSamling/NemRefusionIndberetningStruktur/HeaderStruktur/ReferenceAttributTekst" />
    </Service>
    </Receiver>
    </ns1:Receivers>
    </xsl:template>
    </xsl:stylesheet>
    And the input payload I am getting is something like:
    <?xml version="1.0" encoding="utf-8"?>
    <NemRefusionIndberetningSamling >
         <DannetDatoTid>2010-04-22T12:14:28.036+02:00</DannetDatoTid>
         <NemRefusionIndberetningStruktur xmlns="urn:oio:abc:nemrefusionindberetning:2009.07.03" MessageID="1">
              <HeaderStruktur xmlns="urn:oio:abc:nemrefusionheader:2009.07.03">
                   <FravaerTypeKode>Sygdom</FravaerTypeKode>
                   <FravaerendeStruktur>
                        <FravaerendeTypeKode>Loenmodtager</FravaerendeTypeKode>
                        <LoenUnderFravaerIndikator>false</LoenUnderFravaerIndikator>
                   </FravaerendeStruktur>
                   <IndberetningUUIDIdentifikator>bf9cc44e-af15-4e19</IndberetningUUIDIdentifikator>
                   <ReferenceAttributTekst>S70CLNT007</ReferenceAttributTekst>
              </HeaderStruktur>
         </NemRefusionIndberetningStruktur>
    </NemRefusionIndberetningSamling>
    The XSLT works fine with above payload. But now we need to add namespaces in top level elements. So the payload will be like:
    <NemRefusionIndberetningSamling xmlns="urn:oio:abc:nemrefusionsamling:2009.07.03" UUIDIdentifikator="DF8C1CB43B2E14F1A0C5005">
    <DannetDatoTid>2010-04-22T12:14:28.036+02:00</DannetDatoTid>
         <NemRefusionIndberetningStruktur xmlns="urn:oio:abc:nemrefusionindberetning:2009.07.03" MessageID="1">
              <HeaderStruktur xmlns="urn:oio:abc:nemrefusionheader:2009.07.03">
                   <FravaerTypeKode>Sygdom</FravaerTypeKode>
                   <FravaerendeStruktur>
                        <FravaerendeTypeKode>Loenmodtager</FravaerendeTypeKode>
                        <LoenUnderFravaerIndikator>false</LoenUnderFravaerIndikator>
                   </FravaerendeStruktur>
                   <IndberetningUUIDIdentifikator>bf9cc44e-af15-4e19</IndberetningUUIDIdentifikator>
                   <ReferenceAttributTekst>S70CLNT007</ReferenceAttributTekst>
              </HeaderStruktur>
         </NemRefusionIndberetningStruktur>
    </NemRefusionIndberetningSamling>
    Top element being changed by addition of namespace, XSLT fails to retriev the value of required field i.e. <ReferenceAttributTekst>
    Changed element:
    "<NemRefusionIndberetningSamling xmlns="urn:oio:abc:nemrefusionsamling:2009.07.03" UUIDIdentifikator="DF8C1CB43B2E14F1A0C5005">"
    I am sure that there should be a way to handle namespaces in XSLT. Please suggest me the correction to XSLT to handle this namespace addition to top element.
    Kind Regards,
    Abhijeet.

    In XSLT you put a prefix before the XPATH rule like this:
    p1:root/p2:subnode/element
    you declare the namespaces in header as attribute xmlns:p1="..."
    Something like:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:p1="..." ...>
    In your example you have to consider, that namespaces without prefix are inherited to subnodes. That means you have to build your XPATH like this:
    p1:NemRefusionIndberetningSamling/p2:NemRefusionIndberetningStruktur/p3:HeaderStruktur/p3:ReferenceAttributTekst

  • Problem Converting With Compressor FC6

    Hi Gang
    It's my understanding that sites like Vimeo and U Tube utilize some type of compression to help maximize the 'playable options' on the viewer side, depending on the size of the original file. I will not be using either site. Rather, I'd like to employ my own compression and upload to my own site.  I carefully followed a Ken Stone tutorial, (which BTW is geared toward an HD conversion). Still don't know why I can't get compressor to do anything with my test. The resulting outputted file has nothing on it. I should at least have a file to open in QT? It won't open because there's nothing there, it's only 4kb. I must be doing something wrong. I'm using FC6, and I work strickly in Standard Def. The file I'm trying to convert is 2-4 GB's, (a self contained QT file).                    
    Screen Shots:
    http://www.locationstudio.net/Comp-2.jpg
    http://www.locationstudio.net/Comp-3.jpg
    Is there another tutorial for FC6 that can walk you through a conversion using a Standard Def. file? This is the tutorial I followed:  http://www.kenstone.net/fcp_homepage/vimeo_hd_compressor_douglas.html
    Thanx
    Mike

    Any ideas?

  • The Problem converting with EJB

    i convert a word file to pdf with EJB transfer
    when the result file size>1M ,the client will trow a
    com.adobe.idp.DocumentError: java.io.FileNotFoundException:
    can you help me?

    Any ideas?

  • Using XSLT to extract value of a XML node with namespace

    I have a XML source code here.
    <?xml version="1.0" encoding="utf-8" ?>
    <rss version="2.0" xmlns:job="http://www.pageuppeople.com">
      <channel>
        <title>SMH Jobs</title>
        <link>internalrecruitment.smhgroup.com.au/jobsrss.ashx?stp=di</link>
        <description>A listing of jobs available here</description>
        <item>
          <title>eCommerce Optimisation Advisor</title>
          <description>A new and exciting opportunity exists for an experienced eCommerce Advisor to join</description>
          <job:location PUReferenceID="3711">Sydney - Inner Suburbs & CBD</job:location>
        </item>
      </channel>
    </rss>
    I want to use XSLT to extract value of a XML node with namespace <job:location>, and the returned value should be string 'Sydney - Inner Suburbs & CBD'. I tried a few XSL code below, but failed with error or nothing was returned.
    <xsl:value-of select="job:location" disable-output-escaping="yes"/>
    <xsl:value-of select="job/location" disable-output-escaping="yes"/>
    <xsl:value-of select="job\location" disable-output-escaping="yes"/>
    <xsl:value-of select="location" disable-output-escaping="yes"/>
    This might be an easy question for you, but I would appreciate if anyone can help.

    Hi Suncorp IT Learner,
    We need to tell the XSLT that some elements are in another namespace. Copy the xmls declarations for the prefixes you need to use. Then use the xsl format as:
    <xsl: value-of select=”job:location/@PUReferenceID”/>
    In following issue, Chriztian has a good explanation:
    http://our.umbraco.org/forum/developers/xslt/33353-XSLT-reading-XML-attribute-value
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Having a problem converting a PDF file to Words with Adobe's conversion program.

    Having a problem converting a PDF file to Words with Adobe's conversion program.

    See https://forums.adobe.com/docs/DOC-2412
    If you need more help, please ask in https://forums.adobe.com/community/acrobatdotcom/

  • Problems converting PDF to MS Word document.  I successfuly converted 4 files and now subsequent files generate a "conversion failure" error when attempting to convert the file.  I have a large manuscript and I separated each chapter to assist with the co

    Problems converting PDF to MS Word document.  I successfully converted 4 files and now subsequent files generate a "conversion failure" error when attempting to convert the file.  I have a large manuscript and I separated each chapter to assist with the conversion; like I said, first 4 parts no problem, then conversion failure.  I attempted to convert the entire document and same result.  I specifically purchased the export to Word feature.  Please assist.  I initially had to export the Word Perfect document into PDF and attempting to go from PDF to MS Word.

    Hi sdr2014,
    I'm sorry to hear your conversion process has stalled. It sounds as though the problem isn't specific to one file, as you've been unable to convert anything since the first four chapters converted successfully.
    So, let's try this:
    If you're converting via the ExportPDF website, please log out, clear the browser cache, and then log back in. If you're using Reader, please choose Help > Check for Updates to make sure that you have the most current version installed.
    Please let us know how it goes.
    Best,
    Sara

  • Sync problem converting videos with SU

    Hi there. I have owned my Creative Zen Vision:m 30gig player for about 2 weeks now. So far I have really come to love this device. I have learned how to put album art on all my favourite albums with ?Album Art Downloader? and I am using Media Monkey to manage and sync my mp3 files from my pc to my Vision:m. I have even loaded all my photos onto the player and bought the accessories pack so that I can hook it up to my television ? it works perfectly.
    My last challenge (so far) was to figure out how to make this video thing work as I have about 00 videos which I have downloaded from Google video via a plugin for Mozilla Firefox called ?Video Downloader ?. The videos from Google video are encoded into something called a .flv file. I have done A LOT of reading here and other places on how to convert the various formats into formats the player can understand. Apparently the program ?Super? is THE thing for converting almost anything into well anything. I tried it and found out I could select ALL of my videos and select a common setting for them all to be encoded into. My first reaction?. sweeeeeet! The videos did not seem to have lost much quality and when I loaded them to the player, it would play them nicely? or so I thought.
    It did however slowly but inevitably become clear to me that despite my most fierce attempts of denial? there was a sync problem with the audio. Not a huge annoyance but still an annoyance, something which I knew I couldn?t li've with. I therefore rushed to the program and tried to shuffle the settings a bit, changed the codecs changed the containers but nothing would work. The sound sync problem would still be there, lurking. The problem was also present when converting high quality xvid movies.
    This is where my creativity and patience has come to an end. This is where I give up and crawl to you begging for help. I in order for you to help me, I will try to help YOU recreate my scenario.
    I have a video, perhaps a little morbid, where the sync problem is very obvious after you have converted it with super, here is the link http://video.google.com/videoplay?docid=-7233445036972827652
    I use a plugin for Firefox to download videos from Youtube, Google video, etc. called ?Video Downloader?, here?s the link
    https://addons.mozilla.org/firefox/2390/
    The settings I use for Super are the following:
    Output Container: Avi (For Pocket Pc)
    Output Video Codec: Mpeg4
    Video Scale Size: 320*240
    Frame/Sec: 25
    Bitrate: 336
    Hi Quality: ?Checked?
    Stretch It: ?Checked?
    Sampling Freq: 22050
    Bitrate kbps: 28
    Ok if you manage to download the clip from google video (easy) AND convert with Super into a format fitting for the Zen Vision:m without the sync problem? well my joy will break any ?happy-meter? out there
    Ps. I did actually find a way to fix the sync problem, I checked the ?Directshow? for the ffmpeg but the picture was sort of lagging and looking REALLY ugly so that actually created a problem much worse than the previous one.
    Thank you for your time and patience

    I am not sure I can help you but I do have one pice of information. The sync problems arise from converting to the wrong frame rate. If you can choose the frame rate for the videos you convert to then you can test different rates and find the right rate. Keep in mind that there is currently no way to determine the approiate frome rate without teting it.
    [Edit]
    BTW is that MS-mpeg4-v or MS-mpeg4-v2?Message Edited by Edward-Nardella on 2-26-200602:08 PM

  • Problem converting the matrix dvd with videora

    Hi, Iv'e been using dvd decryptor and videora ipod converter to get my dvd's on my ipod and it's been working until now but I'm having a problem with the matrix dvd (the first one widescreen edition). For some reason when ever I convert it with videora a little piece of the video gets cut out (the part where trinity goes into slow-mo and kicks the cop in the face) but the audio dosen't so for the rest of the movie the av sync is off by about 5 seconds. If anyone else has had this problem or has any ideas please help.

    I tried ripping the dvd with smart ripper instead of dvd decryptor and got the same problem so it seems like the problem is with videora. Are there any other programs like videora that might work? Also I do have quicktime pro and the mpeg encoder for it so is there a way to do it using that?

  • Is any one else having problems converting audio books in WMA format with the new v5

    Is any one having trouble with audio books in WMA formatting converting with the new ios v5 

    Since updating to OS5 in my itouch I have lost all my library audio books. I have downloaded a couple of new library audio books. The books look like they are being loaded into my itouch but are not there. The only way I can access them is to make a playlist for each book and drag the numbered files into the playlist folder. There are a lot of problems with this method - book chapters are not in order (I have to tried to reorder them without success) and if I stop listening to a book, when it starts again it starts at the beginning of the chapter. Before OS5 I had no trouble with WMA files or anything for that matter. I hope there is a solution soon.

  • Unstructured Xml Storage with Namespaces - Problem in DML Queries

    Hai All,
    I worked with xml namespace with registering schema in db and referred in my xml document.It worked fine.
    But i want to work in unstructured xml document with namespaces, to do all dml queries like, select,update,delete using Xpath to xmltype.
    I could insert the records,When i try to select some element from xmltype field using Xptah from db,it does not bring any thing like element value or any error.It just displaying as empty value.I am using oracle 10g R2.
    Please help me how to select the element value from xmltype using XPath or whatever it is.
    Please help me out from this to follow
    Advance Thanks,
    P.Savananan

    SQL> create user marco identified by marco account unlock;
    User created.
    SQL> grant dba, xdbadmin to marco;
    Grant succeeded.
    SQL> conn marco/[email protected]
    Connected.
    SQL> create table xml_tab ( details xmltype);
    Table created.
    SQL> insert into xml_tab values(XMLTYPE('<?xml version="1.0" ?>
      2  <customers xmlns="http://localhost/openuri.org" >
      3  <customer>
      4  <order xmlns="http://orcl.com" >
      5  <ordername>Computer</ordername>
      6  <cost>35785638</cost>
      7  </order>
      8  </customer>
      9  </customers>'));
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select extractValue(details,'/customers/customer/order/ordername') from xml_tab;
    EXTRACTVALUE(DETAILS,'/CUSTOMERS/CUSTOMER/ORDER/ORDERNAME')
    SQL> set long 10000
    SQL> select * from xml_tab;
    DETAILS
    <?xml version="1.0"?>
    <customers xmlns="http://localhost/openuri.org">
      <customer>
        <order xmlns="http://orcl.com">
          <ordername>Computer</ordername>
          <cost>35785638</cost>
        </order>
      </customer>
    </customers>
    SQL> select extract(details,'//order/ordername') XDATA
      2  from   xml_tab
      3  ;
    XDATA
    SQL> select extract(details,'//order/ordername','xmlns="http://orcl.com"') XDATA
      2  from   xml_tab
      3  ;
    XDATA
    <ordername xmlns="http://orcl.com">Computer</ordername>
    SQL> select extractValue(details,'//order/ordername','xmlns="http://orcl.com"') XDATA
      2  from   xml_tab
      3  ;
    XDATA
    Computer
    SQL> select extractValue(details,'/*/*/order/ordername','xmlns="http://orcl.com"') XDATA
      2  from   xml_tab
      3  ;
    XDATA
    Computer

  • Problem converting a (working) Java program into an applet

    When I'm trying to access an Image through a call to :
    mediaTracker = new MediaTracker(this);
    backGroundImage = getImage(getDocumentBase(), "background.gif");
    mediaTracker.addImage(backGroundImage, 0);
    I'm getting a nullPointerException as a result of the call to getDocumentBase() :
    C:\Chantier\Java\BallsApplet
    AppletViewer testBallsApplet.htmljava.lang.NullPointerException
    at java.applet.Applet.getDocumentBase(Applet.java:125)
    at Balls.<init>(Balls.java:84)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:296)
    at java.lang.Class.newInstance(Class.java:249)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:548)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:477)
    at sun.applet.AppletPanel.run(AppletPanel.java:290)
    at java.lang.Thread.run(Thread.java:536)
    It seems very weird to me... :-/
    (all the .gif files are in the same directory than the .class files)
    The problem appears with AppletViewer trying to open an HTML file
    containing :
    <HTML>
    <APPLET CODE="Balls.class" WIDTH=300 HEIGHT=211>
    </APPLET>
    </HTML>
    (I tried unsuccessfully the CODEBASE and ARCHIVE attributes, with and without putting the .gif and .class into a .jar file)
    I can't find the solution by myself, so, I'd be very glad if someone could help
    me with this... Thank you very much in advance ! :-)
    You'll find below the source of a small game that I wrote and debugged (without
    problem) and that I'm now (unsuccessfully) trying to convert into an Applet :
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.net.URL;
    public class Balls extends java.applet.Applet implements Runnable, KeyListener
    private Image offScreenImage;
    private Image backGroundImage;
    private Image[] gifImages = new Image[6];
    private Image PressStart ;
    private Sprite pressStartSprite = null ;
    private Image YouLose ;
    private Sprite YouLoseSprite = null ;
    private Image NextStage ;
    private Sprite NextStageSprite = null ;
    private Image GamePaused ;
    private Sprite GamePausedSprite = null ;
    //offscreen graphics context
    private Graphics offScreenGraphicsCtx;
    private Thread animationThread;
    private MediaTracker mediaTracker;
    private SpriteManager spriteManager;
    //Animation display rate, 12fps
    private int animationDelay = 83;
    private Random rand = new Random(System.currentTimeMillis());
    private int message = 0 ; // 0 = no message (normal playing phase)
    // 1 = press space to start
    // 2 = press space for next level
    // 3 = game PAUSED, press space to unpause
    // 4 = You LOSE
    public static void main(String[] args)
    try
    new Balls() ;
    catch (java.net.MalformedURLException e)
    System.out.println(e);
    }//end main
    public void start()
    //Create and start animation thread
    animationThread = new Thread(this);
    animationThread.start();
    public void init()
    try
    new Balls() ;
    catch (java.net.MalformedURLException e)
    System.out.println(e);
    public Balls() throws java.net.MalformedURLException
    {//constructor
    // Load and track the images
    mediaTracker = new MediaTracker(this);
    backGroundImage = getImage(getDocumentBase(), "background.gif");
    mediaTracker.addImage(backGroundImage, 0);
    PressStart = getImage(getDocumentBase(), "press_start.gif");
    mediaTracker.addImage(PressStart, 0);
    NextStage = getImage(getDocumentBase(), "stage_complete.gif");
    mediaTracker.addImage(NextStage, 0);
    GamePaused = getImage(getDocumentBase(), "game_paused.gif");
    mediaTracker.addImage(GamePaused, 0);
    YouLose = getImage(getDocumentBase(), "you_lose.gif");
    mediaTracker.addImage(YouLose, 0);
    //Get and track 6 images to use
    // for sprites
    gifImages[0] = getImage(getDocumentBase(), "blueball.gif");
    mediaTracker.addImage(gifImages[0], 0);
    gifImages[1] = getImage(getDocumentBase(), "redball.gif");
    mediaTracker.addImage(gifImages[1], 0);
    gifImages[2] = getImage(getDocumentBase(), "greenball.gif");
    mediaTracker.addImage(gifImages[2], 0);
    gifImages[3] = getImage(getDocumentBase(), "yellowball.gif");
    mediaTracker.addImage(gifImages[3], 0);
    gifImages[4] = getImage(getDocumentBase(), "purpleball.gif");
    mediaTracker.addImage(gifImages[4], 0);
    gifImages[5] = getImage(getDocumentBase(), "orangeball.gif");
    mediaTracker.addImage(gifImages[5], 0);
    //Block and wait for all images to
    // be loaded
    try {
    mediaTracker.waitForID(0);
    }catch (InterruptedException e) {
    System.out.println(e);
    }//end catch
    //Base the Frame size on the size
    // of the background image.
    //These getter methods return -1 if
    // the size is not yet known.
    //Insets will be used later to
    // limit the graphics area to the
    // client area of the Frame.
    int width = backGroundImage.getWidth(this);
    int height = backGroundImage.getHeight(this);
    //While not likely, it may be
    // possible that the size isn't
    // known yet. Do the following
    // just in case.
    //Wait until size is known
    while(width == -1 || height == -1)
    System.out.println("Waiting for image");
    width = backGroundImage.getWidth(this);
    height = backGroundImage.getHeight(this);
    }//end while loop
    //Display the frame
    setSize(width,height);
    setVisible(true);
    //setTitle("Balls");
    //Anonymous inner class window
    // listener to terminate the
    // program.
    this.addWindowListener
    (new WindowAdapter()
    {public void windowClosing(WindowEvent e){System.exit(0);}});
    // Add a key listener for keyboard management
    this.addKeyListener(this);
    }//end constructor
    public void run()
    Point center_place = new Point(
    backGroundImage.getWidth(this)/2-PressStart.getWidth(this)/2,
    backGroundImage.getHeight(this)/2-PressStart.getHeight(this)/2) ;
    pressStartSprite = new Sprite(this, PressStart, center_place, new Point(0, 0),true);
    center_place = new Point(
    backGroundImage.getWidth(this)/2-NextStage.getWidth(this)/2,
    backGroundImage.getHeight(this)/2-NextStage.getHeight(this)/2) ;
    NextStageSprite = new Sprite(this, NextStage, center_place, new Point(0, 0),true);
    center_place = new Point(
    backGroundImage.getWidth(this)/2-GamePaused.getWidth(this)/2,
    backGroundImage.getHeight(this)/2-GamePaused.getHeight(this)/2) ;
    GamePausedSprite = new Sprite(this, GamePaused, center_place, new Point(0, 0),true);
    center_place = new Point(
    backGroundImage.getWidth(this)/2-YouLose.getWidth(this)/2,
    backGroundImage.getHeight(this)/2-YouLose.getHeight(this)/2) ;
    YouLoseSprite = new Sprite(this, YouLose, center_place, new Point(0, 0),true);
    BackgroundImage bgimage = new BackgroundImage(this, backGroundImage) ;
    for (;;) // infinite loop
    long time = System.currentTimeMillis();
    message = 1 ; // "press start to begin"
    while (message != 0)
    repaint() ;
    try
    time += animationDelay;
    Thread.sleep(Math.max(0,time - System.currentTimeMillis()));
    catch (InterruptedException e)
    System.out.println(e);
    }//end catch
    boolean you_lose = false ;
    for (int max_speed = 7 ; !you_lose && max_speed < 15 ; max_speed++)
    for (int difficulty = 2 ; !you_lose && difficulty < 14 ; difficulty++)
    boolean unfinished_stage = true ;
    spriteManager = new SpriteManager(bgimage);
    spriteManager.setParameters(difficulty, max_speed) ;
    //Create 15 sprites from 6 gif
    // files.
    for (int cnt = 0; cnt < 15; cnt++)
    if (cnt == 0)
    Point position = new Point(
    backGroundImage.getWidth(this)/2-gifImages[0].getWidth(this)/2,
    backGroundImage.getHeight(this)/2-gifImages[0].getHeight(this)/2) ;
    spriteManager.addSprite(makeSprite(position, 0, false));
    else
    Point position = spriteManager.
    getEmptyPosition(new Dimension(gifImages[0].getWidth(this),
    gifImages[0].getHeight(this)));
    if (cnt < difficulty)
    spriteManager.addSprite(makeSprite(position, 1, true));
    else
    spriteManager.addSprite(makeSprite(position, 2, true));
    }//end for loop
    time = System.currentTimeMillis();
    while (!spriteManager.getFinishedStage() && !spriteManager.getGameOver())
    // Loop, sleep, and update sprite
    // positions once each 83
    // milliseconds
    spriteManager.update();
    repaint();
    try
    time += animationDelay;
    Thread.sleep(Math.max(0,time - System.currentTimeMillis()));
    catch (InterruptedException e)
    System.out.println(e);
    }//end catch
    }//end while loop
    if (spriteManager.getGameOver())
    message = 4 ;
    while (message != 0)
    spriteManager.update();
    repaint();
    try
    time += animationDelay;
    Thread.sleep(Math.max(0,time - System.currentTimeMillis()));
    catch (InterruptedException e)
    System.out.println(e);
    }//end catch
    you_lose = true ;
    if (spriteManager.getFinishedStage())
    message = 2 ;
    while (message != 0)
    spriteManager.update();
    repaint();
    try
    time += animationDelay;
    Thread.sleep(Math.max(0,time - System.currentTimeMillis()));
    catch (InterruptedException e)
    System.out.println(e);
    }//end catch
    } // end for difficulty loop
    } // end for max_speed
    } // end infinite loop
    }//end run method
    private Sprite makeSprite(Point position, int imageIndex, boolean wind)
    return new Sprite(
    this,
    gifImages[imageIndex],
    position,
    new Point(rand.nextInt() % 5,
    rand.nextInt() % 5),
    wind);
    }//end makeSprite()
    //Overridden graphics update method
    // on the Frame
    public void update(Graphics g)
    //Create the offscreen graphics
    // context
    if (offScreenGraphicsCtx == null)
    offScreenImage = createImage(getSize().width,
    getSize().height);
    offScreenGraphicsCtx = offScreenImage.getGraphics();
    }//end if
    if (message == 0)
    // Draw the sprites offscreen
    spriteManager.drawScene(offScreenGraphicsCtx);
    else if (message == 1)
    pressStartSprite.drawSpriteImage(offScreenGraphicsCtx);
    else if (message == 2)
    NextStageSprite.drawSpriteImage(offScreenGraphicsCtx);
    else if (message == 3)
    GamePausedSprite.drawSpriteImage(offScreenGraphicsCtx);
    else if (message == 4)
    YouLoseSprite.drawSpriteImage(offScreenGraphicsCtx);
    // Draw the scene onto the screen
    if(offScreenImage != null)
    g.drawImage(offScreenImage, 0, 0, this);
    }//end if
    }//end overridden update method
    //Overridden paint method on the
    // Frame
    public void paint(Graphics g)
    //Nothing required here. All
    // drawing is done in the update
    // method above.
    }//end overridden paint method
    // Methods to handle Keyboard event
    public void keyPressed(KeyEvent evt)
    int key = evt.getKeyCode(); // Keyboard code for the pressed key.
    if (key == KeyEvent.VK_SPACE)
    if (message != 0)
    message = 0 ;
    else
    message = 3 ;
    if (key == KeyEvent.VK_LEFT)
    if (spriteManager != null)
    spriteManager.goLeft() ;
    else if (key == KeyEvent.VK_RIGHT)
    if (spriteManager != null)
    spriteManager.goRight() ;
    else if (key == KeyEvent.VK_UP)
    if (spriteManager != null)
    spriteManager.goUp() ;
    else if (key == KeyEvent.VK_DOWN)
    if (spriteManager != null)
    spriteManager.goDown() ;
    if (spriteManager != null)
    spriteManager.setMessage(message) ;
    public void keyReleased(KeyEvent evt)
    public void keyTyped(KeyEvent e)
    char key = e.getKeyChar() ;
    //~ if (key == 's')
    //~ stop = true ;
    //~ else if (key == 'c')
    //~ stop = false ;
    //~ spriteManager.setStop(stop) ;
    }//end class Balls
    //===================================//
    class BackgroundImage
    private Image image;
    private Component component;
    private Dimension size;
    public BackgroundImage(
    Component component,
    Image image)
    this.component = component;
    size = component.getSize();
    this.image = image;
    }//end construtor
    public Dimension getSize(){
    return size;
    }//end getSize()
    public Image getImage(){
    return image;
    }//end getImage()
    public void setImage(Image image){
    this.image = image;
    }//end setImage()
    public void drawBackgroundImage(Graphics g)
    g.drawImage(image, 0, 0, component);
    }//end drawBackgroundImage()
    }//end class BackgroundImage
    //===========================
    class SpriteManager extends Vector
    private BackgroundImage backgroundImage;
    private boolean finished_stage = false ;
    private boolean game_over = false ;
    private int difficulty ;
    private int max_speed ;
    public boolean getFinishedStage()
    finished_stage = true ;
    for (int cnt = difficulty ; cnt < size(); cnt++)
    Sprite sprite = (Sprite)elementAt(cnt);
    if (!sprite.getEaten())
    finished_stage = false ;
    return finished_stage ;
    public boolean getGameOver() {return game_over ;}
    public void setParameters(int diff, int speed)
    difficulty = diff ;
    max_speed = speed ;
    finished_stage = false ;
    game_over = false ;
    Sprite sprite;
    for (int cnt = 0;cnt < size(); cnt++)
    sprite = (Sprite)elementAt(cnt);
    sprite.setSpeed(max_speed) ;
    public SpriteManager(BackgroundImage backgroundImage)
    this.backgroundImage = backgroundImage ;
    }//end constructor
    public Point getEmptyPosition(Dimension spriteSize)
    Rectangle trialSpaceOccupied = new Rectangle(0, 0,
    spriteSize.width,
    spriteSize.height);
    Random rand = new Random(System.currentTimeMillis());
    boolean empty = false;
    int numTries = 0;
    // Search for an empty position
    while (!empty && numTries++ < 100)
    // Get a trial position
    trialSpaceOccupied.x =
    Math.abs(rand.nextInt() %
    backgroundImage.
    getSize().width);
    trialSpaceOccupied.y =
    Math.abs(rand.nextInt() %
    backgroundImage.
    getSize().height);
    // Iterate through existing
    // sprites, checking if position
    // is empty
    boolean collision = false;
    for(int cnt = 0;cnt < size(); cnt++)
    Rectangle testSpaceOccupied = ((Sprite)elementAt(cnt)).getSpaceOccupied();
    if (trialSpaceOccupied.intersects(testSpaceOccupied))
    collision = true;
    }//end if
    }//end for loop
    empty = !collision;
    }//end while loop
    return new Point(trialSpaceOccupied.x, trialSpaceOccupied.y);
    }//end getEmptyPosition()
    public void update()
    Sprite sprite;
    // treat special case of sprite #0 (the player)
    sprite = (Sprite)elementAt(0);
    sprite.updatePosition() ;
    int hitIndex = testForCollision(sprite);
    if (hitIndex != -1)
    if (hitIndex < difficulty)
    { // if player collides with an hunter (red ball), he loose
    sprite.setEaten() ;
    game_over = true ;
    else
    // if player collides with an hunted (green ball), he eats the green
    ((Sprite)elementAt(hitIndex)).setEaten() ;
    //Iterate through sprite list
    for (int cnt = 1;cnt < size(); cnt++)
    sprite = (Sprite)elementAt(cnt);
    //Update a sprite's position
    sprite.updatePosition();
    //Test for collision. Positive
    // result indicates a collision
    hitIndex = testForCollision(sprite);
    if (hitIndex >= 0)
    //a collision has occurred
    bounceOffSprite(cnt,hitIndex);
    }//end if
    }//end for loop
    }//end update
    public void setMessage(int message)
    Sprite sprite;
    //Iterate through sprite list
    for (int cnt = 0;cnt < size(); cnt++)
    sprite = (Sprite)elementAt(cnt);
    //Update a sprite's stop status
    sprite.setMessage(message);
    }//end for loop
    }//end update
    public void goLeft()
    Sprite sprite = (Sprite)elementAt(0);
    sprite.goLeft() ;
    public void goRight()
    Sprite sprite = (Sprite)elementAt(0);
    sprite.goRight() ;
    public void goUp()
    Sprite sprite = (Sprite)elementAt(0);
    sprite.goUp() ;
    public void goDown()
    Sprite sprite = (Sprite)elementAt(0);
    sprite.goDown() ;
    private int testForCollision(Sprite testSprite)
    //Check for collision with other
    // sprites
    Sprite sprite;
    for (int cnt = 0;cnt < size(); cnt++)
    sprite = (Sprite)elementAt(cnt);
    if (sprite == testSprite)
    //don't check self
    continue;
    //Invoke testCollision method
    // of Sprite class to perform
    // the actual test.
    if (testSprite.testCollision(sprite))
    //Return index of colliding
    // sprite
    return cnt;
    }//end for loop
    return -1;//No collision detected
    }//end testForCollision()
    private void bounceOffSprite(int oneHitIndex, int otherHitIndex)
    //Swap motion vectors for
    // bounce algorithm
    Sprite oneSprite = (Sprite)elementAt(oneHitIndex);
    Sprite otherSprite = (Sprite)elementAt(otherHitIndex);
    Point swap = oneSprite.getMotionVector();
    oneSprite.setMotionVector(otherSprite.getMotionVector());
    otherSprite.setMotionVector(swap);
    }//end bounceOffSprite()
    public void drawScene(Graphics g)
    //Draw the background and erase
    // sprites from graphics area
    //Disable the following statement
    // for an interesting effect.
    backgroundImage.drawBackgroundImage(g);
    //Iterate through sprites, drawing
    // each sprite
    for (int cnt = 0;cnt < size(); cnt++)
    ((Sprite)elementAt(cnt)).drawSpriteImage(g);
    }//end drawScene()
    public void addSprite(Sprite sprite)
    addElement(sprite);
    }//end addSprite()
    }//end class SpriteManager
    //===================================//
    class Sprite
    private Component component;
    private Image image;
    private Rectangle spaceOccupied;
    private Point motionVector;
    private Rectangle bounds;
    private Random rand;
    private int message = 0 ; // number of message currently displayed (0 means "no message" = normal game)
    private int max_speed = 7 ;
    private boolean eaten = false ; // when a green sprite is eaten, it is no longer displayed on screen
    private boolean wind = true ;
    private boolean go_left = false ;
    private boolean go_right = false ;
    private boolean go_up = false ;
    private boolean go_down = false ;
    public Sprite(Component component,
    Image image,
    Point position,
    Point motionVector,
    boolean Wind
    //Seed a random number generator
    // for this sprite with the sprite
    // position.
    rand = new Random(position.x);
    this.component = component;
    this.image = image;
    setSpaceOccupied(new Rectangle(
    position.x,
    position.y,
    image.getWidth(component),
    image.getHeight(component)));
    this.motionVector = motionVector;
    this.wind = Wind ;
    //Compute edges of usable graphics
    // area in the Frame.
    int topBanner = ((Container)component).getInsets().top;
    int bottomBorder = ((Container)component).getInsets().bottom;
    int leftBorder = ((Container)component).getInsets().left;
    int rightBorder = ((Container)component).getInsets().right;
    bounds = new Rectangle( 0 + leftBorder, 0 + topBanner
    , component.getSize().width - (leftBorder + rightBorder)
    , component.getSize().height - (topBanner + bottomBorder));
    }//end constructor
    public void setMessage(int message_number)
    message = message_number ;
    public void setSpeed(int speed)
    max_speed = speed ;
    public void goLeft()
    go_left = true ;
    public void goRight()
    go_right = true ;
    public void goUp()
    go_up = true ;
    public void goDown()
    go_down = true ;
    public void setEaten()
    eaten = true ;
    setSpaceOccupied(new Rectangle(4000,4000,0,0)) ;
    public boolean getEaten()
    return eaten ;
    public Rectangle getSpaceOccupied()
    return spaceOccupied;
    }//end getSpaceOccupied()
    void setSpaceOccupied(Rectangle spaceOccupied)
    this.spaceOccupied = spaceOccupied;
    }//setSpaceOccupied()
    public void setSpaceOccupied(
    Point position){
    spaceOccupied.setLocation(
    position.x, position.y);
    }//setSpaceOccupied()
    public Point getMotionVector(){
    return motionVector;
    }//end getMotionVector()
    public void setMotionVector(
    Point motionVector){
    this.motionVector = motionVector;
    }//end setMotionVector()
    public void setBounds(Rectangle bounds)
    this.bounds = bounds;
    }//end setBounds()
    public void updatePosition()
    Point position = new Point(spaceOccupied.x, spaceOccupied.y);
    if (message != 0)
    return ;
    //Insert random behavior. During
    // each update, a sprite has about
    // one chance in 10 of making a
    // random change to its
    // motionVector. When a change
    // occurs, the motionVector
    // coordinate values are forced to
    // fall between -7 and 7. This
    // puts a cap on the maximum speed
    // for a sprite.
    if (!wind)
    if (go_left)
    motionVector.x -= 2 ;
    if (motionVector.x < -15)
    motionVector.x = -14 ;
    go_left = false ;
    if (go_right)
    motionVector.x += 2 ;
    if (motionVector.x > 15)
    motionVector.x = 14 ;
    go_right = false ;
    if (go_up)
    motionVector.y -= 2 ;
    if (motionVector.y < -15)
    motionVector.y = -14 ;
    go_up = false ;
    if (go_down)
    motionVector.y += 2 ;
    if (motionVector.y > 15)
    motionVector.y = 14 ;
    go_down = false ;
    else if(rand.nextInt() % 7 == 0)
    Point randomOffset =
    new Point(rand.nextInt() % 3,
    rand.nextInt() % 3);
    motionVector.x += randomOffset.x;
    if(motionVector.x >= max_speed)
    motionVector.x -= max_speed;
    if(motionVector.x <= -max_speed)
    motionVector.x += max_speed ;
    motionVector.y += randomOffset.y;
    if(motionVector.y >= max_speed)
    motionVector.y -= max_speed;
    if(motionVector.y <= -max_speed)
    motionVector.y += max_speed;
    }//end if
    //Move the sprite on the screen
    position.translate(motionVector.x, motionVector.y);
    //Bounce off the walls
    boolean bounceRequired = false;
    Point tempMotionVector = new Point(
    motionVector.x,
    motionVector.y);
    //Handle walls in x-dimension
    if (position.x < bounds.x)
    bounceRequired = true;
    position.x = bounds.x;
    //reverse direction in x
    tempMotionVector.x = -tempMotionVector.x;
    else if ((position.x + spaceOccupied.width) > (bounds.x + bounds.width))
    bounceRequired = true;
    position.x = bounds.x +
    bounds.width -
    spaceOccupied.width;
    //reverse direction in x
    tempMotionVector.x =
    -tempMotionVector.x;
    }//end else if
    //Handle walls in y-dimension
    if (position.y < bounds.y)
    bounceRequired = true;
    position.y = bounds.y;
    tempMotionVector.y = -tempMotionVector.y;
    else if ((position.y + spaceOccupied.height)
    > (bounds.y + bounds.height))
    bounceRequired = true;
    position.y = bounds.y +
    bounds.height -
    spaceOccupied.height;
    tempMotionVector.y =
    -tempMotionVector.y;
    }//end else if
    if(bounceRequired)
    //save new motionVector
    setMotionVector(
    tempMotionVector);
    //update spaceOccupied
    setSpaceOccupied(position);
    }//end updatePosition()
    public void drawSpriteImage(Graphics g)
    if (!eaten)
    g.drawImage(image,
    spaceOccupied.x,
    spaceOccupied.y,
    component);
    }//end drawSpriteImage()
    public boolean testCollision(Sprite testSprite)
    //Check for collision with
    // another sprite
    if (testSprite != this)
    return spaceOccupied.intersects(
    testSprite.getSpaceOccupied());
    }//end if
    return false;
    }//end testCollision
    }//end Sprite class
    //===================================//
    Thanks for your help...

    Sorry,
    Can you tell me how do you solve it because I have got the same problem.
    Can you indicate me the topic where did you find solution.
    Thank in advance.

  • Internet connection dropping out throughout day; problem NOT with provider

    My computer's connection to the Airport Express base station has no problems at all. But the internet connection goes out literally dozens of times a day (at no predictable schedule); this has been happening for almost a month. I originally thought the problem was with the internet provider, but I'm now beginning to think that either my settings are wrong, or that I have a corrupt file somewhere. Here are the details:
    I connect via a cable modem (Time Warner - Road Runner). I know people have had problems with Time Warner, so I assumed that was the issue; however I've had 3 service calls and they've checked signal strength inside and out, and swapped out the modem and the cables. I don't think it is simply problems in our geographic area (i.e. greater Los Angeles) due to the fact that the Internet fails sometimes 40-50 times daily, and the problem began when I upgraded from an old Airport base station to a brand new Airport Express about a month ago.
    The airport/internet connection is shared 3 ways: two MacBook Pro computers and one iPhone. My Airport's internet settings are as follows:
    Configure IPv4 using DHCP.
    DNS Servers: 66.75.160.63 and 66.75.160.64 (note I have already tried swapping these for OpenDNS -- this did NOT solve the problem)
    Domain name: socal.rr.com
    DHCP Client ID: [blank]
    Ethernet WAN port: Default-Automatic
    Connection Sharing: Share a Public IP address
    DHCP Beginning Address: 10.0.1.2
    Ending Address: 10.0.1.200
    DHCP Lease: 4 hours
    NAT settings are all unchecked
    One of the main reasons I believe that the problem is with my computer's settings or a corrupt file is that I can fix the problem whenever the Internet "goes down" almost 100% of the time by doing the following: after loading Airport Utility, I make ANY trivial change (i.e. changing the DHCP lease from 4 hours to 5 hours) and then click UPDATE to refresh the Airport base station. This fixes the problem almost 100% of the time. But then, anywhere from 10 minutes to 3 hours later, the Internet connection goes down again. [Unplugging the power from the modem, waiting 30 seconds, and plugging it back in ALSO fixes the problem almost 100% of the time, until it goes out again a little while later.]
    Also, I have tried disconnecting Airport and connecting directly to the cable modem via Ethernet. The problem remains exactly the same -- I can connect, but then the connection fails soon after. Unplugging then replugging the modem fixes the problem temporarily. So I do not think the problem is a defective Airport base station, nor do I think it is the modem (which has been replaced), nor Time Warner.
    I can't think of what else to try -- but any advice would be greatly appreciated -- it's impossible for us to work with the Internet constantly going out throughout the day, every day.
    Thank you!

    Just in case I'm missing something obvious, I am here pasting all CONSOLE messages that appear when I do a standard RESTART:
    8/22/08 7:15:12 AM loginwindow[24] DEAD_PROCESS: 0 console
    8/22/08 7:15:12 AM shutdown[128] reboot by mark:
    8/22/08 7:15:12 AM shutdown[128] SHUTDOWN_TIME: 1219414512 407699
    8/22/08 7:15:12 AM com.apple.loginwindow[24] Shutdown NOW!
    8/22/08 7:15:12 AM com.apple.loginwindow[24] System shutdown time has arrived
    8/22/08 7:15:12 AM mDNSResponder mDNSResponder-171.4 (Apr 20 2008 11:59:52)[23] stopping
    8/22/08 7:15:12 AM com.apple.SystemStarter[17] Stopping Adobe Version Cue CS2
    8/22/08 7:15:31 AM kernel npvhash=4095
    8/22/08 7:15:31 AM com.apple.launchctl.System[2] launchctl: Please convert the following to launchd: /etc/mach_init.d/chum.plist
    8/22/08 7:15:31 AM com.apple.launchctl.System[2] launchctl: Please convert the following to launchd: /etc/mach_init.d/dashboardadvisoryd.plist
    8/22/08 7:15:31 AM com.apple.launchctl.System[2] launchctl: Please convert the following to launchd: /etc/mach_init.d/pilotfish.plist
    8/22/08 7:15:31 AM com.apple.launchd[1] (com.adobe.versioncueCS3) Unknown key: ServiceDescription
    8/22/08 7:15:31 AM com.apple.launchd[1] (com.apple.distccdConfigd) Unknown key: SHAuthorizationRight
    8/22/08 7:15:31 AM com.apple.launchd[1] (org.cups.cupsd) Unknown key: SHAuthorizationRight
    8/22/08 7:15:31 AM com.apple.launchd[1] (org.ntp.ntpd) Unknown key: SHAuthorizationRight
    8/22/08 7:15:31 AM kextd[10] 413 cached, 0 uncached personalities to catalog
    8/22/08 7:15:31 AM kernel hi mem tramps at 0xffe00000
    8/22/08 7:15:31 AM kernel PAE enabled
    8/22/08 7:15:31 AM kernel 64 bit mode enabled
    8/22/08 7:15:31 AM kernel Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386
    8/22/08 7:15:31 AM kernel standard timeslicing quantum is 10000 us
    8/22/08 7:15:31 AM kernel vmpagebootstrap: 972190 free pages and 76386 wired pages
    8/22/08 7:15:31 AM kernel migtable_maxdispl = 79
    8/22/08 7:15:31 AM kernel 98 prelinked modules
    8/22/08 7:15:31 AM kernel AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
    8/22/08 7:15:31 AM kernel AppleACPICPU: ProcessorApicId=1 LocalApicId=1 Enabled
    8/22/08 7:15:31 AM kernel Loading security extension com.apple.security.TMSafetyNet
    8/22/08 7:15:31 AM kernel calling mpopolicyinit for TMSafetyNet
    8/22/08 7:15:31 AM kernel Security policy loaded: Safety net for Time Machine (TMSafetyNet)
    8/22/08 7:15:31 AM kernel Loading security extension com.apple.nke.applicationfirewall
    8/22/08 7:15:31 AM kernel Loading security extension com.apple.security.seatbelt
    8/22/08 7:15:31 AM kernel calling mpopolicyinit for mb
    8/22/08 7:15:31 AM kernel Seatbelt MACF policy initialized
    8/22/08 7:15:31 AM kernel Security policy loaded: Seatbelt Policy (mb)
    8/22/08 7:15:31 AM kernel Copyright (c) 1982, 1986, 1989, 1991, 1993
    8/22/08 7:15:31 AM kernel The Regents of the University of California. All rights reserved.
    8/22/08 7:15:31 AM kernel MAC Framework successfully initialized
    8/22/08 7:15:31 AM kernel using 16384 buffer headers and 4096 cluster IO buffer headers
    8/22/08 7:15:31 AM kernel devfsmakenode: not ready for devices!
    8/22/08 7:15:31 AM kernel IOAPIC: Version 0x20 Vectors 64:87
    8/22/08 7:15:31 AM kernel ACPI: System State [S0 S3 S4 S5] (S3)
    8/22/08 7:15:31 AM kernel mbinit: done
    8/22/08 7:15:31 AM kernel Security auditing service present
    8/22/08 7:15:31 AM kernel BSM auditing present
    8/22/08 7:15:31 AM kernel rooting via boot-uuid from /chosen: 419B2954-20DC-3880-AFEB-448924F9BE09
    8/22/08 7:15:31 AM kernel Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
    8/22/08 7:15:31 AM kernel FireWire (OHCI) TI ID 8025 built-in now active, GUID 001d4ffffe5f8d30; max speed s800.
    8/22/08 7:15:31 AM kernel Got boot device = IOService:/AppleACPIPlatformExpert/PCI0/AppleACPIPCI/SATA@1F,2/AppleICH8AHCI/PR T0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageD river/ST9160823AS Media/IOGUIDPartitionScheme/Customer@2
    8/22/08 7:15:31 AM kernel BSD root: disk0s2, major 14, minor 2
    8/22/08 7:15:31 AM kernel Jettisoning kernel linker.
    8/22/08 7:15:31 AM kernel Resetting IOCatalogue.
    8/22/08 7:15:31 AM kernel GFX0: family specific matching fails
    8/22/08 7:15:31 AM kernel Matching service count = 1
    8/22/08 7:15:31 AM kernel Matching service count = 2
    8/22/08 7:15:31 AM kernel Matching service count = 2
    8/22/08 7:15:31 AM kernel Matching service count = 2
    8/22/08 7:15:31 AM kernel Matching service count = 2
    8/22/08 7:15:31 AM kernel Matching service count = 2
    8/22/08 7:15:31 AM kernel Previous Shutdown Cause: 5
    8/22/08 7:15:31 AM kernel NVDANV50HAL loaded and registered.
    8/22/08 7:15:31 AM kernel ath_attach: devid 0x24
    8/22/08 7:15:31 AM kernel GFX0: family specific matching fails
    8/22/08 7:15:32 AM kernel Override HT40 CTL Powers. EEPROM Version is 14.4, Device Type 5
    8/22/08 7:15:33 AM kernel mac 12.10 phy 8.1 radio 12.0
    8/22/08 7:15:33 AM kernel CSRHIDTransitionDriver::start []
    8/22/08 7:15:34 AM kernel CSRHIDTransitionDriver::switchToHCIMode legacy
    8/22/08 7:15:36 AM bootlog[38] BOOT_TIME: 1219414527 0
    8/22/08 7:15:36 AM rpc.statd[19] statd.notify - no notifications needed
    8/22/08 7:15:37 AM com.apple.launchd[1] (com.apple.distccdConfigd[32]) Exited with exit code: 255
    8/22/08 7:15:37 AM DirectoryService[34] Launched version 5.4 (v514.21)
    8/22/08 7:15:37 AM fseventsd[28] bumping event counter to: 0x2e4ba71 (current 0x0) from log file '0000000002e4b394'
    8/22/08 7:15:37 AM mDNSResponder mDNSResponder-171.4 (Apr 20 2008 11:59:52)[23] starting
    8/22/08 7:15:38 AM kernel yukon: Ethernet address 00:1b:63:a2:29:d1
    8/22/08 7:15:38 AM kernel AirPort_Athr5424ab: Ethernet address 00:1c:b3:c0:f5:49
    8/22/08 7:15:38 AM /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow[24] Login Window Application Started
    8/22/08 7:15:38 AM com.apple.SecurityServer[20] Entering service
    8/22/08 7:15:38 AM /usr/sbin/ocspd[62] starting
    8/22/08 7:15:39 AM kernel 11D beacon causing regdomain change to CC 840
    8/22/08 7:15:39 AM kernel en1: 802.11d country code set to 'US'.
    8/22/08 7:15:40 AM kernel en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 149 153 157 161 165
    8/22/08 7:15:39 AM configd[36] setting hostname to "Macintosh-3.local"
    8/22/08 7:15:44 AM kernel USBF: 16.757 AppleUSBHubPort: Port 1 of Hub at 0x1a000000 about to terminate a busy device (IOUSBCompositeDevice) after waiting 10 seconds
    8/22/08 7:15:44 AM kernel USBF: 17. 59 CSRHIDTransitionDriver[0x723ca80](IOUSBCompositeDevice) GetFullConfigDescriptor(0) returned NULL
    8/22/08 7:15:44 AM kernel CSRHIDTransitionDriver... done
    8/22/08 7:15:46 AM kernel AppleYukon2: 00000000,00000000 sk98osx_dnet - recovering from missed interrupt
    8/22/08 7:15:46 AM org.ntp.ntpd[14] Error : nodename nor servname provided, or not known
    8/22/08 7:15:46 AM ntpdate[70] can't find host time.apple.com
    8/22/08 7:15:46 AM ntpdate[70] no servers can be used, exiting
    8/22/08 7:15:53 AM kernel AppleYukon2: 00000000,00000000 sk98osx_dnet - recovering from missed interrupt
    8/22/08 7:15:53 AM kernel AirPort: Link Up on en1
    8/22/08 7:15:54 AM kextd[10] writing kernel link data to /var/run/mach.sym
    8/22/08 7:16:02 AM loginwindow[24] Login Window Started Security Agent
    8/22/08 7:16:02 AM SecurityAgent[88] User info context values set
    8/22/08 7:16:02 AM SecurityAgent[88] Login Window done
    8/22/08 7:16:02 AM loginwindow[24] Login Window - Returned from Security Agent
    8/22/08 7:16:02 AM loginwindow[24] USER_PROCESS: 24 console
    8/22/08 7:16:02 AM com.apple.launchd[1] (com.apple.UserEventAgent-LoginWindow[81]) Exited: Terminated
    8/22/08 7:16:02 AM com.apple.launchctl.Aqua[91] launchctl: Please convert the following to launchd: /etc/machinit_peruser.d/com.adobe.versioncueCS3.monitor.plist
    8/22/08 7:16:02 AM com.apple.launchctl.Aqua[91] launchctl: Please convert the following to launchd: /etc/machinit_peruser.d/RemoteUI.plist
    8/22/08 7:16:03 AM com.apple.launchd[66] (0x101260.VersionCueCS3monitor) Failed to check-in!
    8/22/08 7:16:03 AM /System/Library/CoreServices/coreservicesd[44] SFLSharePointsEntry::CreateDSRecord: dsCreateRecordAndOpen(Mark's Public Folder) returned -14135

  • Problems converting a pdf file to a word document using ExportPDF

    I am having problems converting a pdf file to a word document (.docx) using ExportPDF. It is spends ages trying to upload the PDF file, but fails to do so. Should I just cancel my subscription?

    I suspect that you are asking for help with CreatePDF. If so, you should post in
    http://forums.adobe.com/community/createpdf
    This is the Reader forum...

  • Real simple xslt problem/question

    Hi, i have a real simple xslt problem but i just cant figure out how to do it by looking at various examples on the net. i have a xml document and in it are some elements with a "result" tag name. i want to use xslt to reproduce exactly the same xml document except with an attribute called "id" added to those elements with a "result" tag name. i'm sure that theres a simple solution to it but i just cant figure it out. any helps greatly appreciated, thanks

    Start with the XSLT identity transform (I don't have it handy and it's fairly long, but you should be able to google it up). Add this:<xsl:template match="result">
      <result id="">
        <xsl:apply-templates>
      </result>
    </xsl:template>

Maybe you are looking for