[x3d-public] Plans for proceeding with C/C++/C# specification and implementation; XSLT and Saxon

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Wed Jan 26 17:09:45 PST 2022


I'm not using or needing a debugger (though XMLSpy has a great one).  No XSLT debugger in netbeans.

You will find many assertions and test statements in the stylesheets that report content errors when they occur.

Although XSLT can be pretty verbose, there are only a few coding patterns to learn (variable, if, choose, output, apply template). It is a declarative programming language for processing XML trees.  I have found that XSLT is unforgiving of mistakes (which is good) and typically stops after first error found.  Saxon is excellent at pinpointing stylesheet errors where they occur.  XSLT is a great language.

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 https:// faculty.nps.edu/brutzman

From: John Carlson <yottzumm at gmail.com>
Sent: Wednesday, January 26, 2022 12:05 PM
To: Brutzman, Donald (Don) (CIV) <brutzman at nps.edu>
Cc: GPU Group <gpugroup at gmail.com>; X3D Graphics public mailing list <x3d-public at web3d.org>
Subject: Re: [x3d-public] Plans for proceeding with C/C++/C# specification and implementation; XSLT and Saxon

NPS WARNING: *external sender* verify before acting.

Don,   do you use NetBeans as an interactive step-by-step XSLT debugger?  It may be worth it for me to try a different stylesheet with NetBeans.

I'm guessing you use the GHD (got here debugger), mostly.  I'm looking for more than that.

Thanks!

On Wed, Jan 26, 2022 at 1:13 PM Brutzman, Donald (Don) (CIV) <brutzman at nps.edu<mailto:brutzman at nps.edu>> wrote:
John, as inspection of our open-source codebases quickly reveals, we have remained fully compatible with Saxon "home edition" free editions.  Last fall we successfully upgraded to Saxon 10 without mishap.  A copy of the most recent jar is maintained in our version control so that any transitions or upgrades are careful and deliberate.  XSLT itself is a W3C standard.  There are no non-standard extensions in any of our Web3D stylesheets.

The Saxon project page on Sourceforge describes the various versions available.


  *   http://saxon.sourceforge.net<https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsaxon.sourceforge.net%2F&data=04%7C01%7Cbrutzman%40nps.edu%7Cc30c7e3a396b4bf04da408d9e10720d7%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637788243751318056%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CQs6NwPLMQ9YQoCAt1ef%2FtnxBuW2IX8IkfrEPAYI37k%3D&reserved=0>

No doubt other tools exist as well.  My personal approach uses Saxon/java/Netbeans as primary and XMLSpy (educational license) as second-check confirmation.  You will not find any other assets in our open-source X3D tools and content that require proprietary license support.

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 https:// faculty.nps.edu/brutzman<http://faculty.nps.edu/brutzman>

From: John Carlson <yottzumm at gmail.com<mailto:yottzumm at gmail.com>>
Sent: Tuesday, January 25, 2022 5:56 PM
To: Brutzman, Donald (Don) (CIV) <brutzman at nps.edu<mailto:brutzman at nps.edu>>; GPU Group <gpugroup at gmail.com<mailto:gpugroup at gmail.com>>; X3D Graphics public mailing list <x3d-public at web3d.org<mailto:x3d-public at web3d.org>>
Subject: Re: [x3d-public] Plans for proceeding with C/C++/C# specification and implementation

NPS WARNING: *external sender* verify before acting.

I tried StyleVision from Altova, but that requires XMLSpy.  Pretty much B-DOA.

John

On Tue, Jan 25, 2022 at 7:41 PM John Carlson <yottzumm at gmail.com<mailto:yottzumm at gmail.com>> wrote:
I guess the option for a cheap interactive debugger for XSLT (< $150 or free) is not there yet?  I might even go with a subscription model. I wonder if someone can find a page listing a subscription model for:  XSLT Debugger | Altova<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.altova.com%2Fxmlspy-xml-editor%2Fxslt-debugger&data=04%7C01%7Cbrutzman%40nps.edu%7Cc30c7e3a396b4bf04da408d9e10720d7%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637788243751318056%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=LxFMFOWdig%2BQRIoiHcHuQdHcLSFAAGrH9OTqm9txRgY%3D&reserved=0>?  Lost it.  Thanks!

I got this message running X3dToJson.xslt in NetBeans 12.6:

Starting file:/C:/Users/john/X3DJSONLD/src/main/data/abox.x3d by file:/C:/Users/john/X3DJSONLD/src/main/lib/stylesheets/X3dToJson.xslt transformation...
Error checking type of the expression 'funcall(lower-case, [step("attribute", 17)])'.
Transformation finished.

I don't think I've had issues with the Saxon jar, but let me check.  Looks fine.  Is there some way to override the NetBeans XSLT implementation with Saxon jar?

This is not what I wanted to do, go on a fishing trip. I know XMLSpy is basically way ahead, probably has been for over 15 years.  I'll look for XMLSpy subscription cost?

Please, a personal recommendation that works with X3D, not a fishing trip.  I understand that the Resources page shows X3D-Edit.  But that's uses NetBeans XSLT, or?

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220127/a57cf706/attachment-0001.html>


More information about the x3d-public mailing list