[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: "abradoom" <thiabek@xxxxxxxxxxx>
Date: Tue, 13 Aug 2002 08:39:57 UT
correct br
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.
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>


What i wanted in one code cover whole thing.
i have written in my mail what i tried.

thiabek



On Mon, 12 Aug 2002 09:02:39 +0000, "Vasu Chakkera"
<vasucv@xxxxxxxxxxx> said:
> 
> What do you want the output to look like??and what is the output file
> format 
> you are expecting?
> 
> 
> >i have posted the same problem 2 times but no one seems to give a
> >reply.
> >atleast one can tell me what is the reason .
> >
> >here are input and out put.
> >input html.
> ><html>
> ><head>
> ><meta name="generator" content="HTML Tidy, see www.w3.org" />
> ><title>HELLO LIST</title>
> ></head>
> ><body bgcolor="#C4C4C4" text="#443481" link="#1111EE">
> ><p>This is for br tag</p>
> ><div>The stylesheet is doing some mischief</div>
> ><div><font size="+1">WHAT IS THE REASON ?</font></div>
> ><br /><br /><br /><br /><br /><br />
> ><p>Is it not the proper syntax for matching<br />tag.</p>
> ><br />
> ><br />
> ></body>
> ></html>
> >
> >xsl is.
> ><?xml version="1.0"?>
> ><xsl:stylesheet version="1.0"
> >xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> ><xsl:output omit-xml-declaration="yes"/>
> ><xsl:template match="/">
> ><wml>
> ><card title="output">
> ><xsl:apply-templates/>
> ></card>
> ></wml>
> ></xsl:template>
> ><xsl:template match="head"/>
> ><xsl:template match="body">
> ><xsl:apply-templates/>
> ></xsl:template>
> >
> ><xsl:template match="p/div | div/div | center/div | font/div">
> ><xsl:apply-templates/>
> ></xsl:template>
> >
> ><xsl:template match="div">
> ><p><xsl:apply-templates/></p>
> ></xsl:template>
> >
> ><xsl:template match="font/p | center/p | div/p | p/p">
> ><xsl:apply-templates/>
> ></xsl:template>
> >
> ><xsl:template match="p">
> ><p><xsl:apply-templates/></p>
> ></xsl:template>
> >
> ><xsl:template match="p/font | center/font | div/font | font/font">
> ><xsl:apply-templates/>
> ></xsl:template>
> >
> ><xsl:template match="font">
> ><p><xsl:apply-templates/></p>
> ></xsl:template>
> >
> ><xsl:template match="font/br | div/br | center/br | p/br ">
> ><br/>
> ></xsl:template>
> >
> ><xsl:template match="body/text()">
> ><p><xsl:apply-templates/></p>
> ></xsl:template>
> >
> ></xsl:stylesheet>
> >
> >and the output is
> >
> ><?xml version="1.0"?><!DOCTYPE wml PUBLIC '-//WAPFORUM//DTD WML
> >1.2//EN'
> >   'http://www.wapforum.org/DTD/wml_1.2.xml'><wml><card title="wml
> >   output">
> >
> ><p>
> ></p><p>This is for br tag</p><p>
> >
> ></p><p>The stylesheet is doing some mischief</p><p>
> >
> ></p><p>WHAT IS THE REASON ?</p><p>
> >
> ></p><p>
> ></p><p>
> ></p><p>
> ></p><p>
> ></p><p>
> ></p><p>
> ></p><p>Is it not the proper syntax for matching<br/>
> >tag.</p><p>
> >
> ></p><p>
> ></p><p>
> ></p>
> ></card></wml>
> >
> >Here so many unwanted <p> and </p> .why? and how to remove them with
> >the condition that if some text is not in side of any tag but body it
> >should be outputted.
> >(<html>...<body>
> >some text not in any tag
> ><p>some text in side p tag</p>
> ></body></html>)
> >And if i want to test for <br /> that if it is just after a <a> or <li>
> >or <br /> then do not put <br /> in output.
> >I tried
> ><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 not working
> >thiabek
> >
> >
> 
> 
> 
> 
> _________________________________________________________________
> Join the world?s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 

-- 
http://fastmail.fm -- Does exactly what it says on the tin

 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.