xsl-list
[Top] [All Lists]

Re: Converting Flat XML to Hierarchical structure using xsl.

2005-11-14 02:59:36
Raj,

   <xsl:apply-templates select="ordered-list/list-item/"/>

If you want to select list-item elements, the above should be:
<xsl:apply-templates select="ordered-list/list-item"/> (that is,
without the trailing /).

From the output I expect that you get the default templates. That
would then be why you get the text() elements in the output.

The match="ordered-list/list-item/" should be match="ordered-list/list-item".
And in this example, you could as well have match="list-item".

Ragulf Pickaxe :-)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--