[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

Subject: Re: Removing line-feeds on a imported tree via document
From: António Mota <amsmota@xxxxxxxxx>
Date: Wed, 26 Jan 2005 16:38:56 +0000
mota e david
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
> ________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.