Re: Compiling SEF

Martynas Jusevičius <martynas-tyFqBaoSXPC1Z/[email protected]>
Newsgroups gmane.text.xml.saxon.help
Message-ID <CAE35VmwMhpVFJJ6P+Pm0mRXPgC9U2S4gXE7Gz3Bgwb1br2GMRA@mail.gmail.com>
OK, after some investigation it looks like I can answer my own
question. The frontend-maven-plugin seems to do the job. Place this
into the POM:

            <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <version>1.10.0</version>
                <configuration>
                    <nodeVersion>v14.8.0</nodeVersion>
                </configuration>
                <executions>
                    <execution>
                        <id>install node and npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                        <phase>generate-resources</phase>
                    </execution>
                    <execution>
                        <id>npm install</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <arguments>install</arguments>
                        </configuration>
                    </execution>
                    <execution>
                        <id>generate SEF</id>
                        <goals>
                            <goal>npx</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <arguments>xslt3 -t
-xsl:./src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client.xsl
-export:./src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/client.sef.json
-nogo</arguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

On Mon, Aug 24, 2020 at 9:50 AM Martynas Jusevičius
<[email protected]> wrote:
>
> Hi,
>
> So finally after upgrading our open-source components to Saxon-HE
> 10.1, I am looking into upgrading Saxon-CE to Saxon-JS 2.
>
> My recollection from the release was that it will not require Saxon-EE
> in order to compile SEF files. What I didn't realize that the
> alternative requires Node.js:
> http://www.saxonica.com/saxon-js/documentation/index.html#!starting/export/compiling-using-XX
>
> How is it supposed to be invoked from a Java Maven project that uses Saxon-HE?
>
> Thanks.
>
> Martynas


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.