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

Re: problem child (X-path)

Subject: Re: problem child (X-path)
From: Trevor Nash <tcn@xxxxxxxxxxxxx>
Date: Wed, 02 Oct 2002 14:53:45 +0100
problem child 2
On Wed, 2 Oct 2002 00:32:51 -0700 (PDT), DEV SEN wrote:

>I'm having an X-path problem.
>
>At the beginning of my xsl file I have <xsl:template
>match="/">. Later in the file I use other statements
>with template matching, i.e. <xsl:template
>match="something here">.
>
>When I try to transform the file I get an error of
>"Unexpected Child". What's going on and how do I fix
>it?
>
Oh good, another guessing game ;-)

That message doesn't look to me like an XPath problem or an XSLT
problem: its more likely to be that  your input document doesn't obey
the rules in the DTD or Schema.  There is an element inside another
element which should not be there.

If that isn't it, you need to show us your input XML and your
stylesheet, and tell us what XSLT processor you are using.

If you do not see the problem, the usual reason is that you are
looking in the wrong place: if you only give us the things you have
looked at, we can't see it either.

If the files are large, then try to cut them down to the smallest
files which still show the problem.  You migh even find it yourself.

Trevor Nash
--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 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.