|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Removing line-feeds on a imported tree via documen
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@xxxxxxxxx> 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
> ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








