|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: <xsl:include> and CSS
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Aaron, I'm not quite sure if i understood what you mean, but perhaps you're looking for moded templates. You could use one default template with no mode attribute and one with a mode attribute that indicates you don't want the .css information to be included. ~ <xsl:template match='someelement'> ... </> ~ <xsl:template match='someelement' mode='nocss'> ... </> ~ <xsl:choose> ~ <xsl:when test='<I don't want CSS>'> <xsl:apply-templates select='someelement' mode='nocss'/> ~ </xsl:when> ~ <xsl:otherwise> <xsl:apply-templates select='someelement'/> ~ </xsl:otherwise> Wildly guessing, Wolfgang Aaron Johnson wrote: | Hi... | | I have a couple of stylesheets that use the <xsl:include> declaration to | take defenitions from a global base stylesheet. Within this style sheet | there are parameters to pick up styling definitions from .CSS files. These | then pass on to the other stylesheets. These then apply to files being | rendered as xhtml. | | Is there a way of overriding this base template to create a text only | version file with no styling? | | Hope this is clear! | | AJ | | ...................................................................... | | Aaron Johnson | GUI / XSLT development | Academic Technologies Group [ATG] | University of the West of England | | ext: 81051 | t: 0117 3281051 | www: http://atg.uwe.ac.uk/aaron | e: aaron2.johnson@xxxxxxxxx | ...................................................................... | | ...................................................................... | | SECURITY POLICY: | | Please note that ATG will only accept | e-mail attachments in the following | formats: | | .doc,.gif,.jpg,.mdb,.png,.xls,.zip,.psd | | ...as a mac user I will accept files | compressed using Dropstuff. | ...................................................................... | | This communication is intended solely | for the use of the individual(s) to whom | it is addressed. Any opinions presented | are those of the author and do not | necessarily represent the University of | the West of England, Bristol. | ...................................................................... | | | | | This email has been independently scanned for viruses and any virus detected has been removed using McAfee anti-virus software | | | | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBZlzzqjaicDyx8o8RAiCsAJ9cQFBqTsH4nsKZFMOrCPXQvJ7jsQCePP6b shxvrnPxBEuXgXfBpMQYM+g= =XYhF -----END PGP SIGNATURE-----
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








