Thanks Ken... you're right, adding the www made it work.
Unfortunately, this didn't help me much... as you might have guessed,
my example code was a stripped down version of a bigger, messier
"real world" code problem. And when I went back and looked at my real
world problem, I discovered that I hadn't omitted the www there. So
I'm still stuck, but I've at least eliminated the key-namespace
conflict theory.
With that in mind, I'll take another long look at my code and see if
that helps me determine the real problem.
Thanks-- Robert
On Nov 17, 2007, at 7:50 PM, G. Ken Holman wrote:
At 2007-11-17 18:10 -0600, Robert Carter wrote:
Is there a reason why <xsl:key> would break when a namespace is added
to the source document?
Only because of a finger problem ... you have a typo ... don't kick
yourself too hard when I tell you what it is.
...
All well and good. Now, I add a namespace to the input XML, so that
the first two lines read:
----
<?xml version="1.0" encoding="UTF-8"?>
<FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
----
...and I make the appropriate changes in my XSLT, adding the prefixes
where I reference an element, so that my transformation now looks
like this:
----
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns:fm="http://filemaker.com/fmpdsoresult"
Your problem is that your data namespace has "www" and your
stylesheet namespace doesn't.
I hope this helps.
. . . . . . . . . . Ken
--
Comprehensive in-depth XSLT2/XSL-FO1.1 classes: Austin TX,Jan-2008
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds: publicly-available developer resources and training
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--