|
Paul Watson wrote:
I recommend for pure interest sake that you get into XML and XSL. Check out the sublime feeling when you take an XML data file and transform it into and XHTML doc with XSL, simple but just so cool. Something about it that just rocks.
What do you normally use it for... Personally I probably won't have much use fot XML, XSL etc at the moment but hopefully in the future.. What do you normally use it for.. if you don't mind me asking.
Regards,
Brian Dela
|
|
|
|
|
Brian Delahunty wrote:
What do you normally use it for
Mainly for our content management systems for websites. We store the content in XML files and use XSL to transform it to HTML and then send it to the client browser.
Also recently used XML to power an SVG graph using XSL (an article for CP on that soon.)
XML is also damned nice for app settings (better than an INI file or using the registry.)
XML also makes more sense than a relational database (like SQL or Oracle) when the data is hierarchical.
And finally the thing that XML is used for the most, and which we have done with great joy, is integration. Maybe a legacy accounting package which outputs to CVS and needs to be integrated into a new web site. Using XSL and XML for that is great.
|
|
|
|
|
Cool .Thanks for the info Paul. I know I shoudl know all this stuff already but I just hadn't the time. I didn't even knwo you had XML data files!!! --> How is the data stored in these??? [Please tell me to bugger off If I'm annoying you]
Regards,
Brian Dela
|
|
|
|
|
Brian Delahunty wrote:
How is the data stored in these???
XML is a text format and you just store your XML text in a, well, text file with a .XML extension.
Here is a very simple XML snippet which you can save to brian.xml and have your first XML document/file.
<?xml version="1.0" encoding="utf-8"?>
<cpians>
<cpian id="144040">
<firstname>Brian</firstname>
<lastname>Delahunty</lastname>
<birthdate>01 January 1901</birthdate>
</cpian>
<cpian id="42">
<firstname>Baba</firstname>
<lastname>Jub</lastname>
<birthdate>24 October 1979</birthdate>
</cpian>
</cpians>
In that cpians is the "root" node which contains all other nodes. Then there is a list of cpian nodes, in which are standard elements (fields) like firstname and birthdate .
The id bit is called an attribute btw.
It is really very simple to get the basics in.
|
|
|
|
|
Thanks Paul. Done a bit of reading on it last night.. seems fairly cool.
Regards,
Brian Dela
|
|
|
|
|
Hmm. It didn't work in trillian
No error message - it just refused to load any items.
It could be that you're lacking the line:
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"<br />
"http://my.netscape.com/publish/formats/rss-0.91.dtd">
Which should come between the <?xml version="1.0"?> and <rss version="0.91"> lines
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
benjymous wrote:
It could be that you're lacking the line:
Which should come between the and <rss version="0.91"> lines
I downloaded an RSS feed reader and I noticed my feed was not working. I put in the doctype, but no luck. There is something else going on, as soon as I have fixed it I will upload and you can try again. Seems like RSS is very finicky
Also any idea what DTD URL can I use for RSS 1.0?
|
|
|
|
|
the only thing I can see that might be an issue is the "xmlns:codeproject="http://codeproject.com/webservices/" bit in the rss tag. The rest looks pretty standard to me
Paul Watson wrote:
I downloaded an RSS feed reader
Ooh, can you give me a url? (I've only tested my feed on trillian, so can't be certain it actually works properly)
Paul Watson wrote:
Also any idea what DTD URL can I use for RSS 1.0?
Nope. How about doing a google search for other RSS feeds and see what they use?
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
benjymous wrote:
the only thing I can see that might be an issue is the "xmlns:codeproject="http://codeproject.com/webservices/" bit in the rss tag
God that drove me mad. The xml feed from the CP webservices have that namespace declaration. Now the XSL has to have that namespace declaration to properly access the XML-DOM. At first I did not notice it and I banged my head against the wall trying to figure out why the xsl:for-each was not picking anything up.
But anyway, I removed that namespace decl. from the xml file to see if it was it, but it wasn't (thankfully, otherwise I would have to modify the xml source feed before transform, which is just dirty work.)
benjymous wrote:
Ooh, can you give me a url? (I've only tested my feed on trillian, so can't be certain it actually works properly)
Feedreader[^]
It is actually quite a sweet little app. It reads your RSS feed fine, but not mine.
|
|
|
|
|
Ooh, what about mime type? I use:
"Content-type: text/xml\n\n"
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
We have MFC, ATL, and WTL forums, what about a forum for the non-Microsoft windowing libraries and toolkits?
Jason Gerard
|
|
|
|
|
I suggest that you change the background color of the line that shows a message that the logged in user posted. Sometimes it is diffcult to track down where I have posted and what was a response to my post...
|
|
|
|
|
Ray Cassick wrote:
Sometimes it is diffcult to track down where I have posted and what was a response to my post...
Keep an eye out for your name
Regards,
Brian Dela
|
|
|
|
|
|
|
It would be nice to set a filter on the popularity or score for articles in the sections overviews. Some sections are pretty crowded already.
So I could set the score to 4+ and I see only articles rated 4 or higher. Or popularity <5 (because I dont want to see all top-rated multi-color-edit field articles)
Pleeeeeze?
...make it about Visual C++, and don't ever mention Visual Basic. Nick Hodapp (MSFT) in Semicolon[^]
|
|
|
|
|
The only problem is that you won't see the new articles. And if everybody would set a +4 filter, then no new articles would be rated.
The Romulans are... beyond arrogant.
202.The justification of profit is profit.
|
|
|
|
|
Make it per session for each section? Nice if you are looking for something.
Personally I would also like to do a search and see only results above a certain rating.
...make it about Visual C++, and don't ever mention Visual Basic. Nick Hodapp (MSFT) in Semicolon[^]
|
|
|
|
|
Oooh, so many choices... Ah, who am i kidding, #3's the keeper!
-----
If you really what to get shitfacde tell a crowded bar that is is yourt borthday and hife your wallet. you ka will many more friends.
- David Wulff, Brithday selebrations, 9/19/02
|
|
|
|
|
In case you are wondering I've removed my posts as for some unholy reasons I must have read "Suggestions" as "Soapbox" last night.
Chris is going to have an interesting time figuring out why the hell he is being e-mailed this little conversation.
TOTD: Doubleclicking a personalised menu will remove the personalisation.
|
|
|
|
|
No - I saw your other posts and figured that it was a pretty good achievement that you even managed to post on the right site, let alone the right forum
HOW'S THE HEAD??
Mwahahaha
cheers,
Chris Maunder
|
|
|
|
|
Chris Maunder wrote:
No - I saw your other posts and figured that it was a pretty good achievement that you even managed to post on the right site, let alone the right forum
Luckily I have the lounge mapped to the "Search" key on my Internet Keyboard so I just booted up my PC, mashed the Search button and then selected what I thought said "SoapBox" from the forums list.
At least this year I didn't phone up one of my friends and sing "Oranges and Lemons" to their answerphone...
Chris Maunder wrote:
HOW'S THE HEAD??
Fine - always is: vodka and schnapps don't give you hangovers (thankfully).
TOTD: Doubleclicking a personalised menu will remove the personalisation.
|
|
|
|
|
David Wulff wrote:
vodka and schnapps don't give you hangovers
I'd also highly recommend any quantities of After Shock or Goldschlager (Goldschlager in particular) as having little effect on the head.
Red Wine on the other hand ... I went out a few months ago in London to a bar in Piccadilly, got so pissed on Red Wine its lucky I took the next day off. In the end I sat on the couch in the lounge and watched Cricket all day!
--
Paul
"I need the secure packaging of Jockeys. My boys need a house!"
- Kramer, in "The Chinese Woman" episode of Seinfeld
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
Now wouldnt this be great!
Example:
Lounge: set to last visit
Regular ones: last day
Less regular: last week
All others: show all
Give them a chance! Do it for the kittens, dear God, the kittens!
|
|
|
|
|
Sorry about the thread title.
Just noticed now that when you log into one code project domain names. e.g. www.codeproject.com and then go to another of codeprojects domain names.. www.codetools.com it doesn't recognise that your logged in on the second one.
Any way of getting this fixed
Regards,
Brian Dela
|
|
|
|