Skip to content

Instantly share code, notes, and snippets.

@tingletech
Created January 23, 2015 18:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tingletech/88104889d491009a870e to your computer and use it in GitHub Desktop.
Save tingletech/88104889d491009a870e to your computer and use it in GitHub Desktop.

XTF Notes

OAC/Calisphere XTF

https://bitbucket.org/btingle/dsc-xtf/src/?at=dsc-prod-xtf3.0 branch: dsc-prod-xtf3.0

using a database in pre filter

set xmlns up on ead/preFilter.xsl

https://bitbucket.org/btingle/dsc-xtf/src/4e17e986df6b8d643f1ddbf3c8c8964674ae763f/style/textIndexer/ead/preFilter.xsl?at=dsc-prod-xtf3.0#cl-9

get-sql named template in common/preFilterCommon.xsl

https://bitbucket.org/btingle/dsc-xtf/src/4e17e986df6b8d643f1ddbf3c8c8964674ae763f/style/textIndexer/common/preFilterCommon.xsl?at=dsc-prod-xtf3.0#cl-464

decade facet

date facet called in XSLT

https://bitbucket.org/btingle/dsc-xtf/src/4e17e986df6b8d643f1ddbf3c8c8964674ae763f/style/textIndexer/common/preFilterCommon.xsl?at=dsc-prod-xtf3.0#cl-196

date facet java code is in here: https://bitbucket.org/btingle/dsc-xtf/src/4e17e986df6b8d643f1ddbf3c8c8964674ae763f/WEB-INF/src/org/cdlib/dsc/util/?at=dsc-prod-xtf3.0

current file name

I think this should work to get the name of the input XML in XSLT2

<xsl:value-of select="base-uri()" />

ack

XTF logic can call back and forth between many files. This is a good tool for searching code:

http://beyondgrep.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment