XML data not displayed with XSL

I have just started learning XML so bear with me. I have a xml document that I created and want to use a stylesheet to display it in html but it doesn't seem to be working. Here is the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="XSL\myXSL.xsl" type="text/xsl"?>
<GstBk:Book xmlns:GstBk="http://www.testurl.com">
<GstBk:Guest>
<GstBk:Address>
<GstBk:Name>John Doe</GstBk:Name><GstBk:From>Anywhere USA</GstBk:From>
</GstBk:Address>
</GstBk:Guest>
</GstBk:Book>
And here is the xsl document:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:GstBk="http://www.testurl.com"
version="1.0"
>
<xsl:template match="GstBk:Book">
<html>
<head>
<title>Guest Book</title>
</head>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<xsl:template match="GstBk:Guest">
Name = <xsl:value-of select="GstBk:Name" />
</xsl:template>
</xsl:stylesheet>
But the only data I get on the browser is:
Name =
Can anyone see something wrong with my files? I have downloaded examples from the net and they seem to work. I even compared them to my files and can't see anything obviously different. Any ideas?
Thanks

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:GstBk="http://www.testurl.com">
   <xsl:template match="GstBk:Book">
      <html>
         <head>
            <title>Guest Book</title>
         </head>
         <body>
            <xsl:apply-templates />
         </body>
      </html>
   </xsl:template>
   <xsl:template match="GstBk:Guest">
      Name = <xsl:value-of select="GstBk:Address/GstBk:Name" />
   </xsl:template>
</xsl:stylesheet>This style sheet with the xml you provided works for me. I use Xalan 2.1.0 for the transformation with the command line: java org.apache.xalan.xslt.Process -in your.xml -xsl your.xsl
and I get this for the output:
<html xmlns:GstBk="http://www.testurl.com">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Guest Book</title>
</head>
<body>
      Name = John Doe
</body>
</html>If you still see a different result, let me know what your environment is.

Similar Messages

  • XML data not displayed on external applications (Adobe, PowerPoint, Word)

    Hi,
    I have imported an XML file into Xcelsius using the XML data connection button in Xcelsius 2008 SP1.
    I would like to test whether the model is correctly picking up the data when XML file is updated.
    The XML file is stored locally on my PC.
    I'm able to view and refresh the data in Preview mode and in the .SWF file but when exporting to Adobe, PowerPoint or Word, I get #2148 error on opening.
    I did add the path to the swf file and xml file in the Flash Player security settings with no success.
    Any suggestions welcome
    Best regards,
    Jenni Jacob

    Hi Jenni,
    Adobe PDF usually works because like Xcelsius it allows the SWF to load data from anywhere so I am not sure why that one would not work...
    When you export to PowerPoint or Word that probably counts as a different SWF so try adding the folder where the PPT/DOC lives as trusted instead.
    When I am in a VM I tend to add C:\ folder as trusted (meaning I can run a SWF anywhere on my C drive in the VM with trusted permissions).
    Regards,
    Matt

  • Iphone 4 contact pictures do not display with incoming calls

    iphone 4 contact pictures do not display with incoming calls. they did before the ios 6 upgrade

    I am assuming that you have associated a picture with the contact in the information for the contact

  • Ibooks author, how do I get the standard book pages background into my document. I have published one book so far which does not display with a book pages background or options for font size.

    ibooks author, how do I get the standard book pages background into my document. I have published one book so far which does not display with a book pages background or options for font size.

    No on the book title, no problem there.
    The issue is: my book pages appear as on white paper, no background that resembles a open book and also no option to change fonts. The book was created in iBooks author, there was a problem going with the "Publish" menu route so I was instructed my Apple to "export" the file and submit that. I think that's the problem after reading that iBooks author is a hybrid epub file.
    Thanks for getting back to me.

  • Itunes store does not display with in the itunes player, why?

    I have latest iTunes download. I have PC with Windows Vista. My system requirements are what they should be for the iTunes player. I have gone through all of the troubleshooting that i am willing to go through to make this work - Can someone !! Tell me why does the iTunes store NOT DISPLAY with in the iTunes Player?
    I click on the iTunes Store from the iTunes player...center screen with in the player shows that its "Accessing iTunes Store" when its finishes - the screen remains blank! and stays like that...
    Again why does the iTunes store not display with in iTunes?
    Also , my Safari acts the same why...i open the browser and the Screen just sits there never finding, opening, or access anything from the web...YES I am connected to the internet? SO why does Safari sit there...

    http://support.microsoft.com/kb/972034
    This worked for me.
    Reset HOSTS File back to defaults

  • Plural eyes 3.0 xml workflow not compatible with Premiere CC multicam

    Anybody using PluralEyes with Premirecc. they are no longer compatible in workflow as explained in Richard Harringtons red giant tutorial on red giant. anyone found work arounds to this. A call to Red Giant says its adobes issue. end of story.
    plural eyes 3.0 xml workflow not compatible with Premiere CC xml multicam.

    It might be worth watching this tutorial from Jason Levine....  this is the third episode of three about working with DSLR. Seems appropriate to what you're trying to do:
    http://tv.adobe.com/watch/creative-cloud-for-video/dslr-editing-workflow-in-adobe-premiere -pro-cc-part-3-multicamera-dslr-workflow-with-automatic-audio-sync/

  • Problem with data not displaying in website

    Hello All,
       I am having a problem with one of our applications. It is written in ColdFusion and uses SQL server. The problem that we are having is when we use the URL Http://bma.com (that is not actually the site name)  we cannot see all the data that it is suppose to pull in. I get an error on page and when I select to view the error this is what I get
    Message: 'WddxRecordset' is undefined Line: 184 Char: 2 Code: 0 URI: http://bma.com/user_maintenance.cfm and Message: 'jsusersTLV' is undefined Line: 3208 Char: 6 Code: 0 URI: http://bma.com/user_maintenance.cfm
    If I put the IP address in the URL for example http://165.83.109.246/bma/login.cfm all of the data is displayed as it should.
    Any thoughts or sugguestios on how to correct this?
    Thanks

    Yes, the user_maintenance.cfm is one of the forms that the data is not displaying on. There are multiple forms in the application and that just happens to be one of them. the login.cfm is just the login screen. Once you select your name and enter your password to the application then you can select the user maintenance form. If you select someones name the application should pull in all of that persons information. That is the problem, it is not pulling in any information on the user. We get a blank screen where data should be. When we use the IP address in the URL and select someones name in the user manintenance form, it pulls in all the data from that user as it should.

  • Issues with Dates not displaying

    Hello! I've built a small form with HTMLDB to handle operational tickets/issues/incidents. I've been able to display the data in one page, graph statistics in another but my page where the incidents can be edited has a small issue.
    When I click on an edit icon (on pg1) to edit the row, it brings me to page 2 and all the data from that row is displayed EXCEPT for the dates. I've chosen a date picker for that item but in the case where that column was already filled with a date beforehand, it now displays null. All the other data (numbers and varchar2s) display without issue. I can edit the fields and submit the changes and all the changes update correctly (even the dates once new ones are picked) but in some cases I do not want to change that date but display it for informational purposes.
    I'm using the TIMESTAMP datatype for those dates by the way.
    Thanks,
    Thom

    Indeed! I used the wizard and had the dates as TIMESTAMP datatypes. I changed the datatypes back to DATE for now and it works perfectly. Another satisfied customer! ;-)
    Thanks!

  • Mod date not displaying in Files panel Dreamweaver CC

    After upgrading to Dreamweaver CC, on OS X Mtn Lion, my Files pane will not display the Modification Date for both local and remote files. The column is there, but it's blank. I have tried hiding and showing that column in the Sites setup, but that did not work. Any ideas?

    I can confirm that the solution posted by crockej does indeed work, I am not by any means saying that it is a perfect solution, and am sure that it is not the actual fix, but it does work, I landed up having to add JPG,GIF,PNG,PDF,SWF,FLA,ICO,SWZ,MPR,PSD,XLSX,INDD,AI all to fy file list and although this was 90% of the missing icons fixed, it still requires more like m4v etc.
    Think of this as more of a temporary solution to the problem, but it does work.
    This is what my /Users/XXXXX/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/Extensions.txt file looks like now.
    HTM,HTML,SHTM,SHTML,HTA,HTC,XHTML,STM,SSI,JS,JSON,AS,ASC,ASR,XML,XSL,XSD,DTD,XSLT,RSS,RDF, LBI,DWT,ASP,ASA,ASPX,ASCX,ASMX,CONFIG,CS,CSS,CFM,CFML,CFC,TLD,TXT,PHP,PHP3,PHP4,PHP5,PHP-D IST,PHTML,JSP,WML,TPL,LASSO,JSF,VB,VBS,VTM,VTML,INC,SQL,JAVA,EDML,MASTER,INFO,INSTALL,THEM E,CONFIG,MODULE,PROFILE,ENGINE,SVG,JPG,GIF,PNG,PDF,SWF,FLA,ICO,SWZ,MPR,PSD,XLSX,INDD,AI:Al l Documents
    HTM,HTML,HTA,HTC,XHTML:HTML Documents
    SHTM,SHTML,STM,SSI,INC:Server-Side Includes
    JS,JSON:JavaScript Documents
    XML,DTD,XSD,XSL,XSLT,RSS,RDF:XML Files
    LBI:Library Files
    DWT:Template Files
    CSS:Style Sheets
    ASP,ASA:Active Server Pages
    ASPX,ASCX,ASMX,CS,VB,CONFIG,MASTER:Active Server Plus Pages
    CFM,CFML,CFC:ColdFusion Templates
    AS:ActionScript Files
    ASC:ActionScript Communication Files
    ASR:ActionScript Remote Files
    TXT:Text Files
    PHP,PHP3,PHP4,PHP5,TPL,PHP-DIST,PHTML:PHP Files
    LASSO:Lasso Files
    JSP,JST:Java Server Pages
    JSF:Fireworks Script
    TLD:Tag Library Descriptor Files
    JAVA:Java Files
    SQL:SQL Files
    ASX:Windows Media Advanced Stream Redirector
    WML:WML Files
    EDML:EDML Files
    VBS:VBScript Files
    VTM,VTML:VTML Files
    SVG:Scalable Vector Graphics Files
    Thanks to crockej for finding this semi solution for now.
    Looking for Knysna Accommodation?

  • XML attribute not displayed by stylesheet

    HI Gentlemen,
    I set up a very simple case where some of the input data is in attributes. It works fine for the element content--firstname, however it does not display the attribute requested. What can be wrong? Please help!
    Thanks, regards
    Miklos
    The XML instance (people.xml):
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="c:\XSL\people.xsl"?>
    <people>
    <person born="1912" died="1948">
    <name>
    <firstname>Alan</firstname>
    </name>
    </person>
    </people>
    The corresponding stylesheet (people.xsl):
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="person">
    <person born="{born}" />
    </xsl:template>
    </xsl:stylesheet>

    Are you opening "people.xml" directly in a web browser?
    If so, I think you need to transform to HTML for a proper display.
    For example :
    people.xml
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="file://c:/XSL/people.xsl"?>
    <people>
    <person born="1912" died="1948">
    <name>
    <firstname>Alan</firstname>
    </name>
    </person>
    </people>
    people.xsl
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="person">
      <html>
       <body>
        <p><xsl:text>First name = </xsl:text><xsl:value-of select="name/firstname"/></p>
        <p><xsl:text>Born = </xsl:text><xsl:value-of select="@born"/></p>
        <p><xsl:text>Died = </xsl:text><xsl:value-of select="@died"/></p>
       </body>
      </html>
    </xsl:template>
    </xsl:stylesheet>Otherwise, you could use any XSLT processor to perform the transformation.

  • Data not displayed in Z-table when material code (MATNR) entered in selection screen.

    Hi Experts,
    I have a Z-table for a gatepass report which was already created by another developer. This table has many fields including plant, year, material code field. (MATNR) etc
    Now the problem is in SE11, I run the table to display the entries, when I enter plant and year and execute many entries are displayed.properly including material codes(e.g.50008536). 
    But when I execute the same entering plant, year and material code(e.g.50008536) then this message is displayed. " No table entries found for specified key"
    The same thing happens if I am writing a select query in my report to get the data of any particular material code. My internal table is not filled with the data including that particular material code.
    Some more info :
    1. The material code field in the Z-table is assigned the standard material code Data element. i.e. MATNR
    2. Even if I enter '000000000050008536' as input it is still not working. it is automatically changed to '50008536' after executing.
    So please help me where the problem is? I have spent alot of time on this but not able to find the problem..
    Thanks,
    Vishal .

    Hi Vishal,
    Hope I understand  that table content does not starts with zero for material, reply me if i am wrong.
    Use this code before where condition.
    loop at so_matnr.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
       EXPORTING
         INPUT         = so_matnr-low
      IMPORTING
        OUTPUT        = so_matnr-low.
    if so_matnr-high is NOT INITIAL.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
       EXPORTING
         INPUT         = so_matnr-high
      IMPORTING
        OUTPUT        = so_matnr-high.
    endif.
    MODIFY  so_matnr.
    endloop.
    if table content is filled with zero use  FM conversion_exit_alpha_input
    Regards,
    Venkat.

  • 0FC_OP_01 extractor issues- DFFKKOPBW data not matching with

    Hi All
    We have an issue with the extractor 0FC_OP_01. Our business is comparing the values in
    R/3 report u2013 G/L Account Balance Display (t-code S_ALR_87012277)   with the
    Open Items by GL Account report in BW .(actually these values in the BW report are coming from DFKKOPBW table in R/3) .
    But since august, the R/3 G/L account balance report is not matching with the DFKKOPBW table balances. So bottom line the extractor 0FC_OP_01 is doing something wrong when populating the DFKKOPBW table  which is causing these two reports to be out of balance
    Did anybody face this kind of issue before? Please Advise.
    FYI : We are following the same procedure to populate the DFKKOPBW table as in the below article.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a9996115-0b01-0010-b2b2-d9de0170a425;jsessionid=%28J2EE3417800%29ID0001499250DB01896329908162586522End
    Thanks
    KPK

    In my case the Cube/PSA data itself is not matching with the R/3 report data. 
    Basically we run a job in R/3 in t-code FPBW with a Date id and Indentification. This job will pull the entries from base table DFKKOP into DFKKOPBW table .Then FRom this DFKKOPBW table data is loaded into PSA/Cube.
    Here in my case the data in table DFKKOPBW itself is not matching with the R/3 report -  G/L Account Balance Display (t-code S_ALR_87012277)) .
    I am following the same procedure to run the JOb in T-code FPBW to populate the DFKKOPBW table as listed in the document at the above link.  Moreover this difference in balances is occuring only starting from August ..Till July the balances in DFKKOPBW tally with the R/3report.
    Please advise ..
    Thanks
    KPK

  • Web catalog is not displayed, with the Office Ad-in 11g

    Hi,
    I'm working with the Oracle BI Add-in for Microsoft Office,
    I can connect successfully to the office server,but when I try to select a report ,I can't beacuse the catalog is not displayed.
    My office version is 2007. and I'm working with Oracle BI 11g
    Thanks i...
    Edited by: user13810056 on 16-may-2011 15:08

    Hi thanks for the Info,
    According to the page , I need to change the default port from 9704 to 7001 in the bioffice.xml.
    That file should be located in this path :
    C:\BI11g\user_projects\domains\bifoundation_domain\servers\AdminServer\tmp\_WL_user\bioffice_11.1.1\hsq62b\war\WEB-INF\
    But I dont find the bioffice_11.1.1 folder inside the WLuser* folder
    Instead I find a bioffice.xml file in this path:
    C:\BI11g\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\bioffice_11.1.1\cvsibb\war\WEB-INF
    Edited by: Andres on 17-may-2011 7:30

  • Data not displayed for Key Figure of MultiProvider

    Hi Folks,
    I have created a Query on MultiProvider which is actually copied from another Query(based on InfoCube) using RSZC. Now I have the problem with display of data for a KeyFigure in report. No data is displayed for the KeyFigure. The MultiProvider has Two InfoCubes where the KeyFigure is related to one of the two Cubes. The data is shown at the MultiProvider level. I have also checked for a new query on the same MultiProvider. Here too the data is shown in the report for the KeyFigure. But it's not showing in the Query which is copied from another.
    Any assistance on the same is really appreciated.
    Thanks,
    Raju. Dupadally

    Hi Diaz,
    Thanks for your answer. Could you make it understandable. I haven't understood fully.
    Thanks,
    Raju. D

  • Xml code not working with new version

    Hi,
    my following code is not working with the xalan 2.7.0 version. Any one can help to convert this to work on new version.
    import java.io.*;
    import java.util.*;
    import org.xml.sax.*;
    import org.apache.xalan.xslt.*;
    public class XML2Edifact
    public static void main(String args[])
    throws SAXException, IOException
    if(args.length < 3)
    throw new IllegalArgumentException(
    "Usage is XML2Edifact in.xml xsl.xsl out.edi");
    InputStream sin = new FileInputStream(args[0]),
    sxsl = new FileInputStream(args[1]);
    OutputStream sout = new FileOutputStream(args[2]);
    EdifactFormatter formatter = new EdifactFormatter(sout);
    XSLTProcessor processor =
    XSLTProcessorFactory.getProcessor();
    XSLTInputSource in = new XSLTInputSource(sin),
    xsl = new XSLTInputSource(sxsl);
    XSLTResultTarget out = new XSLTResultTarget(formatter);
    processor.process(in,xsl,out);
    }

    Solved, had to repair the Z10 with the PC!  Would have thought that upgrading software would have saved the environment so that this step was not needed (played with this for several weeks on-and-off).

Maybe you are looking for

  • Trackpad Model # mid 2009 13" unibody Macbook Pro

    What model trackpad can I use to replace the one in my mid 2009 unibody macbook pro?...and where can I get one from a preferably reliable source? It clicks but doesn't respond unless I press hard.  The Apple store offered to replace it but for a lot.

  • Ultrabeat in Logic Pro X is missing drum kits

    Hi, So recently, I got Logic Pro X because I've been meaning to try producing house music with it. I was introduced to Ultrabeat in some tutorials saying to click the dropdown menu (at the top) and select 01 drum kits and choose Trance Kit 02. Howeve

  • Multiple sites for a subscription

    We just installed CRM 7.0 and trying to assign a subscription to multiple sites. For example, the documentation says to create subscription 'All Business Partners (MESG)' for publication 'All Business Partners (MESG)' for the R3 site (integrating R3

  • Can anybody help....SQL to display row as column and column as rows

    Can anybody help in writing a SQL to display row as column and column as rows? Thanks

  • How to circumvent mandatory registration of Photoshop Elements 12

    Our tech team are having an issue with packaging Photoshop Elements 12 for SCCM deployment. During their initial, manual install to 'discover' what the .msi delivers, it's become apparent that product registration with an 'Adobe ID' has become mandat