This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

telling processor what to do


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
-- 
Access all of your messages and folders wherever you are! 
http://fastmail.fm - Get your mail using the web or your email software

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]