[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: what should be the correct subject line

Subject: RE: what should be the correct subject line
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Tue, 13 Aug 2002 09:56:31 +0100
tempates
thiabek wrote:
> hello thanks
> but it is not working.
> I want output in wml format and it is coming but with some unwanted
> entities.
> the <p> </p> are still in the output.
> What can be the reason.

Most likely one of your templates is putting them there.

> And testing for <br>what you have suggesterd is like reverse of what i
> wanted.
> by writing 
> <xsltemplate match="a/br | li/br | br/br">
> <xsl:apply-tempates />
> </xsl:template>
> i would have to write <xsl:template match="p/br | div/br and so on">
>                          </br>
>                      </xsl:template>

No, all you'd need to write is 
	<xsl:template match="br">
		<br>
			<xsl:apply-templates/>
		</br>
	</xsl:template>
because of the precedence rules for templates. The first template is more
specific, so 
it has higher priority, so any <br>s with <a> <li> or <br> parents will be
matched by that
while any other <br>s will be matched by the one I've given you.

try it.
Tom

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.