|
The site you are on is very good, Code Project.
Also 4GuysFromRolla.com.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
softp_vc wrote:
do it asap
Jawohl mein Kommandant!
|
|
|
|
|
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
|
|
|
|
|
yes
the problem is with ur xsl.
you wrongly refering to the actor element
just replace the following code for ur Actor.
here ur are refering to the path Cast/Actor and again in value-of select also you are refering to "Actor" which is not correct. becuase when u refer to Cast/Actor it points to actor only so now u can just use a . (dot) to represent the same.
or u can use text() function to get the text value.
Actors:
<xsl:for-each select="Cast/Actor">
<DIV>
xxx<xsl:value-of select="."/>ZZZ
</DIV>
</xsl:for-each>
or
Actors:
<xsl:for-each select="Cast/Actor">
<DIV>
xxx<xsl:value-of select="text()"/>ZZZ
</DIV>
</xsl:for-each>
Harinath
Cybernet software systems pvt. ltd.
3, Bishop wallers avenue east,
mylapore
chennai
India-600004
|
|
|
|
|
yeah, thanks for the help on that one
works fine now
|
|
|
|
|
Hi,
I am using MSDE Deployment Toolkit (RC) to distribute the MSDE2000 along with my application. I worked great at the beginning. Later, when I run the MSDEBootStrap Setup, it installs the MSDE correctly, but it doesn't show up the main installation screen after installing the MSDE. When I try to invoke the setup again, it says MSDEBootStrap.exe is already running. When I close it and run again, then it doesn't recognize the already installed MSDE and asks for the installation again. When I click the MSDE install, it actually starts uninstallation. I don't know what would be the reason. I tried with installing latest toolkit & MSDE2000, but still getting the same problem.
Does anybody have any idea?
Your help is greatly appreciated.
Thanks,
-Murthy
MurthyPL
|
|
|
|
|
i have a basic piece of HTML, including:
<A NAME='SPECIMEN1'></A>
near the top, and
<A HREF='#SPECIMEN1'>1</A> near the bottom.
when i open the HTML in IE6 the link works fine. however when i open the HTML in a IE6 control, described as:
Pointer to ActiveX COM object, in this case a IE explorer object.
in a comment in the C++ code, clicking on the link results in a white page with the single line:
blank#SPECIMEN1
at the top. inspired by the error message i have also tried <A NAME='SPECIMEN1'>fred</A> at the top of the HTML, but this produces exactly the same error.
does anyone have any ideas for what i can do to fix this? so far i haven't had any success at google
|
|
|
|
|
after this started to crash on valid HTML i have discovered the problem isn't with the HTML, it is somehow caused by the way the HTML is being fed into the IE control.
by using a different function to feed the HTML into the IE control both the crash and the HREF problem have been fixed
|
|
|
|
|
VS.Php is a plug in for Visual Studio .Net 2003 that allows to build php applications. It provides all the key components of other languages supported by Visual Studio .Net like syntax coloring and checking, intellisense, integrated help and much more. VS.Php integrates Php into Visual Studio .Net 2003. It is the best Php ide by providing all the features of the best IDE in the world to the Php developers. This is the Php IDE you have been waiting for!
VS.Php - Php editor for Visual Studio .Net 2003
|
|
|
|
|
whilst php is my day to day tool and this is possibly very interesting for me i still think this counts as an advert for your product and as such SHOULD NOT BE ON THE FORUMS dammit!!!
please do it properly or you will get a very neagtive impression here
"there is no spoon" biz stuff about me
|
|
|
|
|
You beat me to it
I wanted to rip into him, but figured i'd go for lunch first...
Although i'm interested...I think now i'll just get it off Kazaa instead...
Cheers
How do I print my voice mail?
|
|
|
|
|
|
Regards,
Tiruvan
|
|
|
|
|
boo
How do I print my voice mail?
|
|
|
|
|
I was wondering if anybody knew of some code on how to update a website's contents, such as news, easily (no formatting and such) without having to develop a database-driven website? I want to make a webpage for the members to update the site without needing to understand the formatting to it though. They neter in simple text in a form (like this message board) and submit and the news contents of their site is automatically updated next time anybody uses it. Any ideas? Free please, of course.
Who am I?
Currently: A Programming Student trying to survive school with plan to go on to Univeristy of Advancing Technology to study game design.
Main career interest include: Multimedia and game programming.
Working on an outside project: A game for the GamePark32 (GP32) portable gaming console.
My website: www.GP32US.com
|
|
|
|
|
see the problem u have is that the data they enter has to be stored somewhere so it doesnt get lost ... databases are the most efficient way to do that ... files are just not good for that in the web environment
there are a number of free db engines out there and building a simple cms is really very easy
"there is no spoon" biz stuff about me
|
|
|
|
|
If you cant use a DB (although I would strongly recomend it) I would use XML files..
You can almost simulate a DB with the use of XML files if used properly..
I cannot provide any code for that coz my implimentations all use some sosrt of RDBMS, but I am sure that you can use XML.
theJazzyBrain
Excelence is not an act, but a habit Aristotle
|
|
|
|
|
Does anybody know how to change the inside background of radio button, using css or something like that. Thanks. I am talking about the very inside color, not about the color which is around it. Thanks
|
|
|
|
|
Does anybody know how to change the inside background of radio button, using css or something like that. Thanks. I am talking about the very inside color, not about the color which is around it. Thanks
|
|
|
|
|
I could possibly give you an idea if I understood what you just said
I don't think you can change anything about radio buttons except whether they have a border or not...so your only option is probably use 2 images as a substitue instead
Cheers
How do I print my voice mail?
|
|
|
|
|
Hello.
A question to all of you programmers out there.
We want to use ooWriter from OpenOffice on the web.
This would be just like any type of webmail. The idea is to use the program on the web.
Its possible to view OpenOffice word documents today using the Internet Explorer in windows using ActiveX, but what we want is to be able to edit in the explorer also. Also we want the ability to use all of ooWriters functions in the explorer.
The OpenOffice engine for this we would put on a server, and all thats needed would be the use of an IE as a client.
The idea is very similar to a web-mail or a web based program, but we want to use the OpenOffice GUI.
Any ideas on this is welcome
Locktotten...
|
|
|
|
|
Can someone direct me to step by step directions on how-to setup my computer (.Net 2002. W2K)so I can begin playing with web applications. I have IIS installed & running along with all the .NET options from the setup. I create a simple asp.net application. I add just a label. When I try to run it (f5) it complains about the debugger. If I start without debugging, I just get unformatted text. I must have the setup messed up.
|
|
|
|
|
Hey, I think .NET Framework hasn't been installed on your computer
Do you want a loans with good services? Do you want to improve your finance?
This web site will be helpful
www.c-loans.com
You will love our services!
|
|
|
|
|
Thanx a lot. I'll try this without fall. Also I want to ask you some more - I want to send a request to the server's php page, through my WinForm application, I use code like this
Uri u = new Uri(@"http://www.umc.ua/misc/sendsms.php");
WebRequest req = WebRequest.Create(u);
req.ContentType = "application/x-www-formurlencoded";
req.Method = "POST";
req.Timeout = 300000;
req.Headers.Add("network1","UMC");
req.Headers.Add("Phone1","5918658");
req.Headers.Add("network2","UMC");
req.Headers.Add("Phone2","");
req.Headers.Add("network3","UMC");
req.Headers.Add("Phone3","");
req.Headers.Add("Message","HellofromCSharp");
req.Headers.Add("sender_name","sn");
WebResponse res =req.GetResponse();
text.Text = req.Headers.ToString();
StreamReader sr = new StreamReader(res.GetResponseStream(),Encoding.UTF8);
string str = sr.ReadToEnd().ToString();
RES_text.Text = str;
res.Close();
But my application fails with Timeout expired bug. So could you tell me were the problems is? How can I send data to php page in C# code using POST method? Thanx.
www.xedom.com
|
|
|
|
|
can you have a method return a datareader in a web service? i thought it was not serilizable???
|
|
|
|