Sorry output is:
<html>   <body>    Some data   </body> </html>

Judith

> -----Ursprüngliche Nachricht-----
> Von:  Andres, Judith [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Freitag, 7. Juni 2002 10:45
> An:   '[EMAIL PROTECTED]'
> 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:[EMAIL PROTECTED]]
> > Gesendet am:        Freitag, 7. Juni 2002 10:35
> > An: [EMAIL PROTECTED]
> > 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: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to