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

RE: xmlns declaration causing transform to fail

Subject: RE: xmlns declaration causing transform to fail
From: "Gareth Sylvester-Bradley" <gareth.sbradley@xxxxxxxxxxxxxxx>
Date: Mon, 11 Jun 2001 21:22:29 +0100
fmpdsoresult
I think this behaviour is caused by two things.

You're seeing the contents of the ERRORCODE, DATABASE and LAYOUT nodes
because the apply-templates in your FMPDSORESULT template results in these
nodes being matched by the default rule. You need a rule to override the
default rule which does nothing, like

<xsl:template match="node()" />

Then, the namespace problem is a FAQ. What you're seeing is that both the
FMPDSORESULT node and the ROW nodes are being matched *not* by your template
but by the default rule and their content therefore being 'dumped' (the
default behaviour).

Why is your FMPDSORESULT template not being used? It's because XPath
expressions match the null namespace not the default namespace. Try adding a
namespace declaration to your stylesheet
(xmlns:fmpro="http://www.filemaker.com/fmpdsoresult") and then changing your
template so that you have

  match="fmpro:FMPDSORESULT"

and

  match="fmpro:ROW"

instead.

You'll probably also want to include "fmpro" in your stylesheet's
exclude-result-prefixes attribute.

Hope that helped.
Gareth

Sony Broadcast R&D




*************************************************************************
The information contained in this message or any of its
attachments may be privileged and confidential and intended 
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
**************************************************************************

 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.