[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl pipeline?

Subject: RE: xsl pipeline?
From: Cams Ismael <Ismael.Cams@xxxxxxxxxxxxxxx>
Date: Wed, 22 Jan 2003 11:39:39 +0100
wed cams
> <?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)

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.