David Carlisle wrote:
So how can I create the element <SubConcepts> below <Top> and not
<PrimeConcept> ?
just move it there in the stylesheet, what's the problem?
The problem lies in that a <SubConcepts> node is created only if there
exists some 'Toyota'. So I've created the <SubConcepts> node dynamically
inside the <xsl:template> of the <PrimeConcept> node. A simple
<xsl:element name='SubConcepts'> within this template automatically
places it as a child of <PrimeConcept>. However I want <SubConcepts> to
be the child of <Top> even though its being created inside the
<PrimeConcept> template.
incidentally
<xsl:element name="SubConcept">
<xsl:attribute name="id"><xsl:value-of
select="@id"/></xsl:attribute>
<xsl:attribute name="name"><xsl:value-of
select="@name"/></xsl:attribute>
</xsl:element>
is a very long way of writing
<SubConcept id="{(_at_)id}" name="{(_at_)name"/>
This looks neat. Will refine my code. Thanks
Rahil
--~------------------------------------------------------------------
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>
--~--