<xsl:value-of select="base-uri(.) ! tokenize(., '/')[last()] ! substring-before(., '.xml')"/> Fill in your link line for CSS and JS in the XSLT here!