Git Product home page Git Product logo

kcl-ddh / kiln Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 62.0 171.79 MB

Kiln is a multi-platform framework for building and deploying complex websites whose source content is primarily in XML. It brings together various independent software components into an integrated whole that provides the infrastructure and base functionality for such sites.

License: Apache License 2.0

Shell 0.98% XSLT 34.05% Python 0.12% Perl 0.37% Clean 0.28% JavaScript 50.44% CSS 6.08% Batchfile 0.85% HTML 3.97% Java 0.35% AMPL 0.54% TypeScript 1.98%

kiln's People

Contributors

ajenhl avatar janrito avatar jmiguelv avatar pdaengeli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kiln's Issues

How to copy or integrate CSS in the Kiln inscription pages?

I was wondering how to include the ../xsl/global.css in the sample inscription pages. Is this achievable by adding the CSS as a new link to the base.xsl file, using an xsl:if for including it only for /sample/ and /corpus/ pages, or is there another way to include contextual css in Kiln?

Thank you in advance.

Resource not found doesn't return a 404

When I request a missing document, kiln responds with code 200 and a HTML page telling the resource was not found. Returning a 404 code would make it more explicit to the client apps calling kiln and help them manage the error.

I've just started working with Kiln so this might be me not understanding the settings rather than an actual issue.

Conflicting jars

There are two conflicting versions of the slf4j-api jar in webapps/root/WEB-INF/lib. This causes a NoScuhMethodError during the build process, and results in a 404 error when accessing the webapp on the browser.

Files metadata

Hello,

In a Kiln-powered project, I've added a large number (800+) of XML non-TEI files in the content folder. This caused the server to either load very slowly or not at all every time that _cocoon://internal/metadata/files.xml is aggregated.

I see that each file is transformed with XSLT to extract path, title and id (by files-metadata-generator.xsl). This doesn't scale well, especially if there are non-TEI files involved.

I would suggest to either limit the application of files-metadata-generator.xsl to TEI files (but then you'd have to determine that somehow), or stick to cocoon's file list in the directory namespace http://apache.org/cocoon/directory/2.0 and grab TIE titles and xml:ids only when needed.

Hope this helps!
Raffaele

How to fix occurred error in search page?

I would like to ask how to fix this error that I receive when clicking the search page. It says:
net.sf.saxon.trans.XPathException: When 'standalone' or 'doctype-system' is specified, the document must be well-formed; but this document contains a top-level text node

When validating the results-to-html.xsl file, I get these two errors.
System ID: /webapps/ROOT/stylesheets/solr/results-to-html.xsl
Engine name: Saxon-PE 9.6.0.5
Severity: error
Description: javax.xml.transform.TransformerException: Malformed URL cocoon://_internal/url/reverse.xsl(base file://webapps/ROOT/stylesheets/solr/results-to-html.xsl)

Description: javax.xml.transform.TransformerException: Malformed URL cocoon://_internal/url/reverse.xsl(base file:/webapps/ROOT/stylesheets/solr/results-to-html.xsl): unknown protocol: cocoon

Is the error connected with this invalid xsl file? I would appreciate any help. Thank you in advance!

Reverse URL lookup in XSLT

It would be useful to have an implementation of Django's reverse URL lookup available to XSLT, taking its information from the sitemaps. This might be an XSLT generated from the combined sitemaps that has a single named template that includes an xsl:when for each IDed map:match. This would be called with the ID and a sequence of values for any wildcards in the map:match pattern, and would return the full URL.

'standalone' build.sh static

Currently build.sh static relies on another instance of a kiln running in the background. It would be very convenient to have a single, stand-alone command that generates the dist.

Use case:
A cron job to regularly generate a handful of html from TEI source files modified by an editorial team. I'd rather not have jetty running as a service and consuming a lot of memory just for the periodic conversions. And I'd also like to have this fully automated (i.e. not start and stop it manually).

Ideally there would be a way to run transforms entirely in the foreground. If that's not possible then at least starting kiln, downloading the dist from it and stopping kiln within the same bash.

How to implement a samples index by duplicating text files?

I have duplicated text-index.xml and text-file-list-to-html.xsl in order to create a samples index to display a list of samples files. I added a sample index pipeline in the main.xmap but it's not working. The problem is that in the sample index page the files appear duplicated and for example when clicking on a file this URL appear http://localhost:9999/samples/samples/HGV.73151.html. How can I fix that and have this URL working instead http://localhost:9999/samples/HGV.73151.html? Currently when writing that URL I get the following error:
The resource you requested was not found.
java.io.FileNotFoundException: /vagrant/webapps/ROOT/sitemaps/../kiln/sitemaps/../../sitemaps/../content/xml/tei/HGV.73151.xml (No such file or directory)
Also how can I display only the files from samples directory without other files appearing on the list from content/xml/tei?

Thank you in advance for your help!

Solr indexing not working

When indexing a file the following error is being output _internal/solr/_internal/solr/delete-by-file-path/tei/index.xml.

Local navigation not displaying

For example

<menu href="index.html" label="Edition" root="edition">
<item href="test01-01.html" label="Test"/>
</menu>

with index.xml and test01-01.xml in xm/tei/edition, index.html is displayed but there is no local navigation to test01-01.hml

No documentation of stylesheets/default.xsl

The docs contain nothing about stylesheets/defaults.xsl and its use. It should, since it's far too easy to create links, for example, to assets as "/assets/...", which may break much later when deployed to a server that does not mount Kiln at /.

Update solr to latest version

The current version is at least more than 1 year old, it would be good to update it to the latest version, 3.5.0.

Cannot override xmtp:block name="title"

I've created a new template that imports tei.xml. When I try to override xmtp:block name="title" (e.g. with an empty <xmtp:block name="title"/>) the block from tei.xml still outputs.

Menu system embeds too much display logic

The menu system, as it exists, has far too much display logic embedded in the core kiln/stylesheets/menu/menu.xsl XSLT. I believe that this XSLT should provide plain XML giving the full menu structure, possibly with an indication of the current path and breadcrumbs. It is then up to the template to render this in an appropriate fashion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.