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

RE: my output just contains xsl code

Subject: RE: my output just contains xsl code
From: sara.mitchell@xxxxxxxxx
Date: Tue, 6 Jun 2000 13:23:45 -0400
contains xsl
You fell foul of one requirement that may seem obvious (but others
have also missed it including myself): At least one of your templates
must 'select' a node to apply the template to. What you need
is something more like this: 

<xsl:template match="/">
 <xsl:apply-templates select="html"/>
</xsl:template>	

<xsl:template match="html">
 <wml><xsl:apply-templates select="body"/></wml>
 </xsl:template>
 	
<xsl:template match="body">
 <card><xsl:apply-templates/></card>
</xsl:template>

Sara

> -----Original Message-----
> From: Laura Price [mailto:lprice@xxxxxxx]
> Sent: Tuesday, June 06, 2000 7:55 AM
> To: XSL-List@xxxxxxxxxxxxxxxx
> Subject: my output just contains xsl code
> 
> 
> I'm trying to convert html to wml... i've made a simple xml 
> document and an
> xslt stylesheet  to make the conversions.  The output is 
> supposed to be wml
> code, but whenever I apply the stylesheet to the xml 
> document, the output I
> get is just a regurgitation of the xslt stylesheet code.
> 
> For example, my stylesheet (much simplified) looks like this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 
> <xsl:template match="/">
> 	<xsl:apply-templates/>
> </xsl:template>	
> 
> <xsl:template match="html">
> 	<wml><xsl:apply-templates/></wml>
> </xsl:template>
> 	
> <xsl:template match="body">
> 	<card><xsl:apply-templates/></card>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> And all my output file contains is this exact same code.  
> What did I manage
> to screw up?
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread

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.