Develop and run XSLT 3.0 in Visual Studio Code

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 20

  • @pgfearo
    @pgfearo  3 года назад +2

    This video demonstrates use of Saxon-JS tasks for running XSLT 3.0. Please note that NodeJS should be installed you your machine to use Saxon-JS.
    NodeJS can be installed from here: nodejs.org/en/download/

    • @initial00707
      @initial00707 3 года назад

      Please may i know your email contact. I am facing the below issue. everything is configured as per the steps shown by you
      /usr/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
      /usr/bin/bash: -c: line 1: syntax error: unexpected end of file
      The terminal process "C:\Program Files\Git\bin\bash.exe '-c', '"E:\XSLTProjs/node_modules\.bin\xslt3" "-xsl:E:\XSLTProjs\SRC\Demo.xsl" "-s:E:\XSLTProjs\SRC\Demo.xsl" "-o:E:\XSLTProjs/xslt-out/result1.xml"'" failed to launch (exit code: 1).

  • @RicardoDirani
    @RicardoDirani 24 дня назад

    I tried following the steps on Windows/WSL... by no means I managed to make the tasks run on WSL instead of powershell. So I ended up having to install NodeJS directly on Windows.

  • @althafhussain9718
    @althafhussain9718 2 года назад +2

    is it possible to convert a json file to xml using XSLT3.0. ? Is so, please share a link

  • @geetanshsingh8689
    @geetanshsingh8689 Год назад

    Thanks my G, helped out a lot...

  • @DragonByte79
    @DragonByte79 3 года назад

    First of all that is an awesome video tutorial. Question do you get in touch with xspec? If yes, do you know how to use xspec with that Visual Studio code extension? Thank you.

    • @pgfearo
      @pgfearo  3 года назад +1

      There is no XSpec support currently, it will be added in the near future.

  • @dichi66
    @dichi66 2 месяца назад

    Dude, I just want to know how to transform xml with xslt in vscode. Should be a 3 minute video.

  • @prafulkapse23
    @prafulkapse23 2 года назад

    Thanks for creating this awesome video. It has helped me a lot. Can you also tell me how can I run a Azure CI pipeline and having this XSLT as a task ?

  • @Beezer900
    @Beezer900 2 года назад

    Thanks for the tutorial. How would I go about processing multiple XML files (or all XML files in a folder) in a single build task?

    • @pgfearo
      @pgfearo  2 года назад

      You can create Compound tasks to achieve this. Create a task with a dependsOn property with a list of tasks for different XML files. See: code.visualstudio.com/docs/editor/tasks#_compound-tasks
      If you need to process an entire folder, use a top-level XSLT stylesheet that calls the collection function with the folder Uri as the argument, the folder-uri can be passed as an xsl:param from the task. See: www.saxonica.com/documentation11/index.html#!sourcedocs/collections

    • @Beezer900
      @Beezer900 2 года назад

      Thanks very much

  • @vikaskewalramani1398
    @vikaskewalramani1398 3 года назад

    It isn't generating the proper xml file, Please help and what if I need to assign source files dynamically?

    • @pgfearo
      @pgfearo  3 года назад

      It is possible to use variable references to use user-input in your XSLT task file. For more info see: code.visualstudio.com/docs/editor/variables-reference#_input-variables

    • @AdhusWorld-by8xe
      @AdhusWorld-by8xe 2 месяца назад

      Hi iam trying to use saxon integrated extension but getting error like 2 arguments function could not be found

  • @katharinauling6731
    @katharinauling6731 3 года назад

    Hi Philip, got the following error message in the terminal when trying to run the xsl: "The terminal process failed to launch: A native exception occurred during launch (Cannot create process, error code: 193)." Do you know what the problem could be?

    • @pgfearo
      @pgfearo  3 года назад

      Looking closer at your error message, a likely cause is that NodeJS is not installed on your machine,. The 'xslt3' node-module that the task attempts to execute is not recognised as an executable script. To fix this, install NodeJS on your machine. NodeJS can be installed from here: nodejs.org/en/download/

    • @pgfearo
      @pgfearo  3 года назад

      Someone else has also reported this issue (github.com/DeltaXML/vscode-xslt-tokenizer/issues/66). Further investigation showed this was a bug that occurred when using Saxon-JS with the Windows OS. This issue was fixed in V0.2.9 of the extension.

  • @andrianaburbylo4960
    @andrianaburbylo4960 3 года назад

    Hi! I tried to repeat after you on my computer. the "result.html" file is created empty. what could be the problem?

    • @pgfearo
      @pgfearo  3 года назад

      Check the tasks.json in your workspace folder has result.html set as the output file. You should see confirmation of this in the terminal output in VSCode (ensuring no error is reported there). If the issue persists please submit an issue at github.com/DeltaXML/vscode-xslt-tokenizer/issues with more details.