why?

Discussion in 'XML' started by Useko Netsumi, Nov 14, 2003.

  1. The following failed to run in Mozilla 1.6a but ran find in ie6. Thanks


    ex1.xml
    =======
    <?xml version="1.0" encoding="utf-8" ?>
    <?xml-stylesheet type="text/xsl" href="./ex1.xsl"?>
    <Addressbook>
    <entry>
    <confidential>FOR YOUR EYES ONLY!</confidential>
    <CATEGORIES>Signs</CATEGORIES>
    <FIRSTNAME>Alf</FIRSTNAME>
    <LASTNAME>Della</LASTNAME>
    <JOBTITLE1>Double Agent</JOBTITLE1>
    </entry>
    <entry>
    <confidential>PUBLIC</confidential>
    <CATEGORIES>Connectors</CATEGORIES>
    <FIRSTNAME>John</FIRSTNAME>
    <LASTNAME>Smith</LASTNAME>
    <JOBTITLE1>Accountant</JOBTITLE1>
    </entry>
    </Addressbook>


    ex1.xsl
    =====
    <?xml version='1.0' encoding="utf-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    <xsl:template match="/">
    <html>
    <body>
    <table border="2" bgcolor="white">
    <tr>
    <th>confidential</th>
    <th>CATEGORIES</th>
    <th>FIRSTNAME</th>
    <th>LASTNAME</th>
    <th>JOBTITLE1</th>h
    </tr>
    <xsl:for-each select="Addressbook/entry">
    <tr>
    <td><xsl:value-of select="confidential"/></td>
    <td><xsl:value-of select="CATEGORIES"/></td>
    <td><xsl:value-of select="FIRSTNAME"/></td>
    <td><xsl:value-of select="LASTNAME"/></td>
    <td><xsl:value-of select="JOBTITLE1"/></td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Useko Netsumi, Nov 14, 2003
    #1
    1. Advertising

  2. Useko Netsumi wrote:
    > The following failed to run in Mozilla 1.6a but ran find in ie6. Thanks
    >
    > ex1.xsl
    > =====
    > <?xml version='1.0' encoding="utf-8"?>
    > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">


    That's not the Namespace URI for XSLT, use
    "http://www.w3.org/1999/XSL/Transform" instead.
    --
    Johannes Koch
    In te domine speravi; non confundar in aeternum.
    (Te Deum, 4th cent.)
    Johannes Koch, Nov 14, 2003
    #2
    1. Advertising

  3. Thanks, it works!

    "Johannes Koch" <> wrote in message
    news:bp2t5f$1kj9h5$-berlin.de...
    > Useko Netsumi wrote:
    > > The following failed to run in Mozilla 1.6a but ran find in ie6. Thanks
    > >
    > > ex1.xsl
    > > =====
    > > <?xml version='1.0' encoding="utf-8"?>
    > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

    >
    > That's not the Namespace URI for XSLT, use
    > "http://www.w3.org/1999/XSL/Transform" instead.
    > --
    > Johannes Koch
    > In te domine speravi; non confundar in aeternum.
    > (Te Deum, 4th cent.)
    >
    Useko Netsumi, Nov 14, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VGltOjouLg==?=

    Why, why, why???

    =?Utf-8?B?VGltOjouLg==?=, Jan 27, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    553
    Juan T. Llibre
    Jan 27, 2005
  2. Horace Nunley

    why why why does function not work

    Horace Nunley, Sep 27, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    450
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Sep 27, 2006
  3. Mr. SweatyFinger

    VWD why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    371
    =?Utf-8?B?Q2lhcmFuIE8nJycnRG9ubmVsbA==?=
    Dec 21, 2006
  4. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    863
    Mark Rae
    Dec 21, 2006
  5. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,763
    Smokey Grindel
    Dec 2, 2006
Loading...

Share This Page