![]() |
|
|
|
#1 |
|
Before you go suggesting an xml group, I did check them and none of them
appear to be all that active. At least not on my server. Then which one of the hundred would be appropriate? What is the proper way to include the date stamp? I have been looking and can't seem to find any thing that clearly shows how to do it. richard |
|
|
|
|
#2 |
|
Posts: n/a
|
"richard" <> wrote in message
news:... > Before you go suggesting an xml group, I did check them and none of them > appear to be all that active. At least not on my server. > Then which one of the hundred would be appropriate? > > What is the proper way to include the date stamp? > I have been looking and can't seem to find any thing that clearly shows > how > to do it. XML is just a way to describe data electonically in a textual format, it doesn't define how you should format dates etc. The wikipedia page does a good job explaining just what XML is and isn't: http://en.wikipedia.org/wiki/XML There are some *recommended* ways to do it however: http://www.hackcraft.net/web/datetime/#xsd http://posc.org/ebiz/pefxml/patternsobjects.html#date Nik Coughlin |
|
|
|
#3 |
|
Posts: n/a
|
On 2 Nov, 06:09, richard <mem...@newsguy.com> wrote:
> Then which one of the hundred would be appropriate? comp.text.xml > What is the proper way to include the date stamp? XML is just a transport protocol, not an application. Although it's widely thought that "anything written in XML can be read by anything that understands XML", this is a misleading falsehood. XML is just the starting point, you also need both parties to agree on a shared vocabulary, which in XML terms would be the "schema". If the schema has a property that needs date/time as a value domain, then the schema will indicate how to encode this. If you don't follow that, then things will break. If you haven't yet selected a schema, then choose one. It's better to adopt an existing and widely-used schema than it is to create a new one. Even if you create the most perfect schema ever, the advantge (for internet work) is in _communication_ between pre-existing and pre- understood tools, not in creating new ones specific to your own project. If you're looking at page metadata, then reading about "Dublin Core" would be a very good start. If you want to embed metadata into web pages, then RDFa or even Microformats might be useful to learn about. Now, how to represent date/time in XML. There are two ways, one is to break down the components as separate XML nodes (i.e. element content or attribute values), but this is needlessly verbose and very rarely done these days. The other, far more widely used, is to represent "date/time" as a single string and place that anywhere into yoru XML, as either an element's content or an attribute's value. The "XML format" problem now turns back into the old "date/time string format" problem. There are two popular solutions to this: RFC822 and ISO8601, which are easily worked with and converted between, but are different. Both are "widely used" (they're not going away anytime soon), but I'd suggest ISO8601. RFC822 is the older pre-web Internet format for date/time and it's still used in email messages accordign to RFC822 ISO8601 is a newer "web era" format and is favoured by the W3C, thus more widely used for web content. Both of these follow the "generate precisely, consume flexibly" approach. They're non-trivial formats and there are lots of aspects you can use, but don't always have to. However anything that parses them ought to understand the full format and deal with all the complexities (any sensible langauge will already have parsing routines, you don't need to write these). Please indicate the timezone on all of your generated date/time timestamps. It's a big world out there. Learn the distinction between 00:00 UTC midnight and something that's purely a date stamp, or that indicates "local midnight", regardless of timezone. This makes integration of worldwide systems a lot easier, if you're clear about it up-front. Andy Dingley |
|
|
|
#4 |
|
Posts: n/a
|
On Nov 2, 7:09*am, richard <mem...@newsguy.com> wrote:
> Before you go suggesting an xml group, I did check them and none of them > appear to be all that active. At least not on my server. > Then which one of the hundred would be appropriate? > > What is the proper way to include the date stamp? > I have been looking and can't seem to find any thing that clearly shows how > to do it. In OOWriter I saved a file in DocBook (.xml) format. Then your saved file starts with: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> On http://www.oasis-open.org/home/index.php I did a search with "time stamp": http://search.oasis-open.org/_result...Button=Go#1128 http://docs.oasis-open.org/dss/v1.0/...#_Toc159076065 and found: <quote src="http://docs.oasis-open.org/dss/v1.0/oasis-dss-core-spec- v1.0-os.html#_Toc159076065"> The <AddTimestamp> element indicates that the client wishes the server to embed a timestamp token as a property or attribute of the resultant or the supplied signature.</quote> Jan C. Faerber |
|
|
|
#5 |
|
Posts: n/a
|
On Sun, 1 Nov 2009 23:09:38 -0700, richard wrote:
> Before you go suggesting an xml group, I did check them and none of them > appear to be all that active. At least not on my server. > Then which one of the hundred would be appropriate? > > What is the proper way to include the date stamp? > I have been looking and can't seem to find any thing that clearly shows how > to do it. forget that. I found out how to do it in php much easier. using the date() thingy. http://1littleworld.net/code/date1.php richard |
|
|
|
#6 |
|
Posts: n/a
|
On Nov 2, 9:21*am, Sherm Pendley <spamt...@shermpendley.com> wrote:
> > Before you go suggesting an xml group, I did check them and none of them > > appear to be all that active. > That doesn't make XML on-topic here. But being a dick does? alt.html is for all things web, not just HTML Travis Newbury |
|
|
|
#7 |
|
Posts: n/a
|
On Nov 3, 9:10*am, Sherm Pendley <spamt...@shermpendley.com> wrote:
> >> That doesn't make XML on-topic here. > > But being a dick does? > If it did, XML would be on-topic in every group you post in. > Bye bye asshole. *plonk* Oh please Shemp don't plonk me... Noooooo I am melting..... melting.... Whoa is me..... What a world... what a world..... Travis Newbury |
|
|
|
#8 |
|
Posts: n/a
|
In article
<03c6fce1-ec41-4a01-91d0->, Travis Newbury <> wrote: > On Nov 3, 9:10*am, Sherm Pendley <spamt...@shermpendley.com> wrote: > > >> That doesn't make XML on-topic here. > > > But being a dick does? > > If it did, XML would be on-topic in every group you post in. > > Bye bye asshole. *plonk* > > Oh please Shemp don't plonk me... Noooooo I am melting..... > melting.... Whoa is me..... What a world... what a world..... Hey! This is like the good old days, a bit of fire and spirit coming back in. Subscribers rattling the keys to their killfiles, others pretending to be unaffected (c'mon Travs, admit it, you are hurt to the quick!) I have said this before, being a keen student of Sherm's plonking behaviour, he is a softie underneath and you will be out of there in no time at all. <g> God, what next? I know, Luigi will come back! -- dorayme dorayme |
|
|
|
#9 |
|
Posts: n/a
|
On Mon, 02 Nov 2009 09:21:47 -0500, Sherm Pendley
<> wrote: >richard <> writes: > >> Before you go suggesting an xml group, I did check them and none of them >> appear to be all that active. > >That doesn't make XML on-topic here. > That doesn't make XML off-topic here. Raymond Schmit |
|
|
|
#10 |
|
Posts: n/a
|
On 03 Nov 2009, Sherm Pendley <> wrote:
> Travis Newbury <> writes: > >> On Nov 2, 9:21*am, Sherm Pendley <spamt...@shermpendley.com> wrote: >>> That doesn't make XML on-topic here. >> >> But being a dick does? > > If it did, XML would be on-topic in every group you post in. > > Bye bye asshole. *plonk* Ah, pay no attention to Travis. He can't help it; he was born that way. -- Neredbojias http://www.neredbojias.org/ http://www.neredbojias.net/ Neredbojias |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| InCD Date/Time Stamps (Latest Nero) | Ian Edmont | Computer Support | 4 | 09-14-2006 04:07 PM |
| Access Date/time to SQL to only show Date | Whothehell | Software | 2 | 07-27-2006 06:11 PM |
| Re: How to fix Outlook flag feature problem; printing date/time stamp consistently on any computer. | Kadaitcha Man | Computer Information | 2 | 02-20-2005 10:05 PM |
| Netgear DM602 ADSL modem and date/time | nemo2 | Computer Support | 0 | 06-28-2004 07:20 PM |
| No daylight savings checkbox in my date/time control panel in winXP | Jim Kroger | Computer Support | 2 | 10-14-2003 10:55 PM |