Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 12th, 2005, 6:43 PM   #1
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
Calling On Dameon

Hey bro(or anyone reading this), i have always been interested in XML. I have always made my websites in HTML/PHP. Well looking at your webpage completely inspired me to rewrite mine. Ofcourse naturally im having problems. Can you not view a XML page directly? Must you refer to a page that refers to the XML page?

This is my Error:

The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing resource 'file:///C:/site/default.xsl'. Line 1, Position 47 

  <?xml version="1.0" encoding="ISO-8859-1" ?>


(Sorry all i ever do is work and sleep anymore, i wish i had the time for studying and research like i used to)
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Dec 12th, 2005, 7:02 PM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Perhaps you should include the entire stylesheet. The line appears to have nothing wrong with it, as I pasted it into my own stylesheet with no ill effects.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Dec 12th, 2005, 7:07 PM   #3
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
lol the entire XSL is included?
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Dec 12th, 2005, 7:37 PM   #4
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
With your post, I mean.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Dec 12th, 2005, 7:51 PM   #5
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
Oh, well i used your style sheet? The only thing i have edited so far was the path. couldn't get this thing to work at all so decided to ask you about it... but here it is lol.

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <!--  <xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes"/> 
  --> 
- <xsl:template match="/">
- <html>
- <head>
- <title>
  <xsl:value-of select="page/title" /> 
  </title>
  <style type="text/css">@import url(/layout.css);</style> 
  </head>
- <body>
- <div id="header">
- <h1>
  <xsl:value-of select="page/heading" /> 
  </h1>
  </div>
- <div id="main">
  <xsl:apply-templates select="page/menu" /> 
- <div id="content">
  <xsl:copy-of select="page/content" /> 
  </div>
  </div>
  </body>
  </html>
  </xsl:template>
- <xsl:template match="menu">
- <div id="menu">
  <xsl:value-of select="./@title" /> 
- <ul>
- <xsl:for-each select="./menuitem">
- <xsl:choose>
- <xsl:when test="@active = 1">
- <li>
- <a id="current">
- <xsl:attribute name="href">
  <xsl:value-of select="@href" /> 
  </xsl:attribute>
  <xsl:value-of select="." /> 
  </a>
  </li>
  </xsl:when>
- <xsl:otherwise>
- <li>
- <a>
- <xsl:attribute name="href">
  <xsl:value-of select="@href" /> 
  </xsl:attribute>
  <xsl:value-of select="." /> 
  </a>
  </li>
  </xsl:otherwise>
  </xsl:choose>
  </xsl:for-each>
  </ul>
  </div>
  </xsl:template>
  </xsl:stylesheet>

EDIT: im not going to rip your site bro, but i believe your work could teach me some value.
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Dec 12th, 2005, 8:52 PM   #6
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
ok i created a new file and only added this line:

<?xml version="1.0" encoding="ISO-8859-1" ?>

this is my new error:

The XML page cannot be displayed 
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

System does not support the specified encoding. Error processing resource 'file:///C:/site/default.xsl'. Line 1, Position ...

<?xml version="1.0" encoding="ISO-8859-1" ?>
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Dec 13th, 2005, 9:15 AM   #7
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
why not check out: http://www.w3schools.com/xml/default.asp

tones of stuff about learning xml fir the first time.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Dec 13th, 2005, 12:44 PM   #8
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
thanks Pizentios. But i have a big problem with researching and constantly expanding my knowledge. I seem to have lost all free time to do this when i enrolled in college and got a job as a computer programmer.
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Old Dec 13th, 2005, 1:47 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I would suggest that the rate of return (time-wise) from such research as Pizentios alludes to is much greater than piecemeal trips to the forum for detailed information, much of which may be scanty or wrong. Possibly you have yet to acquire the proper techniques.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 14th, 2005, 8:06 AM   #10
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
Thanks you guys, i spent about and hour 1/2 reading that site yesterday. And i have a some working verision of my site in XML/XSL. And still for some reason dameon's code won't run for me, but all well.
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:39 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC