cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andres, Judith" <judith.and...@rauser-ag.com>
Subject AW: XPath and Xalan
Date Fri, 07 Jun 2002 08:46:40 GMT
Sorry output is:
<html>   <body>    Some data   </body> </html>

Judith

> -----Ursprüngliche Nachricht-----
> Von:	Andres, Judith [SMTP:judith.andres@rauser-ag.com]
> Gesendet am:	Freitag, 7. Juni 2002 10:45
> An:	'cocoon-users@xml.apache.org'
> Betreff:	AW: XPath and Xalan
> 
> Maybe your original xml code is correct but in your sample are some typos:
> 
> Anyway I just checked with xalan and it works:
> 
> xml code:
> 
> <search>
>  <items>
>   <rowset>
>    Some data
>   </rowset>
>  </items>
> </search>
> 
> xsl code:
> 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="search">
>  <html>
>    <body>
>  <xsl:apply-templates select="items/rowset" />
> 	 </body>
> 	</html>
> </xsl:template>
> 
> <xsl:template name="items-list" match="items/rowset">
>  <xsl:value-of select="."/>
> </xsl:template>
> </xsl:stylesheet>
> 
> output:
> 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="search">
>  <html>
>    <body>
>  <xsl:apply-templates select="items/rowset" />
> 	 </body>
> 	</html>
> </xsl:template>
> 
> <xsl:template name="items-list" match="items/rowset">
>  <xsl:value-of select="."/>
> </xsl:template>
> </xsl:stylesheet>
> 
> Judith
> 
> > -----Ursprüngliche Nachricht-----
> > Von:	David LAGARDERE [SMTP:dlagardere@yahoo.fr]
> > Gesendet am:	Freitag, 7. Juni 2002 10:35
> > An:	cocoon-users@xml.apache.org
> > Betreff:	RE: XPath and Xalan
> > 
> > -My XML code skeleton is :
> > 
> > <search>
> >  <items>
> >   <rowset>
> >    Some data
> >   </rowset
> >  </item>
> > </search>
> > 
> > -My XSL code is
> > 
> > <xsl:template match="search">
> >  <!-- Some HMTL code -->
> >  <xsl:apply-templates select="items/rowset" />
> >  <!-- Some HMTL code -->
> > </xsl:template>
> > 
> > <xsl:template name="items-list" match="items/rowset">
> >  <!-- Some HMTL code -->
> > </xsl:template>
> > 
> > That's all.
> > Do you see any mistakes ? It works when validated
> > with XML Spy.
> > 
> > 
> > 
> > 
> > 
> >   
> > 
> > 
> > 
> > ___________________________________________________________
> > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> > Yahoo! Mail : http://fr.mail.yahoo.com
> > 
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

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