History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-3558
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: P2 P2
Assignee: Unassigned
Reporter: John Sundman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

wording of tutorial

Created: 16/Feb/07 06:29 AM   Updated: 10/May/07 04:14 PM
Component/s: Documentation
Affects Version/s: OL4B1
Fix Version/s: 4.0.2, Osprey

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 4,856
Runtime: N/A
Fix in hand: False


 Description  « Hide
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

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
John Sundman - 01/May/07 09:32 AM
The reader is correct. I changed the wording to:

<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

Mamye Kratt - 10/May/07 04:14 PM
Closed