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

Re: xalan error with plain text

Subject: Re: xalan error with plain text
From: Christian Roth <roth@xxxxxxxxxxxxxx>
Date: Sat, 12 Jan 2002 16:15:29 +0100
Re:  xalan  error with plain text
Hi Michael,

><xsl:stylesheet version="1.0" 
>   <xsl:output method="text" />
>   <xsl:template match="document">
>     <xsl:apply-templates />
>   </xsl:template>
>   <xsl:template match="title">
>     <xsl:value-of select="." />
>   </xsl:template>

I don't know about the exception, but I think you do not have a template
for the document root. So, you should at least add

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

This is what cost me some time to figure out: <document /> is not the
document root, but the one and only child of the document root. And it's
the document root where the processor starts to work.

HTH, Christian.

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

Current Thread


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.
First Name
Last Name
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.