kcl-ddh / kiln

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.
Apache License 2.0
34 stars 62 forks source link

Reverse URL lookup in XSLT #12

Closed ajenhl closed 11 years ago

ajenhl commented 11 years ago

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.