On 17 Dec 2003, at 16:33, Sylvain Wallez wrote:

Thanks for your reply Sylvain.

> Jeremy Quinn wrote:
>
>> Hi All
>>
>> I had a project working with Woody.
>> I just updated to the latest CVS and am having a strange problem:
>>
>> org.apache.cocoon.ProcessingException: Unable to get transformer >> handler for >> file:/Users/jerm/Development/Checkouts/Apache/cocoon-2.1/build/ >> webapp/ samples/woody/resources/woody-samples-styling.xsl: >> org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in >> creating Transform Handler
>>
>> cause: javax.xml.transform.TransformerException: >> file:/Users/jerm/Development/Checkouts/Apache/cocoon-2.1/build/ >> webapp/ samples/woody/resources/woody-field-styling.xsl: line 8: >> Variable 'resources-uri' is multiply defined in the same scope. >> file:/Users/jerm/Development/Checkouts/Apache/cocoon-2.1/build/ >> webapp/ samples/woody/resources/woody-calendar-styling.xsl: line 8: >> Variable 'resources-uri' is multiply defined in the same scope. >> file:/Users/jerm/Development/Checkouts/Apache/cocoon-2.1/build/ >> webapp/ samples/woody/resources/woody-advanced-field-styling.xsl: >> line 8: Variable 'resources-uri' is multiply defined in the same >> scope.
>>
>> The variable 'resources-uri' is indeed defined on each of these >> XSLTs, which is IMHO unnecessary.
>>
>> The strange thing is ..... I do not get this error with the Woody >> Samples.
>>
>> First I looked to see if changing the Samples from using Xalan to >> XSLTC raised the problem (we have to use XSLTC because of the UTF >> problems with Xalan).
>
>
> UTF problems in Xalan? Can you tell more about this?

Xalan croaks on some Unicode characters.

I believe it could be :

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24457

eg. Xalan will not process a document with Unicode character ▲ (▲) whilst XSLTC has no problem.
I have had this problem with about 10 characters so far ....

>
>> This had no effect.
>
>
> You mean XSLTC runs the samples with no problem?

In my quick trials, it ran fine on the Woody Samples.
ie. I changed the default Transformer to 'xslt' in the Woody Samples sitemap.

>> The next difference between our project and the Samples was that we >> have a local StyleSheet called 'woody.xsl' which includes the woody >> samples stylesheet thus:
>>
>> <xsl:include >> href="context://samples/woody/resources/woody-samples-styling.xsl"/>
>>
>> Because we have some custom styled widgets.
>>
>> I switched this to load the 'woody-samples-styling.xsl' directly from >> the sitemap, that made no difference either.
>>
>> Any suggestions as to what might be causing this?
>
>
> Have you tried declaring the "resources-uri" param in your main > stylesheet:
> <xsl:param name="resources-uri">resources</xsl:param>

Thanks for the suggestion, but it does not solve the problem.

The only way I could make the error go away, was to remove all of the variable declarations from the XSLTs included by 'woody-samples-styling.xsl', just leaving the one, top-level declaration.

I guess these XSLTs are designed to be used independently .... hence the repetition of the variable.

What I find rather weird, and slightly suspicious is that the Samples work and our Project does not, even though they are using the exact same XSLTs.


regards Jeremy

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to