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

xmlns declaration causing transform to fail

Subject: xmlns declaration causing transform to fail
From: Chris Kruse <Kruse@xxxxxxxxxxxxxx>
Date: Mon, 11 Jun 2001 12:54:32 -0700
xmlns declaration
Hi,
I am working with a xml document, dumped from FileMaker Pro : ^( , and it
looks something like this:

<FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
	<ERRORCODE>0</ERRORCODE>
	<DATABASE>wdb.fp5</DATABASE>
	<LAYOUT/>
	<ROW MODID="24" RECORDID="32769"
	...
	</ROW>
	... more ROW elements
</FMPDSORESULT>

I have a stylesheet that works if I remove the xmlns attribute from the
opening FMPDSORESULT tag, except that it prepends output with the values of
the first three child (ERRORCODE,DATABASE,LAYOUT) tags (?). When the xmlns
attribute is in the there, the transform dumps everything out in a
contiguous string, and the subsequent template, matching ROW, isn't applied
(as if it was already at the end of the document). I can't configure
FileMaker to leave the xmlns attribute out so that is not an option. 

Does anyone know of why this is happening, a way arround it? I'm using XML
Spy, and have tried both Saxon and IE to transform the document with same
result. I've also tried varying patterns in the initial match attribute, but
still can't solve this issue.

My stylesheet is simple... like so:

<xsl:template match="FMPDSORESULT">
	<ul>
		<xsl:apply-templates/>
	</ul>
</xsl:template>
<xsl:template match="ROW">
	<li><ul>
		<li><xsl:value-of select="due_date"/></li>
    		<li><xsl:value-of select="title"/></li>
	</ul></li>
</xsl:template>


Thanks for your help!


Christopher R. Kruse

Expertcity.com

Tel: 805-690-6418
Cel: 917-288-3542

 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.