Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#8 xslt-3 migration #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
Expand All @@ -98,17 +94,27 @@
<artifactId>solr-solrj</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core-jakarta</artifactId>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
</dependency>
<dependency>
<groupId>org.mycore</groupId>
<artifactId>mycore-acl-editor2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mycore</groupId>
<artifactId>mycore-ifs</artifactId>
</dependency>
<dependency>
<groupId>org.mycore</groupId>
<artifactId>mycore-pi</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mycore</groupId>
<artifactId>mycore-restapi</artifactId>
Expand Down Expand Up @@ -137,11 +143,5 @@
<groupId>org.mycore</groupId>
<artifactId>mycore-mets</artifactId>
</dependency>
<!-- replace this with the settings of the JDBC driver for your database -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ ${symbol_pound} ${symbol_dollar}Revision${symbol_dollar} : ${symbol_dollar}Date$
MCR.NameOfProject=${projectName}
MCR.Metadata.Languages=de,en
MCR.LanguageClassification=rfc5646
MCR.Users.Guestuser.UserName=guest

MCR.LayoutTransformerFactory.Default.Stylesheets=xsl/layout/${rootArtifactId}_layout_template.xsl
MCR.LayoutTransformerFactory.Default.Stylesheets=xslt/layout/${rootArtifactId}_layout_template.xsl
MCR.URIResolver.xslIncludes.objectTypes=%MCR.URIResolver.xslIncludes.objectTypes%,actionsAndDerivates.xsl

${symbol_pound}----------------------------------------------------------------------
Expand Down Expand Up @@ -38,10 +39,26 @@ MCR.Access.AddObjectDefaultRule=false
${symbol_pound}----------------------------------------------------------------------
${symbol_pound} URIResolver & ContentTransformer
${symbol_pound}----------------------------------------------------------------------
MCR.ContentTransformer.mycoreobject-solrdocument.Stylesheet=xsl/solr/searchfields-solrbase.xsl
MCR.URIResolver.xslImports.solr-document=%MCR.URIResolver.xslImports.solr-document%,solr/searchfields-solr.xsl
MCR.URIResolver.xslIncludes.solrResponse=%MCR.URIResolver.xslIncludes.solrResponse%,solr/response-page.xsl
MCR.LayoutService.TransformerFactoryClass=net.sf.saxon.TransformerFactoryImpl
MCR.URIResolver.xslImports.solr-document=%MCR.URIResolver.xslImports.solr-document%,solr/indexing/searchfields-solr.xsl
MCR.URIResolver.xslIncludes.solrResponse=%MCR.URIResolver.xslIncludes.solrResponse%,solr/response/response-page.xsl

${symbol_pound} prepare the xeditor with xslt 3.0
MCR.ContentTransformer.xeditor-templates.Class=org.mycore.common.content.transformer.MCRXSL2XMLTransformer
MCR.ContentTransformer.xeditor-templates.TransformerFactoryClass=net.sf.saxon.TransformerFactoryImpl
MCR.ContentTransformer.xeditor-templates.Stylesheet=xslt/xeditor-templates.xsl

${symbol_pound} process the xeditor with xslt 1.0
MCR.ContentTransformer.xeditor-processing.Class=org.mycore.common.content.transformer.MCRXSL2XMLTransformer
MCR.ContentTransformer.xeditor-processing.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl
MCR.ContentTransformer.xeditor-processing.Stylesheet=xsl/xeditor.xsl

${symbol_pound} combine everything with transformer pipe
MCR.ContentTransformer.xeditor.Class=org.mycore.common.content.transformer.MCRTransformerPipe
MCR.ContentTransformer.xeditor.Steps=xeditor-templates,xeditor-processing

${symbol_pound} MCR.URIResolver.xslImports.solr-document=%MCR.URIResolver.xslImports.solr-document%,iview2-solr.xsl
MCR.ContentTransformer.response-browse.Stylesheet=xslt/solr/response/response-browse.xsl,%MCR.LayoutTransformerFactory.Default.Stylesheets%

${symbol_pound}----------------------------------------------------------------------
${symbol_pound} Additional Events
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading