Re: [Xsltforms-support] external css stylesheets
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2010-12-27 12:49:27
|
Hi, > For example, in the xsltforms.xsl file (line 98+), couldn't one have > something like: > > ... > <head> > <xsl:copy-of select="xhtml:head/@* | head/@*"/> > <xsl:copy-of select="*/xhtml:meta | */meta"/> > <link type="text/css"href="{$resourcesdir}xsltforms.css"rel="stylesheet"/> > <xsl:copy-of select="*/xhtml:link | */link"/> > ... > You are using an old version of XSLTForms and now, in the latest build, this is like this: <head> <xsl:copy-of select="xhtml:head/@* | head/@*"/> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <xsl:copy-of select="xhtml:meta[@http-equiv != 'Content-Type'] | head/meta[@http-equiv != 'Content-Type']"/> <link type="text/css" href="{$resourcesdir}xsltforms.css" rel="stylesheet"/> <xsl:apply-templates select="xhtml:head/xhtml:*[local-name() != 'script' and local-name() != 'style' and local-name() != 'link' and local-name() != 'meta'] | xhtml:head/comment() | head/title | head/comment()" mode="nons"/> <xsl:apply-templates select="xhtml:head/xhtml:style | xhtml:head/xhtml:link | head/style | head/link"/> <script src="{$resourcesdir}xsltforms.js" type="text/javascript">/* */</script> Link directives are interpreted by the XSLT stylesheet unless the <nocss/> option is set in the config.xsl file. -Alain |