cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KOZLOV Roman <r-koz...@opencascade.com>
Subject Re: XPath and Xalan
Date Fri, 07 Jun 2002 10:47:24 GMT
David,

It seems that Judith meant misspelling with <items>...</item> tags (the
closing one is incorrect) and "</rowset" tag (it has no closing bracket
>). After fixing this I was able to apply the following XSL by means of
default cocoon's transformer:
. . .
<xsl:template match="search">
 <html>
 <xsl:apply-templates select="items/rowset" />
 </html>
</xsl:template>

<xsl:template name="items-list" match="items/rowset">
 inside:
 <xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>

And the result is the following:

<?xml version="1.0" encoding="UTF-8"?>
 <html xmlns:fo="http://www.w3.org/1999/XSL/Format">
 inside:
   Some data
 </html>

Best regards.
Roman

David LAGARDERE wrote:

> For Judith : I have the xml & xsl prefix, so it
> doesn't come from here. Thanks for your test.
>
> For Luca : I don't use any namespace name.
>
> But I didn't precised that my XSL stylesheet
> is applied by Cocoon default XSLT Transformer. Could
> it help ?
>
> Regards,
>
> David LAGARDERE
>
> ___________________________________________________________
> 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>


Mime
View raw message