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

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

The newest version!
xquery version "3.1";

declare namespace map = "http://www.w3.org/2005/xpath-functions/map";
declare namespace html = "http://www.w3.org/1999/xhtml";

declare variable $spec-file-paths external;


	
		EXPath Specifications Index
	
	
		

EXPath Specifications Index

{ for $spec-file-path in tokenize($spec-file-paths, ",") let $spec-id := replace($spec-file-path, "^(.*/)(.*?)\.\w+$", "$2") let $spec-path := concat($spec-id, '/', $spec-id, '.html') let $spec-file := doc("file://" || $spec-file-path)/html:html/html:body return (

{$spec-file/html:div[@class = 'head']/html:h1/text()}

,
{$spec-file/html:div[2]/html:p}
) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy