cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Araya <car...@cvc.edu>
Subject Re: CSS on generated files
Date Wed, 08 May 2002 15:46:37 GMT
Vadim:

I've attached the complete sitemap for you to take a look at.

-- Sitemap begins

<?xml version="1.0"?>

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

<!-- =========================== Components ================================
-->

 <map:components>
  <map:generators default="file"/>
  <map:transformers default="xslt"/>
  <map:readers default="resource"/>
  <map:serializers default="html"/>
  <map:selectors default="browser"/>
  <map:matchers default="wildcard"/>
 </map:components>

<!-- =========================== Pipelines =================================
-->

 <map:pipelines>
  <map:pipeline>
   <map:match pattern="">
    <map:redirect-to uri="welcome"/>
   </map:match>

   <map:match pattern="welcome">
    <map:generate src="docs/samples.xml"/>
    <map:transform src="stylesheets/simple-samples2html.xsl"/>
    <map:serialize/>
   </map:match> 

   <!-- All Static. -->
   <map:match pattern="**.pdf">
    <map:generate src="docs/{1}.xml"/>
    <map:transform src="stylesheets/xsl/fo/docbook.xsl"/>
    <map:serialize type="fo2pdf"/>
   </map:match>

   <map:match pattern="**.html">
    <map:generate src="docs/{1}.xml"/>
    <map:transform src="stylesheets/xsl/html/cal.xsl"/>
    <map:serialize type="html"/>
   </map:match>

    <map:match pattern="**.css">
     <map:read mime-type="text/css" src="stylesheets/{1}.css"/>
    </map:match>

  </map:pipeline>
 </map:pipelines>

-- Sitemap ends


On 05/08/02 8:34, "Vadim Gritsenko" <vadim.gritsenko@verizon.net> wrote:

>> From: Carlos Araya [mailto:carlos@cvc.edu]
>> 
>> Vadim:
>> 
>> On 05/08/02 6:58, "Vadim Gritsenko" <vadim.gritsenko@verizon.net>
> wrote:
>>> 
>>> Do you have CSS links in your HTML, and does URL of the CSS in this
> HTML
>>> points to the Cocoon, and do you want Cocoon to serve this URL, and
>>> respond with appropriate CSS (file or generated)?
>> The css is generateed by the stylesheet I'm using.  Cocoon does serve
> the
>> HTML page that results from the transformation and the HTML displays
> ok but
>> not the stylesheet. I've added a map:match entry to my sitemap but it
>> doesn't seem to make a difference.
>> 
>> Also, the file is correctly accesed the first time, but on subsequent
>> attempts I get a null pointer exception error
> 
> Seems you have an error somewhere.
> 
> 
>>> If yes, then you have to make an entry in sitemap which will react
> on
>>> this URL and generate CSS (or just read static CSS file) you want.
>> This is the sitemap fragment that reads the stylesheet:
>> 
>>     <map:match pattern="**.css">
>>      <map:read mime-type="text/css" src="stylesheets/{1}.css"/>
>>     </map:match>
>> 
>> 
>> I'm using 2.0.2, will this work consistently if I upgrade to 2.0.3?
>> Carlos
> 
> There are no changes between 2.0.3 and 2.0.2 in this respect.
> 
> Vadim
> 
>> 
>>> 
>>> Vadim
>>> 
>>> 
>> 
>> --
>> Carlos E. Araya
>> ---+ WebCT Administrator/Trainer
>>  P | California Virtual Campus
>>  - | C/O De Anza College
>>  G | 21250 Stevens Creek Blvd
>> ---+ Cupertino, CA 95014
>> 
>> email               carlos@cvc.edu
>> web                 http://www.cvc1.org/ (work)
>>                     http://www.silverwolf-net.net (personal)
>> phone               408 257 0420 (work)
>> PGP Fingerprint:    E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756
>> 
>> 
>> "Do not meddle in the affairs of dragons....for you are crunchy and
> taste
>> good with ketchup and mayonnaise.."
>> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

-- 
Carlos E. Araya
---+ WebCT Administrator/Trainer
 P | California Virtual Campus
 - | C/O De Anza College
 G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014

email               carlos@cvc.edu
web                 http://www.cvc1.org/ (work)
                    http://www.silverwolf-net.net (personal)
phone               408 257 0420 (work)
PGP Fingerprint:    E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

"If there is artificial intelligence, doesn't that imply there is also
artificial stupidity!"


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message