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

telling processor what to do

Subject: telling processor what to do
From: "abradoom" <thiabek@xxxxxxxxxxx>
Date: Wed, 21 Aug 2002 12:59:15 UT
processor what
I have already asked this few days before but did not get response to
this particular question as it was with another question.
I want to put a <br />tag in the output where ever it occurs in the
input but if they are just after  <a> tag or <li>tag or <br /> tag like
<a href="something">anchor</a><br/> or
<li>item 1</li>
<li>item 2</li>
<li>item 3</li><br />or
<br />
<br />
<br /> 
I do not want to put them in output so i tried this
<xsl:template match="br[not(preceding-sibling::node()[1][self::br])] |
br[not(preceding-sibling::node()[1][self::a])] |
br[not(preceding-sibling::node()[1][self::li])]">
	<br/>
</xsl:template>
But it is not working.how should i write it.
And if i want to tell that if <br /> has it's parent body  then do not
put <br /> in the output.
What should i write.
i tried 
<xsl:template match ="br[not(parent::body)]">
 <br />
</xsl:template>
But it is not working .
what should i write.
thiabek
-- 
http://fastmail.fm - Get back to work

 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.