Lyndon Samson
4/15/2005 7:32:00 AM
On 4/15/05, Mark Hubbart <discordantus@gmail.com> wrote:
> On 4/14/05, David Mitchell <monch1962@gmail.com> wrote:
> > On Fri, 15 Apr 2005 09:31:59 +0900, Hal Fulton wrote:
> >
> > > ..OldCloth, NewCloth? (Sorry, I went to a Dr. Seuss exhibit
> > > here in town.)
> > >
> > > I want to know what's the best way to manage a file that has
> > > both text and HTML versions. (Yes, I'm talking about the
> > > comp.lang.ruby FAQ, which should autopost tomorrow.)
> >
> > I realise this is the Ruby newsgroup and it's the Ruby FAQ you're talking
> > about, but you could maintain a single XML-based version and use XSLT to
> > extract both text and HTML (and just about any other format you care to
> > mention) using tools that are on every modern Windows PC or Linux system.
>
> ow ow ow. Maybe it's just me, but maintaining a large document like
> the FAQ in xml seems masochistic, when there are nice human readable
> formats like markdown or textile around.
>
> > Downside - no Ruby required...
>
> Actually, I suspect the tools for markdown and textile are more widely
> available than you think. I know that if I was handed an xml/xslt
> combo doc, and a markdown doc, I'd have a much better idea of what to
> do with the markdown one. And I could do it in Ruby, Perl, Python,
> PHP, or even paste it into a web form, to get the html out.
>
> cheers,
> Mark
>
>
<faq>
<contact>
</contact>
<questions>
<question>
<asked>Why is ruby sooo nice?</asked>
<answered>PoLS</answered>
<question>
<questions>
</faq>
Looks pretty neat to me, and maintainable, and you can do all sorts of
re-organisation/filtering ( with XSLT ) and querying (XPath/XQuery et
al) as well. Plenty of GUI/Web tools to let you view/edit as a tree if
you are that way inclined otherwise VIM and Emacs have support for XML
editing.
--
Into RFID? www.rfidnewsupdate.com Simple, fast, news.