Thank you Florent, that worked great!
-----Original Message-----
From: Florent Georges [mailto:darkman_spam(_at_)yahoo(_dot_)fr]
Sent: Monday, May 22, 2006 11:37 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] import css file via xslt ->xhtml
Rick Roen wrote:
Hi
<style type="text/css"> @import "salesdoc.css"; </style>
This (the "@import") is plain text for XSLT. You can use
unparsed-text() to read a file as a string:
~> cat import-css.xsl
<xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:output omit-xml-declaration="yes"/>
<xsl:template match="/">
<style type="text/css">
<xsl:text> </xsl:text>
<xsl:copy-of
select="unparsed-text('import-css.css')"/>
</style>
</xsl:template>
</xsl:transform>
~> cat import-css.css
body {
color: #333;
}
~> saxon import-css.xsl import-css.xsl
<style type="text/css">
body {
color: #333;
}
</style>
Regards,
--drkm
___________________________________________________________________________
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement
vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches
et suivez l'actualité en temps réel.
Rendez-vous sur http://fr.yahoo.com/set
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--