[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How to used HTML tags with XML/XSL


Subject: Re: [xsl] How to used HTML tags with XML/XSL
From: Ahmed El-dawy <aseldawy@xxxxxxxxx>
Date: Fri, 14 Jan 2005 17:56:49 +0200

I write XML and use XSL to transform it to HTML. All what I need is
that when I write in XML file the tag <br/> or other HTML tags like
<font> it is written at the output file (HTML file) exactly as I write
it.
When I specify it explicitly I write a statement in the XSL file like this:

<xsl:template match="br">
<br/>
</xsl:template>

It gets much worse when there are parameters or sub tags (like <table>
<tr> <td>)

I think it is clear now


On Fri, 14 Jan 2005 15:37:06 +0000, Antsnio Mota <amsmota@xxxxxxxxx> wrote:
> You need to explain that better: What do you mean by "I can't use
> normal HTML tags (like <br>)" or  "way to use all HTML tags without
> specifying them explicitly"...
>
> What is the outpout method of ypur XSL?
>
> Maybe if you post some example will help...
>
> On Fri, 14 Jan 2005 09:25:25 +0200, Ahmed El-dawy <aseldawy@xxxxxxxxx>
wrote:
> > Hello,
> >  I build my home page using XML and write XSL file to transform it to
> > HTML. The problem is that I can't use normal HTML tags (like <br>)
> > unless specifying it explicitly in the XSL file I make. This will be
> > hard with tags like <table>. Is there a way to use all HTML tags without
> > specifying them explicitly.
> >
> > --
> > Regards,
> > Ahmed Saad
>
>


--
Regards,
Ahmed Saad


Current Thread
Keywords