SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: XSLT problem

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

    Unhappy XSLT problem

    For my Web site, I'm using two custom markup languages, one called SiteML (for content structure) and the other called FormatML (for formatting). I'm then using XSLT to transform my custom languages into XHTML.
    Here's the code of my home page ("/" or "/Default.Aspx" ):
    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>
    <AspDotNet Type="Text" ID="Title"/>
    </Title>
    </Header>
    <Content>
    <Image Style="HeaderImage" Source="/Images/Header.Jpg"/>
    <Heading Style="HeaderText">
    <AspDotNet Type="Text" ID="Title"/>
    </Heading>
    <Image Style="SidebarImage" Source="/Images/Sidebar.Jpg"/>
    <Container Style="SidebarContent">
    <AspDotNet Type="All" ID="Sidebar"/>
    </Container>
    <Container Style="MainFrame">
    <AspDotNet Type="All" ID="Main"/>
    </Container>
    </Content>
    </Document>
    Then I have my XSLT file (located in "/Transform.Xslt" ):
    Code:
    <?Xml Version="1.0" Encoding="Utf-8" ?>
    <Stylesheet Version="1.0" Xmlns="http://www.w3.org/1999/XSL/Transform">
    <Output Method="Xhtml" Indent="No"/>
    <Template Match="/">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    <head>
    <title><Value-Of Select="Title"/></title>
    </head>
    <body>
    </body>
    </html>
    </Template>
    </Stylesheet>
    So far, of course, I only have the title system there. Here's the problem: no XSLT occurs. The page simply loads as XML. What's going on, and what can I do to fix it?
    Last edited by cfm; Jul 7, 2003 at 10:15.

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't mean to nag, but please help! I'm getting desperate!

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Apr 2003
    Posts
    4,095
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm... I reckon I should have read the WC's specs on XSLT before crying wolf. Please ignore this thread; advisors may delete it if they feel so inclined.


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
  •