|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: CSS (via entities)
For an inspiration:
<!DOCTYPE xsl:stylesheet [ <!ENTITY inclusion SYSTEM "foo.css"> ]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:variable name="inclusion">&inclusion;</xsl:variable>
<xsl:template match="/">
<xsl:value-of select="$inclusion"/>
</xsl:template>
</xsl:stylesheet>
YueMa wrote:
>
> Hi there,
> Thanks for the answers of concat string!
>
> I have another question, how can I use am external CSS style file within
> my XSLT file?
> I tried to use
> <xsl:copy-of select="document('mycss.css')"/>
> but I've got error message said there is a syntax error in my CSS file
> at the first line:
>
> BODY {
> font-family: Arial, Helvetica, sans-serif;
> font-size: 100%;
> }
>
> If I don't want to copy-paste the data from CSS to XSLT, what can I do ?
>
> Thanks!
>
> Yue
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
******************************************
<firstName> Miloslav </firstName>
<surname> Nic </surname>
<mail> nicmila@xxxxxxxxx </mail>
<support> http://www.zvon.org </support>
<zvonMailingList>
http://www.zvon.org/index.php?nav_id=4
</zvonMailingList>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








