SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Urgent help needed on linking XML file to XSLT file

    Earlier on SitePoint (like two days ago), I post a thread entitled "XSLT problem." Since no one had the kindness to respond, I'm re-posting it with a different title, in hopes of solving the confounded problem.
    So. I've got a ASP.NET file ("/" or "/Default.Aspx") which is written in XML. Here's the code:

    Code:
    <%@ Page Language="C#" %>
    <!--"/"/"/Default.Aspx": XML/XHTML displayer-->
    <?xml version="1.0" encoding="Utf-8"?>
    <?xml-stylesheet type="text/xsl" href="/Transform.Xslt"?>
    <Document>
    <Header>
    <Title>Test</Title>
    </Header>
    <Content>
    Test
    </Content>
    </Document>
    ASP.NET document declaration; document identifier comment; XML declaration; XML stylesheet declaration; XML code.
    I also have an XSLT file ("/Transform.Xslt") which is written, naturally, is XSL(T). Here's the code:

    Code:
    <!--"/Transform.Xslt": SiteML and FormatML (XML) to XHTML transformer-->
    <?xml version="1.0" encoding="Utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict">
    <html>
    <head>
    <title></title>
    </head>
    <body>
    </body>
    </html>
    </xsl:stylesheet>
    Document identifier comment; XML declaration; XML stylsheet declaration; XHTML code to replace XML code in "/" or "/Default.Aspx".
    So. Here's the problem: despite the fact that the XML stylesheet declaration's "href" attribute (in the "/" or "/Default.Aspx") is valid, loading the page in MS IE6 pulls up XML. No XSLT occurs.
    Could somone please help me? This XSLT file is critical to my Web site's operation and without it there isn't a site. Thanks for your assistance.

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I PM'd this to compuwhiz7


    <DIV><DIV>Regarding your thread titled 'Urgent help needed on linking XML file to XSLT file', I would suggest reviewing an article published on sitepoint named (Build and XML/XSLT Driven Website with .NET
    ), Basically I think your approach as well as your understanding of xslt is slightly wrong. I would suggest taking a look at www.zvon.org as well as numerous documentation, which has been annotated through this section of the forum.</DIV><DIV> </DIV><DIV>On another note you might want to check out DocBook?

    hmmm... messed up, anyway i'm off for 2 weeks

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Andrew. However, I am no longer using XML (and therefore XSLT) for my site. Sorry for any inconvenience this may have caused.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •