[x3d-public] JSON schema handling of Script url containing ecmascript source

John Carlson yottzumm at gmail.com
Mon Aug 21 04:16:59 PDT 2017


We could probably add /ecmascript:.*/ to the regexp.   You still need to do
it for your validator, so the 3 choices still stand.   What is the
consensus?

John

On Aug 20, 2017 11:42 PM, "Don Brutzman" <brutzman at nps.edu> wrote:

> On 8/20/2017 2:54 PM, John Carlson wrote:
>
>> Code does not match a URI.  You can modify your validator to accept a
>> wider range of URI values, or we can get rid of the format, or we can
>> probably all decide on a different format. Choices 1 and 3 require you
>> modify your validator.
>>
>
> Spec ruleth.  If the value is legal, then the JSON validator needs to
> become powerful enough to validate it (or at least accept it without
> throwing a false-positive error).
>
> ====================================================
>         X3D Abstract Specification: 9.2.3 Scripting language protocols
>         http://www.web3d.org/documents/specifications/19775-1/V3.3/
> Part01/components/networking.html#ScriptingLanguageProtocols
>
> EXAMPLE  The following illustrates the use of mixing custom protocols and
> standard protocols in a single url field (order of precedence determines
> priority):
>
> #X3D V3.0 utf8
> Script {
>  url [ "ecmascript: ...", # custom in-line ECMAScript code
>  "http://bar.com/foo.js", # ECMAScript file reference
>  "http://bar.com/foo.class" ] # Java platform bytecode file reference
> }
>
> The "..." represents in-line ECMAScript source code.
> ====================================================
>
> p.s. we also need a .jar version of url for script code, such as
>
>         "http://bar.com/HeebaHabaLibrary.jar#foo.class"
>
> all the best, Don
> --
> Don Brutzman  Naval Postgraduate School, Code USW/Br
> brutzman at nps.edu
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA
> +1.831.656.2149
> X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzma
> n
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170821/c28d7f41/attachment.html>


More information about the x3d-public mailing list