[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Script to de-minimize tags like <tt/this/
> > (Were things
> > like <tt>foobar</> ever legal mimimizations as well?)
>
>
> The <tt>foobar</> minimisation is valid SGML, but not valid XML. Seeing that
> DocBook is rapidly moving to XML, we should be writing our SGML with that in
> mind.
Ok - if people have SGML with <tt>booger</> style shortcuts the sed
script
to change them to <tt>booger</tt> should look like:
sed 's/<\([a-z]\+\)>\([^\/]\+\)<\/>/<\1>\2<\/\1>/g'
Sufficient to frighten small children, but functional none the less...
Paul.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To UNSUBSCRIBE, email to ldp-discuss-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org