info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML Schema and DTD for CVS Info in XML files?


From: Deron Meranda
Subject: Re: XML Schema and DTD for CVS Info in XML files?
Date: Tue, 11 Mar 2003 17:48:50 -0500 (EST)

> Currently, we use the following approach to use CVS information in XML files:
> ...
> <!--
>   - $Log$
>   -->


Comments also don't work well because the "--" (hyphen-hyphen)
sequence is illegal in XML comments.  In fact, even with elements you
probably need to use CDATA escapes.  I would definitely place a $Log$
inside an element body, as in

   <cvs:log><![CDATA[
   $Log$
   ]]></cvs:log>

Other tags could probably either be inside attributes or elements,
depending upon how structured the value is.

I do agree that XML namespaces should be used.

One big problem with automatically inserting text into a document is
that of character sets.  What if the XML document uses UTF-16 rather
than UTF-8 or even ISO-8859-15?  But I don't know if that is easily
solved.  Of course XML basically dictates that UTF-8 is the default
unless its either explicitly specified or it can be automatically
detected to be something else.

-- 
Deron Meranda




reply via email to

[Prev in Thread] Current Thread [Next in Thread]