-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-xsl flag does not work as intended #59
Comments
Closing this because it is related to the standalone ncISO (posted here by mistake). But the error message is generated by the following line in thredssIso I believe... threddsIso/nciso-common/src/main/java/thredds/server/metadata/nciso/util/ThreddsTranslatorUtil.java Line 261 in d19c063
|
Hello @zdefne-usgs - I think I see what is happening. Two things.
I coordination with NOAA-PMEL, I had made an attempt at combining the standalone codebase with the plugin codebase so that there could be a one-stop shot, and did a few updates in terms of dependencies (like using the latest netCDF-Java), etc. The current release of that jar can be found at https://artifacts.unidata.ucar.edu/repository/unidata-releases/EDS/nciso/2.4.3/nciso-2.4.3-commandline.jar if you are interested in giving it a spin. Cheers, Sean |
Thank you @lesserwhirls It has been a few years since I las t ran this so I have been following the instructions on NOAA-PMEL github here which says use -xslt
I get the following messages with 2.4.3-commandline.jar. It seems to read the custom template but doesn't apply the changes in the file. Any thoughts?
|
Do you see anything in the |
There is some of this...
and some of that...
Any thoughts? Thanks for looking into it... |
@lesserwhirls to follow up with my previous post with more information. More has been discussed on the ncISO repo To summarize, the version of Java seems to matter and users may have different experience when they run the command on their system. The error I had above when running nciso-2.4.3-commandline.jar was with the following set up:
When I downgraded to Java8 (which worked with ncISO_v.2.3.7.jar) I got an error message saying that nciso-2.4.3-commandline.jar was compiled with a newer version. ncISO has updated to v.2.3.8 to fix this issue and I can run it either with java8 or java16 and get the same behavior. But now I get errors that complain about "as=string" tags in the XSL. It looks like this is an issue with XSLT1.0 but not with XSLT2.0 (see here for more info). UPDATE: switching to a newer version of Xalan has fixed this issue. See here.
|
I'm guessing JDK 11 was used to compile nciso-2.4.3-commandline.jar since that is what the TDS requires. The xsl file used by nciso and the tds iso plugin have diverged, and that was the only remaining task to complete to finalize merging the code bases (which would allow an apples to apples comparison). Glad to hear the issue is fixed over on the uafnciso repository. I guess there are no longer plans to merge the two codebases? Tagging @ethanrd, as he may have more up-to-date information on where that effort stands. |
I am trying to do this on my desktop with the -custom and -xls the flags:
but I get this error:
ncISO is trying to locate the style sheet here:
I tried with placing the XSL in the same folder and with/without the folder name in the command line but no luck.
This works without the flags and the custom XSL. Also ncISO-2.3.5 throws this error but ncISO-2.3.7 completely ignores the flag and uses the default style sheet therefore no errors generated...
The text was updated successfully, but these errors were encountered: