Click here to Skip to main content
15,914,943 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: common problem, multiple clicks Pin
r i s h a b h s11-May-04 23:42
r i s h a b h s11-May-04 23:42 
Generalregular expression pls Pin
harinath2-May-04 20:09
professionalharinath2-May-04 20:09 
GeneralRe: regular expression pls Pin
Hesham Amin3-May-04 0:11
Hesham Amin3-May-04 0:11 
GeneralHelp in getting started in Web Programming Pin
softp_vc30-Apr-04 23:35
softp_vc30-Apr-04 23:35 
GeneralRe: Help in getting started in Web Programming Pin
Hesham Amin3-May-04 0:20
Hesham Amin3-May-04 0:20 
GeneralRe: Help in getting started in Web Programming Pin
Paul Watson3-May-04 1:55
sitebuilderPaul Watson3-May-04 1:55 
GeneralRe: Help in getting started in Web Programming Pin
Terry O'Nolley10-May-04 15:34
Terry O'Nolley10-May-04 15:34 
GeneralXML XSL problem Pin
Mortis30-Apr-04 3:40
Mortis30-Apr-04 3:40 
Hey,
I'm trying to write a basic Video shop XMLS webpage/database
and i'm havin a slight problem with the XSL. just wondering if someone would mind pointing out my probably obvious mistake
heres the code:
//XML
<VideoShop>
<StoreName>Mikeys Video Shop</StoreName>
<Film>
<Name>Kill Bill 2</Name>
<Genre>Action</Genre>
<Type>DVD</Type>
<Price>4.99</Price>
<Rating>18</Rating>
<Cast>
<Actor>Uma Thurman</Actor>
<Actor>Lucy Liu</Actor>
</Cast>
</VideoShop>
//DTD
<!ELEMENT Film (FilmName,Genre, Type,Price,Rating,Cast)>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT Type (#PCDATA)>
<!ELEMENT Price (#PCDATA)>
<!ELEMENT Rating (#PCDATA)>
<!ELEMENT Cast (Actor+)>
<!ELEMENT Actor (#PCDATA)>
//XSL
<?xml version='1.0' encoding="ISO-8859-1"?>
<html xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns="http://www.w3.org/TR/xhtml1/strict">

<body style="font-family:Modern; font-size:large; color:gold; background-color:teal" >

<Table border="1" width="50%" align="left" cellpadding="2" cellspacing="15">
<xsl:for-each select="VideoShop">
Videos available at:
<xsl:value-of select="StoreName"/>
</xsl:for-each>
<TR width="25%">


<xsl:for-each select="VideoShop/Film">
<TD>
<DIV style="margin-left: 5%;">
<SPAN>
<xsl:value-of select="Name"/>
(<xsl:value-of select="Type"/>)
</SPAN>
</DIV>
<DIV style="margin-left: 7%;">
<SPAN>
Genre:
<xsl:value-of select="Genre"/>
</SPAN>
</DIV>
<DIV style="margin-left: 9%">
<SPAN>
Price:
<xsl:value-of select="Price"/>
</SPAN>
</DIV>
<DIV style="margin-left: 11%;">
<SPAN>
Rating:
<xsl:value-of select="Rating"/>
</SPAN>
</DIV>
<DIV style="margin-left: 13%;">
<SPAN>
Actors:
<xsl:for-each select="Cast/Actor">
<DIV>
xxx<xsl:value-of select="Actor"/>ZZZ
</DIV>
</xsl:for-each>

</SPAN>
</DIV>
</TD>
</xsl:for-each>

</TR>
</Table>

</body>
</html>

////////////////////////////////////
The problem is in the XSL i think, it doesnt print a list of the actors, only xxxZZZ howevery many times i put actors in that film

any help greatly appriciated

GeneralRe: XML XSL problem Pin
harinath2-May-04 20:45
professionalharinath2-May-04 20:45 
GeneralRe: XML XSL problem Pin
Anonymous2-May-04 23:45
Anonymous2-May-04 23:45 
GeneralMSDE Deployment Toolkit problem... Pin
MurthyPL29-Apr-04 11:45
MurthyPL29-Apr-04 11:45 
GeneralHREF fails in IE control Pin
feline_dracoform29-Apr-04 6:50
feline_dracoform29-Apr-04 6:50 
GeneralRe: HREF fails in IE control Pin
feline_dracoform30-Apr-04 1:46
feline_dracoform30-Apr-04 1:46 
GeneralVS.Php - Php editor for Visual Studio .Net 2003 Pin
Jcx.Software29-Apr-04 1:50
sussJcx.Software29-Apr-04 1:50 
GeneralRe: VS.Php - Php editor for Visual Studio .Net 2003 Pin
l a u r e n29-Apr-04 8:34
l a u r e n29-Apr-04 8:34 
GeneralRe: VS.Php - Php editor for Visual Studio .Net 2003 Pin
alex.barylski29-Apr-04 9:12
alex.barylski29-Apr-04 9:12 
GeneralRe: VS.Php - Php editor for Visual Studio .Net 2003 Pin
l a u r e n29-Apr-04 9:14
l a u r e n29-Apr-04 9:14 
GeneralRe: VS.Php - Php editor for Visual Studio .Net 2003 Pin
srt729-Apr-04 10:38
srt729-Apr-04 10:38 
GeneralRe: VS.Php - Php editor for Visual Studio .Net 2003 Pin
alex.barylski29-Apr-04 9:13
alex.barylski29-Apr-04 9:13 
QuestionSome kind of code for easily updating a webpage without being database-driven? Pin
nssone28-Apr-04 12:29
nssone28-Apr-04 12:29 
AnswerRe: Some kind of code for easily updating a webpage without being database-driven? Pin
l a u r e n28-Apr-04 14:35
l a u r e n28-Apr-04 14:35 
AnswerRe: Some kind of code for easily updating a webpage without being database-driven? Pin
theJazzyBrain28-Apr-04 21:41
theJazzyBrain28-Apr-04 21:41 
GeneralCSS RADIO BUTTON Pin
Anonymous28-Apr-04 4:49
Anonymous28-Apr-04 4:49 
GeneralCSS RADIO BUTTON Pin
wst3328-Apr-04 4:48
susswst3328-Apr-04 4:48 
GeneralRe: CSS RADIO BUTTON Pin
alex.barylski29-Apr-04 9:15
alex.barylski29-Apr-04 9:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.