Date: Thu, 20 Sep 2001 14:15:57 +0100 From: Nik Clayton <nik@freebsd.org> To: Josef Karthauser <joe@tao.org.uk> Cc: Chris Costello <chris@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: www/en/news news.xml newsflash.xsl press.xml press.xsl Message-ID: <20010920141557.F1162@clan.nothing-going-on.org> In-Reply-To: <20010920135417.I52323@tao.org.uk>; from joe@tao.org.uk on Thu, Sep 20, 2001 at 01:54:17PM %2B0100 References: <200109201143.f8KBhVk53054@freefall.freebsd.org> <20010920135417.I52323@tao.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--NyVXgNZ34wipDCDo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 20, 2001 at 01:54:17PM +0100, Josef Karthauser wrote: > On Thu, Sep 20, 2001 at 04:43:31AM -0700, Chris Costello wrote: > > chris 2001/09/20 04:43:31 PDT > > Modified files: > > en/news news.xml newsflash.xsl press.xml=20 > > press.xsl=20 > > Log: > > Implement the `cvs' namespace as first tested in the Status Reports > > section. >=20 > What's http://www.FreeBSD.org/XML/CVS? It doesn't appear to exist. It doesn't need to. XML namespaces are used to associate tokens to element prefixes. I might write <cvs:keyword xmlns:cvs=3D"http://foo.bar.com/"> in one document, and=20 <frob:keyword xmlns:frob=3D"http://foo.bar.com/"> in another document. To an XML processer, "<cvs:keyword>" and "<frob:keyword>" are the same element -- although the prefixes ("cvs:" and "frob:") differ, the two prefixes are tied to the same namespace. The namespace is uniquely identified by the URI. In this example, that URI is "http://foo.bar.com/". There's no requirement that the URI also be a URL (or a valid URL). We could just as easily write ... xmlns:cvs=3D"My unique namespace" ... and as long as all the other documents use the string "My unique namespace" in the declarations everything would be fine. There's no standard for generating URIs, although many people use URLs. Some of these URLs are active (i.e., they point at an actual document), some aren't, like the ones Chris committed. I'm talking to the CVS maintainers at the moment about trying to propogate the use of the :keywords and :keyword elements. I expect the final URI will then be http://www.cvshome.org/xmlns/CVS/Keywords/ And we can change our docs appropriately as and when. The benefit of doing this is that we then have a standard way to mark up CVS keywords in any XML document, irrespective of the document's schema. You will be able to write <cvs:keywords xmlns:cvs=3D"http://www.cvshome.org/xmlns/CVS/Keywords/"> <cvs:keyword name=3D"id">$Id$</cvs:keyword> </cvs:keywords> XSL stylesheets can then be written that know what the "keywords" and "keyword" elements in the namespace=20 "http://www.cvshome.org/xmlns/CVS/Keywords/" mean. N --=20 FreeBSD: The Power to Serve http://www.freebsd.org/ FreeBSD Documentation Project http://www.freebsd.org/docproj/ --- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 --- --NyVXgNZ34wipDCDo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjup7AwACgkQk6gHZCw343V3yQCcDVy3L3nOmx+n9t1foMDvhWzN p/0AoJKiPKrsbF0zEz9mImc6EDj3hjPb =I/hz -----END PGP SIGNATURE----- --NyVXgNZ34wipDCDo-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010920141557.F1162>