W3C home > Mailing lists > Public > www-dom-ts@w3.org > January 2003

Re: casting to a short

From: Mary Brady <mbrady@nist.gov>
Date: Mon, 13 Jan 2003 09:54:59 -0500
Message-ID: <006901c2bb13$bef9f460$293b0681@sdct.nist.gov>
To: "Curt Arnold" <carnold@houston.rr.com>, <www-dom-ts@w3.org>

Curt,

I think we may be encountering some new
issues.  These are level 3 tests -- the level
3 test suite language and the transforms
have not really been exercised all that
heavily.  Do you think that maybe this
problem and the whatToShow problem
might be result of problems with the
generated language or the transform?

--Mary
----- Original Message -----
From: "Curt Arnold" <carnold@houston.rr.com>
To: <www-dom-ts@w3.org>
Sent: Monday, January 13, 2003 2:27 AM
Subject: Re: casting to a short


>
> All casting is implicit, the transform is responsible for doing any
> appropriate casting.   I assume this scenerio (required casting between
data
> types) had not previously appeared in the tests.  As a workaround, you may
> try assigning the value to a short variable and then using the short
> variable as the parameter.
>
> <var name="mode" value="1" type="short"/>
> <createDOMBuilder var="builder" obj="lsImplementation" mode="mode"
> schemaType="schemaType"/>
>
> ----- Original Message -----
> From: "Jeroen van Rotterdam" <jvrdam@xs4all.nl>
> To: <www-dom-ts@w3.org>
> Sent: Sunday, January 12, 2003 4:09 PM
> Subject: casting to a short
>
>
> > Attached a really simple test which creates a DOMBuilder.
> >
> > Compiling fails since it should be:
> >
> >   builder = lsImplementation.createDOMBuilder((short)1,schemaType);
> >
> > instead of:
> >
> >   builder = lsImplementation.createDOMBuilder(1,schemaType);
> >
> > How do you cast the constant to a short within the test ?
> >
> > Thanks in advance,
> >
> > jeroen
> >
> >
> > =====
> > X-Hive Corporation
> > Jeroen van Rotterdam, CEO
> > e-mail: jeroen@x-hive.com
> > phone: +31 10 7108600
> > http://www.x-hive.com
> >
> >
>
>
>
Received on Monday, 13 January 2003 10:03:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:06 UTC