![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#2 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#3 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#4 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
With your post, I mean.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#5 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#6 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() |
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! |
|
|
|
|
|
#8 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#9 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#10 |
|
Expert Programmer
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|