cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <ghow...@crosswalk.com>
Subject RE: Problems with SQLTransformer
Date Fri, 09 Aug 2002 15:39:41 GMT
> 
> 081778namepassdprogname
> 

This looks like the "default" template for elements which just copies their
value.  As an experiment, try this: 

<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="rowset">
<authentication>
        <xsl:apply-templates/>
</authentication>
</xsl:template>

<xsl:template match="row">
         <ID><xsl:value-of select="id"/></ID>
         <role><xsl:value-of select="role"/></role>
         <data>
                   <xsl:copy-of select="nom"/>
                   <xsl:copy-of select="programa"/>
                   <xsl:copy-of select="instruccions"/>
         </data>
</xsl:template>

</xsl:stylesheet>
 

> > 2) When in e) you say modifications have no effect do you 
> mean that if
> > you literally re-arrange or remove items from the final output those
> > changes are not reflected?
> 
> I mean that if instead of the above code I put the following 
> for usuaris.xsl:

...

> <?xml version="1.0" encoding="iso-8859-1"?>
> 
> <xsl:stylesheet version="1.0"
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="rowset">
>    hello
> </xsl:template>
> </xsl:stylesheet>
> 
> The output is exactly the same!

Well, if you can't get "hello" to show up in that last example, then it
looks more like you've got some kind of caching issue going on.  The sql
transformer should keep any caching from happening, but maybe there's a
problem.  I'd recommend first making absolutely sure that your browser is
not caching these results, then make sure cocoon is not caching them.
Either change to a non-caching pipeline, or shut cocoon down, find the work
directory and delete everything from it, and the restart cocoon and try
again.  

Geoff

---------------------------------------------------------------------
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