I created a Fusedoc schema a while back and have just never got around to
doing anything with it. The coolest thing about creating a schema to
represent information is that if used inside an environment which can
display the XML visually, ( XMLSpy 3.5 ) you can automate most of the
writing and "poor" readability issues.
In CF Studio, when you type <cf... tag insight and auto-completion start
kickin in to help you out. Writing Fusedoc's in Studio cannot take
advantage of this and so you end up creating a blank snippet or using that
awesome script to insert attributes. If you create your fusdocs in an
environment which can parse and visually display them, you can create psuedo
tag insight auto-completion to speed the process up.
so imagine you type:
<ATTRIBUTES>
<query
you would end up with this:
<ATTRIBUTES>
<query label="_-query name-_" IO="in"
because in my schema I can assign attributes and default values.
An idea I had on this topic was automation. I thought it would have been
easier to create automation scripts based on XML simply because of the DOM
and XPath components already built into the XML standards. Meaning you have
access to a whole shwack load of methods to get at elements, attributes and
values contained within.
The only issue for me was cost of a nice XML editor and requiring the use of
ONE more program to get your job done. It is a hassle to separate the
generation of fusedocs and their subsequent maintenance. In that if you
generate all your fuse stubs based on your xml fusedocs, updating the xml
version becomes an issue if you want them to reflect the same information,
you would need another process to synchronize them.
Lastly, I found that doing all the XML parsing in CF was painful considering
programs like Flash 5 have all the parsing functionality BUILT in, whereas
in CF you have to do all the work. Not a bad thing, just painful to get
going.
I can send you the schema I created if you'd like.
Cheers,
Emilio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists