[x3d-public] Don, XSLT protoexpander?

Don Brutzman brutzman at nps.edu
Wed May 6 23:18:40 PDT 2020


BLUF: write javascript that uses a ProtoDeclare as a cookie-cutter macro design for stomping out new scene subgraphs.  A prototype... expander.

Multiple open-source proto implementations exist.  At first it can be hard driving in fog - but it gets a lot easier when you can follow someone else's tail lights.

On 5/6/2020 9:53 PM, John Carlson wrote:
> Can we convert XSLT files to JavaScript?   That's Saxon-JS, right?  I am a bit worried about Saxon-CE.  Browser-native XSLT 1.0 processing might be feasible? That would be best.

The code patterns in XSLT are verbose (constructing strings and walking trees) in ways that don't match how any javascript implementation would go about doing things.  I further doubt that they want to include an XSLT engine in X3DOM, or depend on inconsistent browser implementations.


  Then there would be less code to download?  It would be worth seeing if there's a good product for XSLT 2.0 in the browser.
> What features of XSLT 2.0 are we using in the various stylesheets?
> 
> We are looking at a total remake for XML/DOM, I think, not sure.  I am fairly sure the code deserves re-engineering.
> 
> Will look.
> 
> John
> 
> On Wed, May 6, 2020 at 11:41 PM Don Brutzman <brutzman at nps.edu <mailto:brutzman at nps.edu>> wrote:
> 
>     If X3DOM is written in Javascript then I recommend writing the ProtoExpander in Javascript.  Then it will be directly compatible and maintainable.
> 
>     On 5/6/2020 9:32 PM, John Carlson wrote:
>      > Don, are we on track for an XML/XSLT ProtoExpander for integration into X3DOM?  Is it on the wish list?
>      >
>      > Thanks,
>      >
>      > John
> 
>     all the best, Don
>     -- 
>     Don Brutzman  Naval Postgraduate School, Code USW/Br brutzman at nps.edu <mailto: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/brutzman
> 

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/brutzman



More information about the x3d-public mailing list