Trying to have IE5.5 do XSLT with 1999/XSL/Transform


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Trying to have IE5.5 do XSLT with 1999/XSL/Transform

  1. #1
    Lou Guest

    Trying to have IE5.5 do XSLT with 1999/XSL/Transform


    I'm trying to have IE5.5 transform the XML, but this does not work.
    Here's my XML:

    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="simple.xsl"?>
    <SearchString>hello world</SearchString>

    Here's my XSLT, simple.xsl:

    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:template match="/">
    <html>
    <body>
    <title>Search Result</title>
    The string: <xsl:value-of select="SearchString"/>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

    Loading the XML into IE5.5 (after installing msxml3.dll) does
    NOT display "The string: hello world" as expected. I only see
    my label "The string:".

    What am I missing?
    It works when I use: xmlns:xsl="http://www.w3.org/TR/WD-xsl"
    but I don't want to use this old MS namespace, I'm going to need
    more features later like xsl:variable. Why won't the other work?



  2. #2
    JimmyJack Guest

    Re: Trying to have IE5.5 do XSLT with 1999/XSL/Transform

    Tried it on my IE55 browser and it worked fine coded as is. Do you have
    MSXML3 installed in replace mode?

    Check this site for more troubleshooting tips:
    http://www.netcrucible.com/xslt/msxml-faq.htm

    JJ

    "Lou" <l_kvitek@audiblemagic.com> wrote in message
    news:3aa5668e$1@news.devx.com...
    >
    > I'm trying to have IE5.5 transform the XML, but this does not work.
    > Here's my XML:
    >
    > <?xml version="1.0"?>
    > <?xml-stylesheet type="text/xsl" href="simple.xsl"?>
    > <SearchString>hello world</SearchString>
    >
    > Here's my XSLT, simple.xsl:
    >
    > <?xml version="1.0"?>
    > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

    version="1.0">
    >
    > <xsl:template match="/">
    > <html>
    > <body>
    > <title>Search Result</title>
    > The string: <xsl:value-of select="SearchString"/>
    > </body>
    > </html>
    > </xsl:template>
    > </xsl:stylesheet>
    >
    > Loading the XML into IE5.5 (after installing msxml3.dll) does
    > NOT display "The string: hello world" as expected. I only see
    > my label "The string:".
    >
    > What am I missing?
    > It works when I use: xmlns:xsl="http://www.w3.org/TR/WD-xsl"
    > but I don't want to use this old MS namespace, I'm going to need
    > more features later like xsl:variable. Why won't the other work?
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center