Hello World XML/XSL example not working in IE

I am trying to get the "Hello World" XML/XSL example to work in IE.
Could anyone help me out?
The code follows:
hello.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="hello.xsl"?>
<hello-world>
<greeter>An XSLT Programmer</greeter>
<greeting>Hello, World!</greeting>
</hello-world>
hello.xsl
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/hello-world">
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<H1><xsl:value-of select="greeting"/></H1>
<xsl:apply-templates select="greeter"/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="greeter">
<DIV>from
<I><xsl:value-of select="."/></I>
</DIV>
</xsl:template>
</xsl:stylesheet>
Both files are in the same directory.
When hello.xml is opened in IE, the output displayed is just, "from".
What's wrong, and where?
Please help!
- Edwin.

Hi edwinwaz,
In response to your question, pls refer to this url
http://www.w3schools.com/xsl/el_template.asp
and take a look at the "note" in red.
It says that IE5.X have non-standard behavior on the element <xsl:template>
In addition, I have tested your code it works fine.
Just to add something on your code here.
I noticed that you do this
<xsl:apply-templates select="greeter"/>
and then in another template you do this
<xsl:template match="greeter">
<!-- code -->
</xsl:template>
In this case, it does work because "greeter" is a top-level element but if "greeter" is anything underneath the top-level element. It won't work.
Actually, I discovered this after taking a look at your example and
I was surprised that the code above worked and then I did some testing and discovered this.
I am learning XML too now... So, I am happy to know this :).
regards

Similar Messages

  • TS1398 Hello, my iPod touch is not working right. It says its connected but if I select App Store, safari and other apps that require wifi pops out a note saying either"error loading" or "cannot connect to iTunes Store" and would exit the app automaticall

    Hello, my iPod touch is not working right. It says its connected but if I select App Store, safari and other apps that require wifi pops out a note saying either"error loading" or "cannot connect to iTunes Store" and would exit the app automatically. Please help.
    Thank You.

    See:
    Can't connect to the iTunes Store

  • HT3964 Hello, my isight camer is not working properly, i was using photo booth and suddenly the image was black or too dark and also ichat and facetime are too dark as well, please helpme out i can not find any solution.

    Hello, my isight camer is not working properly, i was using photo booth and suddenly the image was black or too dark and also ichat and facetime are too dark as well, please helpme out i can not find any solution.

    read this and see if it helps: http://support.apple.com/kb/ht2090

  • Oracle Service Bus 11g omit-xml-declaration="yes" not working in XSL-T

    I have the requirement of removing the XML header from xsl output.
    eg: <?xml version="1.0" encoding="UTF-8" ?> this part has to removed
    I tried using the following in XSLT:
    <xsl:output indent="yes" omit-xml-declaration="yes" />.
    It seems to work in all online xml compilers. It does not work in work in OSB.
    I posted the message in a JMS Queue and it contains the xml header.
    Is this a work around for this issue?

    I'm pretty sure XSLT has nothing to do with that PI.
    After all, XSLT in OSB doesn't format text, it generates an XmlObject. The formatting (including adding the <?xml?> PI) are done by other parts of the engine. Probably the XmlBeans serializator.
    The only option I see is to serialize the XML, then cut off everything until first ?>.
    Why would you need that, I wonder? May be there is a better way.
    Vlad @ genericparallel.com

  • Java Applet HelloWorld "Getting Started With Applets" example not working

    Hi there,
    It's been ages since I ran my Linux CentOS boot of Linux but I am going through the official oracle java applet tutorials, just every time I try and run the "Hello World" applet in Firefox 17.0.3 and I am running the Iced Tea thing for java applets.
    Every time I try and run the example from the following code:
    import javax.swing.JApplet;
    import javax.swing.SwingUtilities;
    import javax.swing.JLabel;
    public class HelloWorld extends JApplet
      // called when the user enters the html page:
      public void init() // keep apps within the init() function very small as per the http://docs.oracle.com/javase/tutorial/deployment/applet/appletMethods.html
        try{
          SwingUtilities.invokeAndWait(new Runnable()
            public void run()
           JLabel myLabel = new JLabel("Hello World");
           add(myLabel);
            } // end running the application
          }); //end of swing invokeand wait
        } catch (Exception error){ // end user running the app in page
           // System.err.println("GUI didn't work on initial run");
    }It keeps bringing up the error "Start: Applet not initialized" I did google that basic error and from what I found I should consult the JavaConsole, I know the console was removed from the Firefox menu quite a while ago. So went to find a way of loading it using the IcedTea one but it keeps bringing up a load of errors in even trying to run that.
    Is there anyway of sorting this out? I mean I have even tried installing the one on the oracle website, the plain JDK but nothing seems to work.
    Is there anyone that can help me get applets working? I was even going to go as far as to reinstall my distro but I want to avoid that as much as possible.
    Thanks and I look forward to any replies,
    Jeremy.

    in the Getting Started with Java DB tutorial they
    tell u how to set ur "DERBY_HOME" (what is that?).
    once i press enter after typing this command:
    set DERBY_HOME=D:\Java\Java
    Phonebook\javadb in my command prompt do i get
    any message or does it just go to the next line?type env or set or whatever in the command line to see what your environment variables are set to
    they also tell u how to set ur "JAVA_HOME" (what is
    that?). The Java installation you want to use
    in their example they give u this: set
    JAVA_HOME=C:\Program Files\Java\j2se1.4.2_05but in my java folder i have jdk1.6.0 and jre1.6.0
    but no j2se1.4.2_05, so which 1 must i choose?It's up to you. I'd go with 1.6
    also once ive done this: set
    DERBY_HOME=D:\Java\Java Phonebook\javadb this
    set JAVA_HOME=D:\Program
    Files\Java\jre1.6.0 and this set
    PATH=%DERBY_HOME%\bin;%PATH% and then type
    sysinfo to verify that the variables were set
    correctly i get these errors: 'D:\Java\Java' is
    not recognized as an internal or external command,
    operable program or batch file and '""'
    is not recognized as an internal or external command,
    operable program or batch file any help would
    really be appreciated because this is really killing
    me!you need to set your path variable - so something like:
    set PATH=C:\Program Files\Java\j2se1.4.2_05\bin

  • A STANDARD XML TAG IS NOT WORKING PROPERLY WHEN USED IN RTF FILE FOR XML RE

    Hi,
    I am using the following tag :
    <?if:TASK_STATUS='Open'?><xsl:attribute xdofo:ctx="block“name="color">red</xsl:attribute>
    <?end if?>
    for changing foreground color of text which depending on certain conditiosi need to print in
    pdf format using xml reports and rtf files.
    But i was able to get only 3 colors (Red,Blue,Green) for use, other colors such as orange,cyan etc are not
    working.
    Please let me know what all colors are supported by oracle in printing in pdf format using xml reports.
    Suggest if we need to do some settings related stuff or so.
    I am usning XML 5.6.3 version.
    Regards,
    Amar

    Colors can be expressed by known name and by a hex value. The hex value format is widely used in HTML programming, and has a format of #abcdef, and "abcdef" can be values like aaddcc and so on. For some primary colors, you can get away with #abc, but that is not very common.
    You should always design with Web-safe colors in mind. That limits you to 16, but should be plenty for most purposes (plus all 16 have known names like red, cyan, yellow, etc.).
    http://www.w3schools.com/Html/html_colors.asp has a good explanation of the standards.

  • JSF Getting Started Example not Working

    I've installed and configured JSF according to CoreJSF 1st Chapter example "A simple JSF Application" (available at http://horstmann.com/corejsf/). The only different thing i've done is to put the jsp pages in a separate folder within the root web application folder. The JSF seems to be properly configured, since i'm able to see the UI components in the login page. However, once I click login button, the application takes me once more to the login page (same page that put the request). I figure it is a problem with the navigation file, I've changed the faces-config.xml including "jsf/welcome.jsp" as target since "jsf" is the separate directory I created for JSP files. I does not work (not getting exceptions though). Any prompt help will be highly appreciated.
    These are the files:
    webapproot/jsf/index.jsp
    <html>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <head>
    <title>A Simple Java Server Faces Application</title>
    </head>
    <body>
    <h:form>
    <h3>Please enter your name and password.</h3>
    <table>
    <tr>
    <td>Name:</td>
    <td>
    <h:inputText value="#{user.name}"/>
    </td>
    </tr>
    <tr>
    <td>Password:</td>
    <td>
    <h:inputSecret value="#{user.password}"/>
    </td>
    </tr>
    </table>
    <p>
    <h:commandButton value="Login" action="login"/>
    </p>
    </h:form>
    </body>
    </f:view>
    </html>
    webapproot/jsf/welcome.jsp
    <html>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <head>
    <title>A Simple Java Server Faces Application</title>
    </head>
    <body>
    <h:form>
    <h3>
    Welcome to Java Server Faces,
    <h:outputText value="#{user.name}"/>!
    </h3>
    </h:form>
    </body>
    </f:view>
    </html>
    webapproot/WEB-INF/faces-config.xml
    <faces-config>
         <navigation-rule>
         <from-view-id>jsf/index.jsp</from-view-id>
         <navigation-case>
         <from-outcome>login</from-outcome>
         <to-view-id>jsf/welcome.jsp</to-view-id>
         </navigation-case>
         </navigation-rule>
         <managed-bean>
         <managed-bean-name>user</managed-bean-name>
         <managed-bean-class>co.edu.unal.dnic.licapa.capa.UserBean</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
    </faces-config>
    webapproot/WEB-INF/web.xml
    <web-app>
         <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
         </servlet>
         <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.faces</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
         <welcome-file>/index.html</welcome-file>
         </welcome-file-list>
         <display-name>DNIC - Capacitaci�n 1.0.1</display-name>
         <description>
         DNIC - Capacitaci�n 1.0.1
    </description>
    </web-app>
    Since I'm not getting any java exceptions I figure the UserBean class is working properly.
    Thank you......
    Julian

    try to put / at the beginning of the from-view-id and to-view-id

  • Reading a global variable from tomcat with JNDI. Example not working

    Hi you can help me to make this example work?
    Context initCtx = new InitialContext();
    Context envCtx = (Context)initCtx.lookup("java:comp/env");
    Object o = envCtx.lookup("testvariable");
    <GlobalNamingResources>
    <Environment name="testvariable" type="java.lang.Boolean" value="false"/>
    Nice greetings Christian

    I found out that in addition to having the JNDI lookup code, you have to
    - have the environment variable declared in the app server configuration
    - have a resource-env-ref entry in your webapp module
    - have the application container bind your named variable with the global variable
    I am using tomcat 5.5, and have done the following. with success.
    the following example uses the default sample environment variable in the tomcat server.xml
    in tomcat server.xml:
    <GlobalNamingResources>
    <Environment
    name="simpleValue"
    type="java.lang.Integer"
    value="30"/>
    </GlobalNamingResources>
    in my application's web.xml:
    <resource-env-ref>
    <description>Test read resource environment variable</description>
    <resource-env-ref-name>simpleValue</resource-env-ref-name>
    <resource-env-ref-type>java.lang.Integer</resource-env-ref-type>
    </resource-env-ref>
    in my META-INF/context.xml (or otherwise, in tomcat's context deployment configuration)
    <ResourceLink name="simpleValue" global="simpleValue"
    type="java.lang.Integer"/>
    Note: in theory, the named resource by your web app could be different from the global environment variable, but here they are the same 'simpleValue'
    This is the really important step, that with out it, nothing works.,
    the context.xml is known to work with tomcat when it exists in META-INF/context.xml inside the .war file (i use war files to deploy, but you should be able to create META-INF/context in an unpacked webapp directory too, and tomcat will find it.,
    I can not say what it is like for other app servers, but this mapping step is the critical point that i discovered after A LOT of hair pulling.
    then, make use of it, i created a jndiTest.jsp:
    <%@ page import="javax.naming.Context" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.naming.NamingException" %>
    <%
    try {
    Context initCtx = new InitialContext();
    Context ctx = (Context) initCtx.lookup("java:/comp/env");
    Object o = ctx.lookup("simpleValue");
    %>
    <%=o%><br>
    <%
    catch (NamingException ex) {
    System.err.println(ex);
    %>
    since my server.xml defines the value for 'simpleValue' to be 30, this page displays 30

  • Hans Javaserver 3 book example not working

    Hello,
    This is from Hans Javaserver Pages Third edition
    <%-- Verify that the user is logged in --%>
    <c:if test="${validUser == null}">
    <jsp:forward page="login.jsp">
    <jsp:param name="origURL" value="${pageContext.request.requestURL}" />
    <jsp:param name="errorMsg" value="log in first." />
    </jsp:forward>
    </c:if>
    The above example does not seem to work.
    The code below seems to work
    <%-- Verify that the user is logged in --%>
    <c:if test="${validUser.name == null}">
    <jsp:forward page="login.jsp">
    <jsp:param name="origURL" value="${pageContext.request.requestURL}" />
    <jsp:param name="errorMsg" value="log in first." />
    </jsp:forward>
    </c:if>
    Any ideas why his example is not working on Tomcat 5.0?
    Thanks
    Frank

    Hi I was trying the same thing and was wondering why it doesn't accept the origURL, well it never takes the value of it at all and just skips the page that was requested and goes to mail.jsp no matter what.
    <c:choose>
    <c:when test="${! empty param.origURL}" >
    <c:redirect url="${param.origURL}" />
    </c:when>
    <c:otherwise>
    <c:redirect url="main.jsp" />
    </c:otherwise>
    </c:choose>
    The value of origURL is never passed to this authentication page! I would also like to know the reason why?
    Also I have a question to your last piece of code that works: where is the name parameter taken from? Is it the same as userName that is passed as a parameter from the login page? or is it something else? I'd really appreciate your help...
    <c:if test="${validUser.name == null}">

  • Core/examples/sessions/Broker example not working

    Guys
    I am trying the example with Oracle database instead of the HSQL database. I replaced the driver & url strings and put the classes12.jar in the classpath
    But I continue to get the following error. Can someone please tell me what I am missing.
    D:\toplink\examples\core\examples\sessions\broker>D:\JDev9i\jdk\bin\java.exe -classpath ""D:\JDev9i\jdk\lib\tools.jar";"d:\to
    plink\ant\lib\jaxp.jar";"d:\toplink\ant\lib\jakarta-ant-1.4.1-optional.jar";"d:\toplink\ant\lib\crimson.jar";"d:\toplink\ant\
    lib\ant.jar";.;d:\toplink\core\lib\toplink.jar;D:\JDev9i\jdbc\lib\classes12.jar;d:\toplink\core\lib\toplink.
    jar;D:\JDev9i\jdbc\lib\classes12.jar" -Dant.home=d:\toplink\ant -Dtl.home=d:\toplink -Dwls61.home= -Dwls70.home= -Dwas.home=
    -Doracle.home=D:\JDev9i\OC4J903 -Dexamples.home=d:\toplink\examples -Dtoplink.dir=d:\toplink\core\lib -Dtoplink.library=topli
    nk.jar,xerces.jar -Dtoplink.weblogic.path=d:\toplink\wls_cmp\lib\tl_wlsx.jar -Dtoplink.was.path=d:\toplink\was_cmp\lib\tl_wa
    sx.jar -Dhsql.path=d:\toplink\HSQL\lib\hsqldb.jar -DDEBUG=on org.apache.tools.ant.Main runExample -DtestClass=examples.sessions.broker.Demo
    Buildfile: build.xml
    init:
    verify.build.done:
    runExample:
    [java] 2003.05.19 03:54:35.625--DatabaseSession(11)--Thread[main,5,main]--Connection(12)--TopLink, version:TopLink - 9.0
    .3 (Build 423)
    [java] 2003.05.19 03:54:35.685--DatabaseSession(11)--Thread[main,5,main]--Connection(12)--connecting(DatabaseLogin(
    [java] platform => OraclePlatform
    [java] user name => "asdfbf"
    [java] datasource URL => "jdbc:oracle:thin:@localhost:fims"
    [java] ))
    [java] 2003.05.19 03:54:35.705--DatabaseSession(11)--Thread[main,5,main]--EXCEPTION [TOPLINK-4003] (TopLink - 9.0.3 (Bui
    ld 423)): oracle.toplink.exceptions.DatabaseException
    [java] EXCEPTION DESCRIPTION: Configuration error. Class [oracle.jdbc.driver.OracleDriver] not found.LOCAL EXCEPTION ST
    ACK:

    One more thing to add:
    I am not able to get any of the examples to work with Oracle database. Again the only thing I suppose I need to change are the folloowing lines in the EmployeeProject.java
         login.usePlatform(new oracle.toplink.internal.databaseaccess.OraclePlatform());
         login.setDriverClassName("oracle.jdbc.driver.OracleDriver");
         login.setConnectionString("jdbc:oracle:thin:@localhost:1522:fims");
         login.setUserName("kumarv");
         login.setEncryptedPassword("7AD96CD575D1A7FCAA504BA7E4FC");
    Also one line change in the sessions.xml file to use the OraclePlatform instead of the HSQLPlatform.
    Has any one got these to work with Oracle, Any help is really appreciated.
    classes12.jar is in the classpath so I don;t understand why I get the execption that:
    [java] EXCEPTION DESCRIPTION: Configuration error. Class [oracle.jdbc.driver.OracleDriver] not found.
    [java] oracle.toplink.exceptions.DatabaseException oracle.toplink.exceptions.DatabaseException.configurationErrorCla
    ssNotFound(java.lang.String)
    Thanks

  • Hello World and FSBL don't work with ZC702

    Hi everyone,
    I'm very confused about my issue. I've a ZC702 Board and use SDK 2014.4 and Vivado 2014.4 (both 64 bit) on a Windows 7 machine.
    I've created a simple design with Vivado. The only element I have is a Zynq processor. I turned on some controller ( like I2C, QSPI, CAN, SD) and, configured the CAN CLK prescaler (see Zynq-7000 AP SoC Technical Reference Manual v1.10, page 581) and that's it.
    After I exported the bitstream and launched the SDK, I created a FSBL project and a Hello World project. Nothing spectacular, nothing weird. Everything I used came out of the box.
    I used the Xilinx tools to create a boot image and flashed the memory.
    The boot sequence works fine till it has to execute the HelloWorld.elf. I get following message :
    Application
    Handoff Address: 0x00000000
    In FsblHookBeforeHandoff function
    No Execution Address JTAG handoff
    Here is the thing: If I use the ZC702 pre-defined hard platform, with I can choose in the creation process of a new project, everything works fine. But that's not, what I want and that's not, what I need.
    Why does this happen and how can I understand and reconstruct this behavior to configure and fix this kind of problems
    in future by myself?
    I'm looking forward to your suggestions
    P.S: I've done a lot of googling but I couldn't find anything suitable.

    Check this AR and attached design
    http://www.xilinx.com/support/answers/50869.html

  • AVI Compressor Comparison Example not working with Flame.avi

    Hello,
    I downloaded the NI Vision module for a trial to see what it could do. I will be owrking with black and white files (AVI or other) so I tried the "AVI Compressor Comparison Example.vi" along with the "Flame.avi" from "C:\Program Files\National Instruments\Vision\Examples\Images\AVIs". Basically, the example decompresses "Flame.avi" and then compresses the same file using all of the installed codecs.
    When I run the example and then try to play the avi files, all of them are blank (black) and reflect a much shorter playing time than the 16.6 seconds of the original (before decompression) avi which I can play on VLC and QuickTime but not Windows Media Player. When I look at the original video properties in LV, the file format is RGB even
    though it is B&W. When I look at the video properties in VLC or
    QuickTime, it shows it as Motion JPEG OpenDML, 200 x 340 with millions of colors.
    All of the other avi files in the example folder work fine.  Does anyone have any ideas of what might be going on? Thanks.
    Michael Froehlich
    I am running LabVIEW 8.5 on a Windows 32 bit XP Service Pack 2 PC.  I have DirectX 9.0c installed.

    Hey Michael,
    I am a little confused by your post. However, first things first. You can have an image that is of RGB type and it still appear B&W.  So, that Flame.avi file, though it appears B&W, is actually a color picture. Instead of a single numeric value to represent a grey level, there are three numeric values (RGB) that combine to represent a grey level. Possible reasons for this I am not quite sure. It could be to give a larger avi file to better test the different codecs.  In terms of playing the avi files again. This depends on the codecs being used and whether or not the tool you are using to play them supports that particular codec. You had mentioned that the other avi's work fine, particularly, which avi files are you referring to? 
    Also, if you manually read in the Flame.avi and then write it again using a codec to compress your avi do you see the same problems introduced by the AVI compressor Comparison Example?
    Hope this helps.
    -Ben
    WaterlooLabs

  • XML Template was not working correctly in 11.5.9

    Hi
    I am currently working on XML rtf template for Invoice. And the rtf XML template is working fine (getting results as expected) in 11.5.10 but the same rtf is not working fine in 11.5.9( not getting the results as expected). My current version of XML Publisher in 11.5.9 is 4.5 and in 11.5.10 is 5.6. My question is there any to make the rtf work correctly in 11.5.9 aslo.
    Thanks,
    Ram.

    I have seen such issues earlier. What you can do is to either upgrade xml publisher version or you have to play around with template a bit like adding dummy rows with lines invisible and consume very less space, dummy columns etc to get desired results

  • XML Data Button Not working when Exported onto BusinessObjectEnterprise

    I have an XML data button on a dashboard. It works fine in preview and on web. It does not work if it is exported onto Business Object server using XCelsius' Export to  BusinessObjectEnterprise.
    In the InfoView, I double click on the flash file, the flash files opens as expected, but when XML Data button is clicked, no new data seem to come in...
    If I export as Adobe file, and then post it onto the server, and view it using Info View, the XML data button works just fine.
    Please advise.

    Hi All,
    Even I have similar requirement.
    Any work around is appreciable.
    Thanks
    Vinod

  • SISO OFDM TDD Example not working

    I was trying to use SISO OFDM example.
    But to surprise Its not working in both the two cases:-
    1. Loopback over air (.GVI gives no error but VLC is not receiving ant stream)
    2 No loopback : An error is returned on turning on the Base station:-
    The mobile station parameters are as in below figure:
    Can somen one explain the source of inusoid wave? I am surprised at it!
     

    Have you ever get the SISO OFDM TDD Example work with two device?
    Currently, I am doing the SISO OFDM TDD Example like your work with two USRP-RIO 2953R. I can do streaming within one USRP-RIO with loop back selection in the example, but when it comes to two USRP-RIO streaming, one is base station and the other is UE,  but the demo seems to be not working.

Maybe you are looking for

  • License error in SAP B1 .8 PL5

    Hi All, one my client facing following  problem. Details: Server Details 1.     Intel Server Board & Platforms S3200SH / S3210SH 2.     8 GB RAM. 3.     500 GB HDD: 2 Nos. 4.     OS: Windows Server 2003 Enterprise Edition SP-II. 5.     Data Base: Mic

  • Google home page will not display but everything else works (bookmarks,etc)

    When I start FF, the page says server was reset before loading complete, yet my other system does just fine with same version of FF. Just started last night and haven't gone to malicious website as they are blocked by Avast well and no emails came in

  • Where is the button formerly known as stop?

    On previous versions of FF there was a 'Stop' button that canceled what seemed to be a transaction going nowhere. Where is that button now?

  • How to re download software

    How do I re download Adobe photoshop elements11  and premiere elements 11

  • Four channel input only seeing one input in the quadrant graph

    I have the waveform chart working so that when there are four inputs you see four seperate outputs, but am unsure why the second graph which is supposed to seperate the four inputs into four seperate quadrants is not doing so because both graphs are