You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2010/01/20 20:58:54 UTC
[jira] Updated: (PIVOT-385) Provide DTD for wtkx in the
distribution and use DTD reference in examples/documentation
[ https://issues.apache.org/jira/browse/PIVOT-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown updated PIVOT-385:
-----------------------------
Affects Version/s: (was: 1.4)
Fix Version/s: 1.5
We agree that a DTD would be valuable, particularly for auto-complete in an IDE. However, a DTD is not strictly necessary to understand what elements are available in WTKX. WTKX is simply a shortcut to creating Java class instances in code. In other words, you can essentially use Javadoc as an ad-hoc DTD.
XML namespaces are used to import packages into WTKX. Any class in an imported package that adheres to JavaBean naming conventions (and optionally other WTKX-specific conventions) can be used in a WTKX file that declares a namespace for that package. For example, the following XML namespace declaration would make all JavaBean classes in com.foo.bar available in a WTKX file:
xmlns:foo="com.foo.bar"
The WTKX Primer describes in more detail how this works:
http://pivot.apache.org/tutorials/wtkx-primer.html
> Provide DTD for wtkx in the distribution and use DTD reference in examples/documentation
> ----------------------------------------------------------------------------------------
>
> Key: PIVOT-385
> URL: https://issues.apache.org/jira/browse/PIVOT-385
> Project: Pivot
> Issue Type: New Feature
> Components: wtk-wtkx
> Environment: N/A
> Reporter: Edvin Syse
> Fix For: 1.5
>
>
> Editing .wtkx-files would be much easier, especially for new users if a DTD was available. It has put me off trying pivot for some time, and I'm sure others also feel this way as well :)
> If the examples on http://pivot.apache.org also include a reference to the DTD, I'm sure this would be very positive for adoption.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.