Re: [Xsltforms-support] external css stylesheets
Brought to you by:
alain-couthures
From: ac <ac...@hy...> - 2010-12-27 23:57:05
|
Hi Alain, I was mistaken in thinking that <nocss/> meant not to copy css links, but now, I guess that it means no in-line header css, probably. I got the latest version from the SVN SF repo. Warnings are just warnings indeed. I am getting them from FireFox though. Now the stylesheets are being applied. Thank you. Best wishes. Regards, Andre > Le 27/12/2010 17:42, ac a écrit : >> Hi, >> >> The version that I am using is the one currently available from your >> site and sourceforge (BetaRC3), but it is like I showed you and not >> like what you sent me, as below. >> >> Where can I get the latest version? > > The online version at agencexml.com is clearly an old one but still > good for the examples... > > The Beta3RC already contained <xsl:apply-templates > select="xhtml:head/xhtml:style | xhtml:head/xhtml:link | head/style | > head/link"/> > > The latest build is available in the SVN SF repository at > http://xsltforms.svn.sourceforge.net/viewvc/xsltforms/branches/dataisland/build/ >> >> Looking at your code below, I cannot see how my css stylesheets could >> be applied without adding >> <xsl:copy-of select="*/xhtml:link | */link"/> >> as can currently do with BetaRC3. > There is a template for that: > > <xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > match="xhtml:link[@type='text/css' and @rel='stylesheet'] | > link[@type='text/css' and @rel='stylesheet']"> > <xsl:choose> > <xsl:when test="$config/options/nocss"> > <xsl:copy-of select="."/> > </xsl:when> > <xsl:when > test="translate(normalize-space(/processing-instruction('css-conversion')[1]), > 'YESNO ', 'yesno')='no'"> > <xsl:copy-of select="."/> > </xsl:when> > <xsl:otherwise> > <style type="text/css"> > <xsl:call-template name="cssconv"> > <xsl:with-param name="input" > select="normalize-space(document(@href,/)/*)"/> > </xsl:call-template> > </style> > </xsl:otherwise> > </xsl:choose> > </xsl:template> > > As you can see, when the nocss option is set, an xsl:copy-of is performed! >> The xsltforms.css is also still giving me the css error warnings below: >> >> Avertissement : Propriété « box-sizing » inconnue. Déclaration >> abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 72 >> >> Avertissement : Propriété « box-sizing » inconnue. Déclaration >> abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 83 >> >> Avertissement : Propriété « box-sizing » inconnue. Déclaration >> abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 101 >> >> Avertissement : Propriété « box-sizing » inconnue. Déclaration >> abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 135 >> >> Avertissement : Propriété « box-sizing » inconnue. Déclaration >> abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 174 >> >> Avertissement : Erreur d'analyse de la valeur pour « filter ». >> Déclaration abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 185 >> >> Avertissement : Propriété « -moz-opacity » inconnue. Déclaration >> abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 187 >> >> Avertissement : Propriété « box-sizing » inconnue. Déclaration >> abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 224 >> >> Avertissement : Propriété « box-sizing » inconnue. Déclaration >> abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 245 >> >> Avertissement : Erreur d'analyse de la valeur pour « filter ». >> Déclaration abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 291 >> >> Avertissement : Propriété « box-sizing » inconnue. Déclaration >> abandonnée. >> Fichier Source : >> file:///C:/dev/jboss-3.2.5/server/default/deploy/html.ear/html.war/library/hyperform/stratml/asset/xsltforms/xsltforms.css >> >> Ligne : 296 > > Those properties are there for compatibility with FireFox: > https://developer.mozilla.org/en/CSS/box-sizing > > They're just warnings, right? > > Thanks! > > -Alain |