[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: xsl pipeline?
From: Cams Ismael <Ismael.Cams@xxxxxxxxxxxxxxx>
Date: Wed, 22 Jan 2003 11:39:39 +0100
> <?xml version='1.0'?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

> <xsl:output method="xml"/>
> <xsl:template match="/">
> <xsl:apply-templates/>
> <xsl:for-each select="SITES/CONTENT">
> <xsl:if match=".[LAN='1']">
> <xsl:copy-of select="."/>
> </xsl:if>
> </xsl:for-each>
> </xsl:template>

> </xsl:stylesheet>
> </xsl:stylesheet>

Hello,

I am afraid your XSL is not really valid XSL. You can not put one
<stylesheet> tag in another. 
Why do you put the <for-each> in the template match. You 'd better use:
	<apply-templates select="SITES/CONTENT"/>

Then you define a template: (I don't know what you want to do, so this is
just an example)
	<template match="CONTENT">
		e.g.
		<xsl:if test="[@LAN='1']>
			<copy-of select="."/>
		</xsl:if>
	</template>

I think you should better start with an xslt tutorial or book to help you
understand the basics of XSL. Otherwise it will be very difficult to write
an XSL that works.

Kind regards,
Ismael

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


Current Thread
  • xsl pipeline?
    • Errea Alexandra - Wed, 22 Jan 2003 05:14:53 -0500 (EST)
      • <Possible follow-ups>
      • Cams Ismael - Wed, 22 Jan 2003 05:43:20 -0500 (EST) <=
      • cknell - Wed, 22 Jan 2003 09:49:03 -0500 (EST)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member