OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Creating HTML tags through XSL.

[ Lists Home | Date Index | Thread Index ]
  • From: THOMAS PASSIN <tpassin@idsonline.com>
  • To: <prasadm@crt.com>, <xml-dev@ic.ac.uk>
  • Date: Fri, 28 Jan 2000 20:25:23 -0500

<prasadm@crt.com> wrote

> Hi folks,
>
> Asking for help once again. Has anyone been successful in creating HTML
> tags through XSL. What really my problem is we have an XML document of
> say 100 records. Now I want to split them up into 10 layers/div's
containing
> 10 rows
> in each page. I want to create something like this.
>
> <xsl:template match="ROW">
>     &lt; /TABLE &gt;
>     &lt; /FORM &gt;
> <xsl:apply-templates/>
> </xsl:template>
>
> The above XSL should generate for me the tags
> </TABLE></FORM> as part of the html doc being created. But instead
> these tags appear on the browser. Is there anyway to force these tags
> to be part of the html doc. or Is it not possible at all?
>
If you use the entities &lt; and so on, you will get those CHARACTERS (not
markup) in the output.  But they will be excaped characters, not markup, as
you have seen.
If you want to output a table element, you need to output  complete
elements, possibly like this:

<xsl:template match="ROW">
<table><form><xsl:apply-templates/></form</table>
</xsl:template>

There are other possiblities, but this is the easiest.

Tom Passin


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom@ic.ac.uk the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS