homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum


5+ Year Member

Msg#: 3901041 posted 5:38 pm on Apr 26, 2009 (gmt 0)

Hi all,

I am a beginner learning XML.

I have created the following XSL file:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org" version = "1.0">
<xsl:template match = "/">
<xsl:for-each select = "MARKS/CORE">
<xsl:text>MARK IN SUBJECT 1</xsl:text>
<xsl:value-of select = "M1"/>

And the following XML file :

<?xml version ="1.0"?>
<?xml-stylesheet type="text/xsl" href = "Trial.xsl"?>

But when I run the above file in the browser it is just displaying the text "Mark in Subject 1" but the value of m1 is not displayed can any one identify the changes I should make to get the correct output.

Please help me out.

Thanks in advance!



5+ Year Member

Msg#: 3901041 posted 5:31 am on Apr 27, 2009 (gmt 0)

Can anyone identify any error?

Please reply


WebmasterWorld Administrator httpwebwitch us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3901041 posted 11:09 pm on Apr 27, 2009 (gmt 0)

Hi s2009, Welcome to WebmasterWorld!

The code above looks perfect to me. Visually. Unless someone else jumps in with advice, I'll try running it through a parser tomorrow to see what gives.

In the mean time, I'll recommend that you get yourself one of those nifty XSLT debugging tools - there are several to choose from if you search for "xslt software". Grab a trial version and give it a whirl.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved