On Tue, 2009-07-28 at 02:36 -0700, Frank Hamilton wrote:
> Hello,
> 
>       
> I need to see the result of a query in xml. This consultation is carried out
> through a sql transformer. This is my sitemaps:
> 
> <map:match pattern="fichasDestacadas-**.xml" >
>               <map:generate src="cocoon:/sqlFichas.xml"/>
>               <map:transform src="xslt/presentacionFichas.xsl">
>                       <map:parameter name="prefix" value="{1}"/>
>               </map:transform>
>               <map:serialize type="xhtml"/>
>       </map:match>
> 
>     </map:pipeline>
>          
>      <map:pipeline>
>             <map:match pattern="sqlFichas.xml">
>                 <map:generate src="fichasSql.xml"/>
>                 <map:transform type="sql">
>                     <map:parameter name="use-connection"
> value="PinturexBDConnection" />
>                     <map:parameter name="show-nr-of-rows" value="true"/>
>                     <map:parameter name="clob-encoding" value="UTF-8"/>
>                     <map:parameter name="uuid"
> value="{page-envelope:document-uuid}"/>    
>                     <map:parameter name="language"
> value="{page-envelope:document-language}"/>     
>                 </map:transform>
>                 <map:serialize type="xhtml"/>
>             </map:match>
>         </map:pipeline>
> 
>       
> I tried to get an  <map:serialize type="xml"/> for a xml output but not as
> shown in my browser. I use this path in my browser:
> http://localhost:port/pub-id/area/sqlFichas.xml .
> 
>       
> You can tell me how he could see the outcome of the  query through xml in my
> browser.

For this kind of stuff I usually write a module till I have something
stable. Then I call
http://localhost:port/modules/myDebugModule/sqlFichas.xml

I do this mainly because modules are copyless and I can edit the
xsl/sitemap and see them directly. 


HTH

salu2
-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>

Sociedad Andaluza para el Desarrollo de la Sociedad 
de la Información, S.A.U. (SADESI)





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to