TripleToe
05-19-2004, 03:52 PM
I'm a little new to the Laszlo syntax so maybe someone can help me out.
My data looks like this
<teachers>
<teacher id="1">
<firstname>John</firstname>
<lastname>Doe</lastname>
</teacher>
<teacher id="2">
<firstname>Jane</firstname>
<lastname>Doe</lastname>
</teacher>
</teachers>
I have a list and I want the list text to display both the first and last names.
I was trying something like this to concatenate the two xpath values:
<textlistitem width="300" datapath="teachersdata:/teachers/teacher/" text='$path{"firstname/text()"} + $path{"lastname/text()"}' value='$path{"@id"}' />
But this doesn't work. Does anyone know how to combine the firstname and lastname nodes to set the text attribute for the list?
Thanks
My data looks like this
<teachers>
<teacher id="1">
<firstname>John</firstname>
<lastname>Doe</lastname>
</teacher>
<teacher id="2">
<firstname>Jane</firstname>
<lastname>Doe</lastname>
</teacher>
</teachers>
I have a list and I want the list text to display both the first and last names.
I was trying something like this to concatenate the two xpath values:
<textlistitem width="300" datapath="teachersdata:/teachers/teacher/" text='$path{"firstname/text()"} + $path{"lastname/text()"}' value='$path{"@id"}' />
But this doesn't work. Does anyone know how to combine the firstname and lastname nodes to set the text attribute for the list?
Thanks