Could someone on this side of the globe help me out with something.

There is a bug that exists up to Witango 5.0. For some reason the DOM parser can't seem to find elements named "id"

For example, the following code

<@assign Name="domvar" Scope="Local"
Value=<@Dom Value="<root><id>X</id><othertag>Y</othertag></root>">
>



id=<@ELEMENTVALUE
OBJECT="domvar"
SCOPE="Local"
ELEMENT="root().child(1,id)">
<br>
othertag=<@ELEMENTVALUE
OBJECT="domvar"
SCOPE="Local"
ELEMENT="root().child(1,othertag)">

returns
id=
othertag=Y

when it should return
id= X
othertag=Y

If someone has a 5.5 server could they please run the test taf attached to this message just so I can know if the problem is fixed in 5.5.

Thanks,
John




________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE TAF SYSTEM "tango.dtd" >
<TAF Version="0x02000002">
	<Comments />

	<!--Main program-->
	<Program>
		<ActionRef Ref="Results" />
	</Program>

	<!--Program actions-->
	<Actions>
		<ResultAction ID="Results" Sig="null">
			<ResultsOutput Ref="Results.Results" />
		</ResultAction>
	</Actions>

	<!--Data sources-->
	<DataSources />

	<!--Output blocks-->
	<Outputs>
		<Output ID="Results.Results" Type="HTML"><![CDATA[<@assign Name="domvar" Scope="Local"
Value=<@Dom Value="<root><id>X</id><othertag>Y</othertag></root>">
>

id=<@ELEMENTVALUE 
OBJECT="domvar" 
SCOPE="Local" 
ELEMENT="root().child(1,id)">

<br>

othertag=<@ELEMENTVALUE 
OBJECT="domvar" 
SCOPE="Local" 
ELEMENT="root().child(1,othertag)">]]></Output>
	</Outputs>
</TAF>

Reply via email to