Safari won't display XML content with an embedded stylesheet

I'm using Safari 5.0.2 on Windows XP. I cannot get it to display an XML document with an embedded CSS stylesheet. The file in question appears in this ZIP file: http://www.hl7.org/documentcenter/ballots/2011JAN/downloads/CDAR2IG_SDISP_R1_D12011JAN.zip
That document demonstrates is an attempt to enable display of standardized healthcare content in common web browsers. Can anyone here help?

I have a separate bug report to Chrome on this one, same general result in display. The file is an XML document, not a CSS style-sheet. It contains an xml-stylesheet processing instruction that has a local URI #hl7-css-for-cda pointing to an element in the XML that contains the CSS stylesheet. That element uses xml:id to identify itself, so it is (according to the W3C) possible for the browser to determine that element as being the target of the URI.
The problem appears to be that the Display Engine in Safari won't load the content of that URI as a CSS stylesheet.
When I validate the CSS content in that XML element it returns as being valid CSS, and when I validate the XML using my XML editor, it is both well formed, and valid against the XML Schema appropriate to that file.

Similar Messages

  • Problem with displaying XML Content well formatted.

    Hi all,
    I am developing a website which have one functionality to display XML content which is received from some other party.
    I am using TextArea for displaying this XML content on my webpage. As this XML content is not at all formatted it looks very ugly for a human to read.
    I want this XML content to be displayed well formatted, As Mozilla Firefox display it hierarchically and well formatted.
    Kindly give some suggestion for displaying XML well formatted on a webpage.
    Any comments from you people will help me.
    Thanks
    typurohit.

    The following link is a XML-based document. An XSL stylesheet transforms the XML document to HTML in the web browser. Feel free to grab a copy of the stylesheet to use as a guide.
    http://www.masonicartbook.com/production.htm
    Good luck!

  • Safari won't display pdf in browser

    Posted before in wrong forum.
    I am really sorry if this has been posted before, but I have been searching the forums and can't find an answer to it. I was also looking for the FAQ article about this that Apple says is an answer, but can't find that either.
    Anyway, using 10.4.11 and Safari 3.0.4. Safari won't display pdfs in the browser. It is gray with the Acrobat logo.
    I remember reading that the solution is to uninstall (delete) Safari and reinstall 3.0.4. However, I cannot find an install for 3.0.4 for Mac, and then do something with Acrobat. I am using 3.0.4 because it was part of a bundled OS update. I can't go back and downgrade my OS...
    What do I do?

    Hi,
    You probably won't have to reinstall Safari. Two things you can try. If you open Adobe Reader and go into the 'Internet' section of its preferences, you should be able to disable the browser plug-in. Some times that alone isn't enough, in which case, browse to HD/Library/Internet Plug-ins/ and move the Adobe plugin out of the folder. Restart Safari for the changes to take effect.
    Yang

  • Since I got OS10.8.2 Safari won't display online PDF files?

    Since I got OS10.8.2 Safari won't display online PDF files?
    Can anyone tell me what the problem is?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Safari won't display graphics for some web sites

    There are some sites that Safari won't display all of the graphics. For instance, nissanusa.com opens to a blank page with a little "feedback" symbol in the lower right corner. Similarly, the infiniti.com page has some text but no graphics. Both pages open fine on Firefox. There are other pages, but I prefer not to have to switch back and forth between browsers. Am I missing a plug-in that I don't know about?
    Phil

    Sorry, Guys. Somehow I screwed up when I installed the new Safari with Leopard. I don't remember accessing the preferences for Safari and thought they remained the same as for Safari 2. However, upon checking, I discovered the "enable plug-ins" box unchecked. Checking it solved all of the web site problems.
    Peter, Thanks for your response. For informational purposes, on Safari 3, the "enable Flash" button is no longer hidden in the Mime settings tab. Now it's on right on the advanced page of the Quicktime preferences.
    Again, sorry for my screw up and thanks for your help!
    Phil

  • Catch all error information while validating xml content with xsd schema

    Hi experts,
    I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below is a part of my java mapping.
    XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
    parser.setFeature( "http://xml.org/sax/features/validation" ,  true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
    parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");          parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); // schema is my schema name
    parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends DefaultHandler
    parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
    // In error handler, I comment all code so as not to throw any exception
    public class ParseErrorHandler extends DefaultHandler
         public void error(SAXParseException e) throws SAXException
              // sSystem.out.println("Error" + e.getMessage());
              // throw e;
         public void fatalError(SAXParseException e)
              // throw e;
              // System.out.println("SAP Fatal Error" + e.getMessage());
    Unfortunately the program always stopped while catching the first error. Check the below log.
    com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
    ERRORS :
    cvc-simple-type : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
    cvc-data : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is is not valid with respoct to the corresponding simple type definition.
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is associated with invalid data.
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]/:Header[1]' is not valid with respect to it's complex type definition..
    cvc-element : element information item '/:ShipNotice[1]' is not valid with respect to it's complex type definition..
    -> com.sap.engine.lib.xml.parser.ParserException:
    I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error handler logic? Is there any body can make me get out of this?
    Thanks.

    <h6>Hi experts,
    <h6>
    <h6>I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all <h6>error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below <h6>is a part of my java mapping.
    <h6>XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
    <h6>parser.setFeature( "http://xml.org/sax/features/validation" ,  true);
    <h6>parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
    <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");          <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); <h6>// schema is my schema name
    <h6>parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends Default Handler
    <h6>parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
    <h6>
    <h6>// In error handler, I comment all code so as not to throw any exception
    <h6>public class ParseErrorHandler extends DefaultHandler
    <h6>{
    <h6>     public void error(SAXParseException e) throws SAXException
    <h6>     {
    <h6>          // sSystem.out.println("Error" + e.getMessage());
    <h6>          // throw e;
    <h6>     }
    <h6>
    <h6>     public void fatalError(SAXParseException e)
    <h6>     {
    <h6>          // throw e;
    <h6>          // System.out.println("SAP Fatal Error" + e.getMessage());
    <h6>
    <h6>     }
    <h6>
    <h6>}
    <h6>
    <h6>Unfortunately the program always stopped while catching the first error. Check the below log.
    <h6>
    <h6>com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
    <h6>ERRORS :
    <h6>cvc-simple-type : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
    <h6>cvc-data : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is is not valid with respoct to the corresponding simple type definition.
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is associated with invalid data.
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]' <h6>is not valid with respect to it's complex type definition..
    <h6>cvc-element : element information item '/:ShipNotice[1]' is not valid with <h6>respect to it's complex type definition..
    <h6> -> com.sap.engine.lib.xml.parser.ParserException:
    <h6>
    <h6>
    <h6>I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error <h6>handler logic? Is there any body can make me get out of this?
    <h6>Thanks.

  • My safari won't display home page

    My safari won't display my webpage.Just blank.But firefox is fine.Wonder why? I tried the reset on safari but it does nothing at all..Once my safari icon moved to the right all by itself to the right side of the dock.Why? Anyone.

    Safari: Mac OS & System Software: Apple Support Communities

  • How to display XML content in a JSP

    Hi,
    can anyone help me in displaying xml content in a JSP?

    I think you want to display value from XML page to the
    JSP.If thats the case you can try out this
    xml...
    <component-profile>
            <property name="parm" value="Hi"/>
    </component-profile>
    jsp...
    <% var=profile.getProperty("parm");%>
    Hope this helps
    gEorgE

  • Safari doesn't display an object with MIME type video/mp4

    So, I've got a little hiccup here. I put together a CV in html with samples you can click to bring up. Now, I don't make any claims to professional geekdom, but I try to be fairly html savvy, and since I'm sending this to the college IT guys, I want to do it right. So I'd like this thing to use valid w3c compliant html. Not too tough, fix some missing quotes and learn how to use the object tag instead of embed. Done.
    Well, here's the problem. I loaded it into Safari for testing, and a Quicktime file won't play. Now, it runs fine on Firefox. The obtuse and awkwardly lumped in IE version of the object works fine (tested in IE6, Win2K virtual machine). And the same file ran fine when I had it using an embed tag. Now it just brings up the Quicktime emblem, takes up the specified amount of space, and doesn't do anything.
    What did I do wrong? I've got the latest Quicktime and Safari, and I know it's standards compliant. Do I have to feed it some more specific type for an h.264 encoded mp4?
    Here's the code I used. The embed tag is the one that works, the object tag is the compliant one that doesn't. I'm guessing I'm missing a parameter or something. Any advice?
    <embed scale="1" src="files/Sabres.mp4" pluginspage="http://www.apple.com/quicktime/download/" autoplay="FALSE" volume="100" cache="TRUE" height="496" width="640">
    <object type="video/mp4" data="files/Sabres.mp4" height="496" width="640">
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    Your browser cannot display this content. Click here to download it.
    </object>

    Tom and Kirk, thanks for your time. That would work, but since <embed> is a non-standard tag, I want to avoid it.
    Andy, I actually stopped by that site last night, and I did use it for the object code.
    My problem is that for some reason, what looks like a legitimate implementation of <object> isn't displaying in Safari. I know Firefox is a bit more forgiving of sloppy code, so I don't blame Safari for that one. I know Safari can display the file because it displayed it properly when I called it with embed. I'm just not sure what's wrong with the code that's making Safari not bring up the video. It knows it's Quicktime and loads the file, I know that, because it brings up the emblem and starts hoarding RAM when I bring it up in Safari, but it just holds there. I've tried a couple MIME types, including video/quicktime and video/mp4, both worked in Firefox, and video/h264 just as a shot in the dark, and both Safari and Firefox showed the alternate content.
    By the way, here's the full code I used to display the object, using Castro's cloaking technique for IE compatibility. I omitted it earlier because when I isolated the non-IE section alone in the body of the document it behaved the same as it did with the cloaking (working in FF, broken in Safari).
    <!--[if IE]>
    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="496" width="640">
    <param name="src" value="files/Sabres.mp4" >
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    </object>
    <![endif]-->
    <!--[if !IE]> <!-->
    <object type="video/mp4" data="files/Sabres.mp4" height="496" width="640">
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    Your browser cannot display this content. Click here to download it.
    </object>
    <!--<![endif]-->
    Message was edited by: The Spine

  • Safari will not display video content/flash etc on websites ie youtube etc

    I am running Panther 10.3.9 and Safari 1.3.2 (v312.6). When trying to access Youtube, Facebook etc Safari does not display video/animation etc and so Safari closes with an error. It will also not play video content on the Apple website. I would also like to know the following if someone could please help; What is the best software to upgrade to ie Tiger? etc ; What is the maximum memory upgrade for my machine and what would I ask for and best place to buy? Any assistance is much appreciated. Kind regards VJR1OK!!

    You may find some improved online performance with Panther 10.3.9 with
    the last supported Flash and Shockwave players installed (older ones have
    to be uninstalled) and though the use of Camino browser since it is up-to-date.
    There still will be some limitations; but if you have the correct Flash/Shockwave
    players for Panther installed and get Camino, and use it as a default replacement
    for that ancient Safari, that would make a difference. Also, it always makes sense
    to get more RAM in an older computer since they usually shipped with very little.
    In the case of older computers, often the capacity of the hard disk drive was also
    a matter of marginalization. A large enough drive to have plenty of free space in
    it, after applications and the OS X is installed, so the system can have room for
    temporary files and Virtual Memory, then it can run the last supported OS X ok.
    An externally enclosed bootable hard drive (FireWire enclosed unit) could be
    used to add space or a second system for use when at a desktop, so for the
    sake of discussion, the internal drive would not necessarily need replaced to
    check out a different operating system that may need more room in a drive.
    RAM is an easy fix; and a new browser from Camino.org - plus those players.
    Good luck & happy computing!

  • Displaying xml content in the browser

    Hi,
    In my application i am generating an XML content which i was storing into a file. Now as per the new requirement, this xml content needs to be displayed in the browser. (The way it gets displayed when we double click on an xml file).
    Can some one plz tel me how to do this? I am using the jsp/servlet architechture..? plz help
    Thanx

    Program 1
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SendXml extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        //get the 'file' parameter
        String fileName = (String) request.getParameter("file");
        if (fileName == null || fileName.equals(""))
          throw new ServletException(
              "Invalid or non-existent file parameter in SendXml servlet.");
        // add the .doc suffix if it doesn't already exist
        if (fileName.indexOf(".xml") == -1)
          fileName = fileName + ".xml";
        String xmlDir = getServletContext().getInitParameter("xml-dir");
        if (xmlDir == null || xmlDir.equals(""))
          throw new ServletException(
              "Invalid or non-existent xmlDir context-param.");
        ServletOutputStream stream = null;
        BufferedInputStream buf = null;
        try {
          stream = response.getOutputStream();
          File xml = new File(xmlDir + "/" + fileName);
          response.setContentType("text/xml");
          response.addHeader("Content-Disposition", "attachment; filename="
              + fileName);
          response.setContentLength((int) xml.length());
          FileInputStream input = new FileInputStream(xml);
          buf = new BufferedInputStream(input);
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            stream.write(readBytes);
        } catch (IOException ioe) {
          throw new ServletException(ioe.getMessage());
        } finally {
          if (stream != null)
            stream.close();
          if (buf != null)
            buf.close();
      public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
    Program 2
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLConnection;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class ResourceServlet extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        //get web.xml for display by a servlet
        String file = "/WEB-INF/web.xml";
        URL url = null;
        URLConnection urlConn = null;
        PrintWriter out = null;
        BufferedInputStream buf = null;
        try {
          out = response.getWriter();
          url = getServletContext().getResource(file);
          //set response header
          response.setContentType("text/xml");
          urlConn = url.openConnection();
          //establish connection with URL presenting web.xml
          urlConn.connect();
          buf = new BufferedInputStream(urlConn.getInputStream());
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            out.write(readBytes);
        } catch (MalformedURLException mue) {
          throw new ServletException(mue.getMessage());
        } catch (IOException ioe) {
          throw new ServletException(ioe.getMessage());
        } finally {
          if (out != null)
            out.close();
          if (buf != null)
            buf.close();
      public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
    }Have fun

  • Safari won't display maps

    My Safari won't diplay maps from either Google Maps or MapQuest. I'm running OS10.3.9 and Safari 1.3.2 (V312.6). I have the cookies on for sites I go to.
    Maps display when using Firefox.

    I am having this kind of problem with maps and some websites with AJAX codes.
    For example: this website is from my university, about a Computer Science Competition called "VII Olimpíada da Computação" - at PUC campus Poços de Caldas [ inf.pucpcaldas .br/olimpiada2009/ ], and when I'll register my group (called VaiNaSort), it happens a AJAX error (the registration page was made using AJAX). It don't crash Safari, but after many tries, unfortunally I was forced to use another browser...
    Message was edited by myself.

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How do you display xml file with xlst sheet in jsp

    I have an xml file with accompanying xslt file (and several images that are used in a single directory. If I doubleclick on the xml file, it displays perfectly in my browser - Formatting, images and all!
              The 100 dollar question - How do I duplicate this behavior in a JSP page in WebLogic 8.1 using the code in the xml and the accompanying xslt (formatting) file? I tried simple embedding the xml code in the jsp, but that didn't seem to work. What is the secret?
              Okay, I need to add a bit more information here. I understand that it is really easy to just redirect to the XML file. The issue is really security. I want the XML to be inside a jsp that will only allow validated users to view it.
              Another way to look at the problem would be, can I add a jsp security tag to the xml file? Or how to I add the xml code inside a jsp and keep the path references to the xslt and graphics.
              Hope the added information helps
              Thanks,
              Ken
              Message was edited by: KLee - 20050609 10:25 MST
              [email protected]

    This proved out to be the answer. Thanks for the direction!
              import java.io.File;
              import java.io.IOException;
              import java.io.InputStream;
              import java.io.OutputStream;
              import java.io.FileNotFoundException;
              import java.io.FileOutputStream;
              import javax.servlet.ServletException;
              import javax.servlet.http.HttpServlet;
              import javax.servlet.http.HttpServletRequest;
              import javax.servlet.http.HttpServletResponse;
              import javax.xml.transform.Transformer;
              import javax.xml.transform.TransformerConfigurationException;
              import javax.xml.transform.TransformerException;
              import javax.xml.transform.TransformerFactory;
              import javax.xml.transform.stream.StreamResult;
              import javax.xml.transform.stream.StreamSource;
              public class XML_XSLT_Servlet extends HttpServlet {
              protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
                        String xmlfile = req.getParameter("xmlfile"); if (xmlfile==null) xmlfile = "test.xml";
                        String xsltfile = req.getParameter("xsltfile"); if (xsltfile==null) xsltfile = "test.xslt";
                        /* Test if file exists!, or use default file */
                        File f1 = new File(getServletContext().getRealPath("WEB-INF/displayfiles/"), xmlfile);
                        File f2 = new File(getServletContext().getRealPath("WEB-INF/displayfiles/"), xsltfile);
                   if (f1.exists() && f2.exists()) {
                             // System.out.println("Files Found");
                        } else {
                             System.out.println("XML and XSLT Files NOT Found");
                             System.out.println(f1.getPath());
                             System.out.println(f1.getName());
                             xmlfile = "test.xml";
                             xsltfile = "test.xslt";
              InputStream fileXML = getServletContext().getResourceAsStream("WEB-INF/displayfiles/" + xmlfile);
              InputStream fileXSLT = getServletContext().getResourceAsStream("WEB-INF/displayfiles/" + xsltfile);
              OutputStream os = res.getOutputStream();
              TransformerFactory xFactory = TransformerFactory.newInstance();
              StreamSource stylesheet = new StreamSource(fileXSLT);
              Transformer xformer = null;
              try {
              xformer = xFactory.newTransformer(stylesheet);
              } catch (TransformerConfigurationException tfce) {
              tfce.printStackTrace();
              StreamSource input = new StreamSource(fileXML);
              StreamResult output = null;
              try {
              output = new StreamResult(os);
              } catch (Exception e) {
              e.printStackTrace();
              try {
              xformer.transform(input, output);
              } catch (TransformerException xfe) {
              xfe.printStackTrace();
              <pre></pre><pre></pre>

  • Displaying XML content in one line in pdf

    Hi,
    I am using OBIP for report generation, i am facing a problem regarding to xml content
    In XML the content is displaying like
    <OmbudsmanAdrress>Shri V. Ramasaamy,
    Insurance Ombudsman,
    Office of the Insurance Ombudsman,
    Fathima Akhtar Court,
    4th Floor, 453 (old 312),
    Anna Salai, Teynampet,
    CHENNAI-600 018,
    Fax : 044-24333664,
    Email [email protected]</OmbudsmanAdrress>
    but i need to show only in one line in pdf.
    how can i will get in one line
    please suggest me....
    Thanks in advance,
    Vijay Chunduri.

    Finally after a long struggle i got the answer...
    Here it is buddies...
    <?xdofx:replace(OmbudsmanAdrress,’,\n’ ,',')?>

Maybe you are looking for

  • Self-contained movie asking for source files

    I have exported a final cut pro movie as a self-contained file, and after I deleted the source files, as my harddrive was jammed full, I am unable to burn the project onto a dvd. The file won't open in quicktime or final cut pro. It keeps asking for

  • What do I do if I forget the answers to my security questions

    I recently purchased an iTunes card for 15$ & once I entered the code number on the back and I attempted to purchase and app, I realized that I had totally forgotten the answers to my security questions. I went to my app ID and when I sent the answer

  • Dns for web service

    Hi there. I have set up web services on my server, and it is working fine. I have also setup the DNS on the server and that is working fine as well. Problem I have is I have Kerio Mailserver running on my server which uses port 80 for the webmail so

  • Delay in user creation on target resources

    I have user records coming from CSV file | username,id,createdate(mm/dd/yyyy) | jsmith,96732,09/23/2006 |______________________________________________ depending on createdate the user should be created in LDAP on that date at (00:00 hrs) but on AD t

  • Hard disk- NTFS to FAT

    Hello , I want to convert my 320 GB Hard Disk to a mode where I have read/write permission on Mac. Currently I have read only permission. Could you please tell which would be the best mode to convtr to so that it can be used on both Mac & Windows wit