cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conal Tuohy" <Conal.Tu...@vuw.ac.nz>
Subject RE: Version $Id$ style for xml files (Was: SVN behaviour with "Id" keyword)
Date Tue, 01 Feb 2005 21:35:03 GMT
> Tim Larson wrote:
> 
> > As part of my effort to keep whiteboard/forms mergeable,
> >
> >I am fixing a bunch of Id's and ran across a minor issue.
> >How do we want to mark the version in xml files?  There
> >is quite a variety+possibilities:
> >  CVS $Id$
> >  SVN $Id$
> >  <!--+
> >      | $Id$
> >      +-->
> >  Version $Id$
> >  version $Id$
> >  @version $Id$
> >  etc...
> >Could we pick a style, and then I will make the files I
> >happen to touch match it?
> >
> >--Tim Larson
> >  
> >
> I only see one choice that is within a comment. How do the 
> others keep 
> from breaking the document?

What about a processing instruction? 
<?version $Id$?>

This has the advantage over a comment that it can be retrieved unambiguously with an XPath
query: 
"processing-instruction('version')" 

Cheers

Con

Mime
View raw message