Yes, you're (ofcourse) right. My particular problem however is how to
apply the templates to it, i have to have a structure like
<xsl:for-each select="$xmldoc/Menu">
<Menu>
<xsl:apply-templates
select="*"/>
</Menu>
</xsl:for-each>
and then
<xsl:template match="MenuData">
<xsl:copy><xsl:value-of select="normalize-space(.)"/></xsl:copy>
</xsl:template>
I can't have a
<xsl:apply-templates select="$xmldoc/Menu"/>
<xsl:template match="Menu"> because i allready have one of these,
unless i use modes, but then again the solution from Wendell seems to
do the same with more "style"...
Thanks for clarifying my question.
On Wed, 26 Jan 2005 06:55:47 -0800 (PST), David Carlisle
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
so they aren't in the original tree and it seems that the
<xsl:template match="MenuData"> doesn't match then.
Or should they being matched?
They will match (assumning the elements do have name MenuData in
no-namespace) but like any template, the template will only be executed
if templates are applied to the matching nodes with
xsl:apply-templates. If you use xsl:copy-of (for example) then what you
get is a copy and no templates will have any effect.
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--