A reader-submitted question about the wording of a tutorial. I think he's right but will investigate before posting correction.
http://forum.openlaszlo.org/showthread.php?p=27800&posted=1#post27800
Okay, I'm brand new to openLaszlo and, while I understand the basics of XML and DTDs, I'm not an expert. So, this is a serious question. I'm going through the online tutorial, and it's very well written. I'm a little confused, though, about the following quote from Chapter 12 Section 2:
Quote:
Since the <button> can take a text childnode that becomes its label, the <SpecialButton> class that extends it can also take the text childnode. The method changeLabel() is also inherited by the instance.
Here's the instantiation:
Code:
<SpecialButton>Not clicked</SpecialButton>
My question is this: In openLaszlo/XML, is it SC (Symantically Correct) to refer to the words "Not clicked" as a text childnode? Up to this point, I would have referred to the phrase as the contents of the node. Thanks.
Reply With Quote
<p>Since the <tagname>button</tagname> can have a text attribute whose value becomes its label, the <tagname link="false">SpecialButton</tagname> class
that extends it can also has the text attribute that works the same way. The method <method>changeLabel</method> is also inherited by the instance.</p>
The "text" attribute versus "text" child tag is confusing. I've filed a bug to make sure it's well explained:
http://www.openlaszlo.org/jira/browse/LPP-3930