Subject: Re: [xsl] Stupid newbie question.. From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 18 Oct 2002 15:49:34 -0400 |
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method = "html" encoding="Windows-1252" />
<xsl:template match="/"> <html> <xsl:if test="document/description"> <title><xsl:value-of select="document/description" /></title> </xsl:if>
<body> <xsl:if test="document/content"> <xsl:apply-templates select="document/content" /> </xsl:if>
</body> </html> </xsl:template>
<xsl:template match="document/content"> <xsl:apply-templates /> </xsl:template>
<xsl:template match="module"> <xsl:apply-templates select="@id" /> </xsl:template>
<xsl:template match="one"> This is module one. </xsl:template>
<xsl:template match="attribute::id[.='one']"> This is module one. </xsl:template>
<xsl:template match="attribute::id"> This is module <xsl:value-of select="."/>. </xsl:template>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Stupid newbie question.., Jordan S. Jones | Thread | Re: [xsl] Stupid newbie question.., David Carlisle |
[xsl] Re: msxml img tag problem, Dimitre Novatchev | Date | [xsl] Process same template 2X?, Geoff Hankerson |
Month |