This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@idoox.com    </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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]