[RFC] Using tidy to clean up profiles.

Thomas Pegg thomasp at linuxfromscratch.org
Tue Jun 22 18:35:33 PDT 2004


On Tue, 2004-06-22 at 20:20, Kevin P. Fleming wrote:
> Thomas Pegg wrote:
> 
> > As suggested by Kevin in a previous thread, I've looked into using tidy
> > on the xml of the profiles to clean them up and standardize the
> > formatting. I have commited a few examples in the BLFS profile. In
> > paticular in chapter04 heimdal.xml and mitkrb.xml are two files, that
> > have been run through tidy. I did it only a few files, before a change
> > like this was committed profile-wide.
> 
> Those look very nice to me, that's what I was hoping tidy would be able 
> to do.
> 
> > The entity reference issue is still a slight problem, the easiest way
> > I've found to deal with it is sed the &'s back to an &. Around 95%
> > of the time this works well except were there are actual &'s, in
> > which case those have to be changed back manually, but since it's in a
> > minority of the files, it's not a big problem. And really all files have
> > to be run through tidy one time I think.
> 
> The solution I proposed before would work, but not until after the BLFS 
> profile is converted to use XInclude. For profiles that are using 
> XInclude, you can define an entity "real-amp" in general.ent that 
> produces an ampersand (just like & does), and then use that instead. 
> Tidy will mess with the leading ampersand of this entity reference too 
> (since it's not a standard entity), but doing a sed from & back to & 
> would fix it right back up, without any hand editing needed.
XIncludes are the next thing on the list. Updates for 5.1 are pretty
much complete, still gotta go back and verify that things are the way
they should be. The entity thing sounds like a good solution I take it
would look something like this:
<!ENTITY real-amp "&">  right??

-- 
Thomas 
LFS User : 4729 
Linux User : 298329 
warpcore - 20:30:34 up 1 day, 2:37, 1 user, load average: 0.96, 0.52,
0.26
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20040622/0a0047c0/attachment.sig>


More information about the alfs-discuss mailing list