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

Key: LPP-3414
Type: Bug Bug
Status: Resolved Resolved
Resolution: Invalid
Priority: P2 P2
Assignee: Unassigned
Reporter: Frisco Del Rosario
Votes: 0
Watchers: 1
Operations

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

trimwhitespace tag causes compilation error

Created: 12/Jan/07 12:39 PM   Updated: 31/Jan/07 04:51 PM
Component/s: Server - XML
Affects Version/s: 3.4
Fix Version/s: 4.0.0

Time Tracking:
Not Specified

Severity: Minor
Runtime: N/A
Fix in hand: False


 Description  « Hide
<canvas debug="true">
<include href="lzunit"/>

<dataset name="UOP" trimwhitespace="true" >
<PacificXML>
<player team="tigers">
<playername>Lav en der</playername>
</player>
</PacificXML>
</dataset>

<text id="tiger" datapath="UOP:/PacificXML[1]/player[1]/playername[1]/text()"/>

<TestSuite>
<TestCase>
<method name="testTrimWhitespace">
assertEquals("Lavender", tiger.text);
</method>
</TestCase>
</TestSuite>

</canvas>

EXPECTED
Lavender

GOT
element "PacificXML" not allowed in this context. Check whether it is spelled correctly, and whether a class with this name exists.

Antun said that the trimwhitespace tag caused the compiler to treat the dataset not like a dataset. LPP-2463 depends on this.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jim Grandy - 16/Jan/07 11:49 AM
What Affects Version should this have?

Frisco Del Rosario - 31/Jan/07 03:01 PM
I think I'm on to something. The LZX Reference says that trimwhitespace's usage is "tag and script", but also says it's read only, which are *only* script. I'm going to alter the test case, which might resolve 3414, but create a tiny bit of work on the ref.

Frisco Del Rosario - 31/Jan/07 04:51 PM
Trimwhitespace must be set in script, not tag. This led to LPP-3497.