On 08/30/2011 12:43 PM, Maurizio Colizza wrote:
>
> I'am a Phd. Student of University of l'Aquila; my activities research
> regards the Model Driven Architecture. For my activities, I have the
> need to an XML editore wich enables me to write a requirements
> documents , but at the same time to generate a class with a specific
> attribute. I want to give an example:
>
> <Text>If the TxOptions parameter specifies that a GTS transmission is
> required, the MAC sublayer will determine
> whether it has a valid GTS</Text>
Or something more structured like this:
<parameter name="TxOptions" type="boolean" defaultValue="false">
<description>If the <term>TxOptions</term> parameter specifies that a
<term>GTS</term> transmission is required, the
<term>MAC</term> sublayer will determine
whether it has a valid <term>GTS</term>.</description>
<parameter>
>
> I would which this text could be useful for a classic report document,
> but at the same time which the TxOption could be used to generate an
> attribute for a specific class C++ or Java.
>
> Your Editor permit this type of operations?
Sure. More precisely, XML in general permits this kind of operation.
That is, nothing prevents you from creating an XML vocabulary
(parameter, description, term, etc) in order to use it for multiple,
very different, purposes.
This is done as follows:
[1] Use a text editor or an XML editor to author *semantic* XML (as
opposed to MS-Word documents which consist in paragraphs, runs, styles,
etc).
[2] Use XSLT (http://www.w3.org/TR/xslt20/) to convert this semantic XML
to a variety of ``report'' formats (PDF, HTML, RTF, .docx, etc).
[3] Use XSLT or XQuery (http://www.w3.org/TR/xquery/) to extract
information used to annotate and/or generate C++ or Java classes.
However this would be a lot of work (i.e. designing an XML vocabulary,
writing one or more XSLT stylesheets, etc) for a PHD student like you.
We know many people doing this, however these people [1] are generally
paid to do that and [2] generally work for large corporations which, by
using XML, expect a return on investment.
> With your Editor is possible import a Word document to make on it this
> operation?
No, our editor has no MS-Word import facility whatsoever. It only has
``MS-Word export facilities''. See
http://www.xmlmind.com/xmleditor/features.html
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support