cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Cervera Areny" <informa...@sedifa.com>
Subject RE: Possible bug
Date Tue, 13 Aug 2002 17:17:28 GMT
I've realised that this matcher doesn't give the error but doesn't copy
the nodes either:
<xsl:template match="@*|text()">
        <xsl:copy>
                <xsl:apply-templates/>
        </xsl:copy>
</xsl:template>
As soon as a you introduce a node() or * in the match attribute the error
appears...I've also noticed that a matcher like i18n:* lets it work ok and
copies the i18n nodes but not the other ones..
<xsl:copy-of select="/"> doesn't work.

If this template is added every thing works (but once again not as I'd like)
<xsl:template match="*">
        <xsl:apply-templates/>
</xsl:template>

So it seems it is not able to copy the nodes from the original stylesheet
but a match like "xsl:*" it's been useless. Any suggestions?

>
>> i don't see where you describe the bug.
> Sorry, the thread was 'Could not read resource file'. The thing is that
> the files and configuration of sitemap.xmap give an error where I think
> shouldn't be... The error is given by the file generator while if you
> erase the stylesheet matcher in fac-db.xsl or the sql transform in the
> pipe the error disappears....
>
> I can't describe much more of the bug... it's just that we believe it
> should work but it does not :-(
>
>>
>> -----Original Message-----
>> From: Albert Cervera Areny [mailto:informatic@sedifa.com]
>> Sent: Monday, August 12, 2002 6:56 PM
>> To: cocoon-users@xml.apache.org
>> Subject: Possible bug
>>
>>
>> I have tried to bring the configuration to the minimum to reproduce
>> the errors.. it is really small now... do you think this could be a
>> bug? Luca Morandini (under windows 2000) and I (under Linux) have been
>> looking at this for hours and haven't found a reason for the error.
>>
>> This is for the sitemap.xmap file:
>>
>> <map:match pattern="dins-facturacio">
>>   <map:generate src="docs/fac.xml"/>
>>   <map:transform src="stylesheets/fac.xsl"/>
>>   <map:transform src="stylesheets/fac-db.xsl"/>
>>   <map:transform type="sql">
>>     <map:parameter name="use-connection" value="cocoon"/>
>>   </map:transform>
>>   <map:serialize type="xml"/>
>> </map:match>
>>
>> The other files are attached... A sql connection is  also needed.
>> Nothing else this should give the error.
>> The error should go away by erasing the sql transform or erasing the
>> stylesheet matcher in fac-db.xsl
>>
>> If it is really a bug... to whom should I report it?
>> --
>> Albert Cervera Areny
>> Dept. Informàtica Sedifa, S.L.
>>
>>
>> ---------------------------------------------------------------------
>> Please check that your question  has not already been answered in the
>> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>>
>> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
>> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>
> --
> Albert Cervera Areny
> Dept. Informàtica Sedifa, S.L.
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


-- 
Albert Cervera Areny
Dept. Informàtica Sedifa, S.L.



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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