Noe Misael Nieto Arroyo wrote:
> 
> I refrain my words. It makes no difference.
> 
> I get the traceback plus Plone content is passed through without theming.
> 
> --
> Noe
> 
> 2011/2/4 Noe Misael Nieto Arroyo <[email protected]>
> 
>> It works now,
>>
>> I added a <theme/> tag on top of my rules.xml stating my default theme:
>>
>> <theme href="azul/typography.html"/>
>>
>> --
>> Noe
>>
>> 2011/2/4 Noe Misael Nieto Arroyo <[email protected]>
>>
>> Hi All,
>>>
>>> I want to apply a different style when users visit the contact-info
>>> page.
>>> but when i do this:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <rules
>>>     xmlns="http://namespaces.plone.org/xdv";
>>>     xmlns:css="http://namespaces.plone.org/xdv+css";
>>>     xmlns:xi="http://www.w3.org/2001/XInclude";
>>>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>>>     >
>>>
>>>
>>>
>>>     <xsl:variable name="contact-info"
>>> css:select="body.template-contact-info"/>
>>>
>>>     <rules if-content="$contact-info">
>>>         <theme href="azul/contact.html"/>
>>>         <xi:include href="rules-contact-info.xml" />
>>>     </rules>
>>>
>>>
>>>
>>> </rules>
>>>
>>> But i get this error:
>>>
>>> 2011-02-04 16:36:48 ERROR Zope.SiteErrorLog 1296859008.440.263186848535
>>> http://localhost:9012/Plone/contact-info
>>> Traceback (innermost last):
>>>   Module ZPublisher.Publish, line 132, in publish
>>>   Module zope.event, line 23, in notify
>>>   Module zope.component.event, line 26, in dispatch
>>>   Module zope.component._api, line 138, in subscribers
>>>   Module zope.component.registry, line 323, in subscribers
>>>   Module zope.interface.adapter, line 575, in subscribers
>>>   Module plone.transformchain.zpublisher, line 93, in
>>> applyTransformOnSuccess
>>> TypeError
>>>
>>>
>>> * The file azul/contact.html is accesible from the static directory. I
>>> also tryied using
>>> python://iservicestheme.ambitious/static/azul/contact.html
>>> as the @href parameter.
>>>
>>> Am I doing something I should not be doing to rules.xml?
>>>
> 

I don't think you are doing anything wrong in the rules. (I've added a test
to diazo to demonstrate that xsl:variable and theme work together.) I
suggest debugging with pdb to see what is going wrong.

Laurence
-- 
View this message in context: 
http://plone.293351.n2.nabble.com/TypeError-on-plone-transformchain-zpublisher-when-using-theme-directive-with-xdv-diazo-tp5994294p5995623.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/product-developers

Reply via email to