1

Topic: XLST in Orakl LPX-602 invalid child element for-each

with xml_table as (
select xml;
XMLTYPE.createxml (
' <xsl:stylesheet version = "1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
<xsl:template match = "root">
<root> <xsl:apply-templates/> </root>
</xsl:template>
<xsl:for-each match = "col">
<! - I want to be transversed on all cells of a label->
</xsl:for-each>
</xsl:stylesheet> ') xls
from (
select xmlType (' <root><row><col>1</col><col>2</col></row><row><col>3</col><col>4</col></row></root> ') xml from dual)
)
select XMLTRANSFORM (xml, xls).GETCLOBVAL () from xml_table

Produces an error -

2

Re: XLST in Orakl LPX-602 invalid child element for-each

[quote =-2] AnnitaBells;
xml does not correspond xsd for xslt.

What exactly not so?