All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ro.kuberam.maven.plugins.expath.mojos.generate-descriptors.xql Maven / Gradle / Ivy

There is a newer version: 0.6.3
Show newest version
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 := normalize-space(substring-after($urn, $java-class-nid))
				
				return
					
						{normalize-space($component/pkg:public-uri/text())}
						{$java-class-name}
					
			else ()
		)		
	}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy