ro.kuberam.maven.plugins.expath.mojos.generate-descriptors.xql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kuberam-expath-plugin Show documentation
Show all versions of kuberam-expath-plugin Show documentation
Plugin for EXPath related functionality
xquery version "3.1";
declare namespace pkg = "http://expath.org/ns/pkg";
declare variable $components := //pkg:components/*;
declare variable $java-class-nid := "urn:java:class:";
{
(: process class declarations for exist.xml :)
for $component in $components
let $urn := $component/pkg:file
return (
if (starts-with($urn, $java-class-nid))
then
let $java-class-name := substring-after($urn, $java-class-nid)
return
{$component/pkg:public-uri/text()}
{$java-class-name}
else ()
)
}