Re: XSL looking up values in UDDI
- Thank you, the namespace declaration was the issue, now I can ship
out XSLs and enable/disable features, very cool. Thanks for your
help, I will check mulberrytech and FAQ nexttime. When I searched on
the web for XSL w/UDDI , I thought that there should be something
using it together.
--- In XSL-FO@yahoogroups.com, "G. Ken Holman" <gkholman@c...> wrote:
> XSLT and XPath questions would be better posted to the following
> There are a number of subscribers who would enthusiastically
> such questions.
> There is also an *excellent* FAQ at:
> At 2004-02-15 05:59 +0000, johncoe42 wrote:
> >Can someone help me with a XPath expression that would access the
> "Access the XML" to get at what?
> >I have tried 'select ="businessEntity/businessService"'
> >and a couple other selects in the for-each, but I get everything or
> But what is it you are trying to get?
> I notice in the retrieved instance that "businessServices" is a
> businesEntity and a parent of businessService, so that is one
> your expression.
> I also note that the retrieved element is in the namespace, and in
> 1.0 any name in any namespace must have a namespace prefix; the
> namespace is never used in XPath: a name absent a prefix is assumed
> in no namespace.
> I've guessed that the example below is what you are looking for.
> I hope this helps.
> ..................... Ken
> t:\ftemp>type john.xsl
> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> <xsl:output method="text"/>
> <xsl:template match="/">
> <xsl:for-each select="/uddi:businessEntity/
> <xsl:value-of select="@serviceKey"/><xsl:text>
> t:\ftemp>saxon john.xsl john.xsl
> Public courses: upcoming world tour of hands-on XSL training events
> Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
> Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22
> Hong Kong: 2004-05-17 Germany: 2004-05-24 England: 2004-06-07
> World-wide on-site corporate, government & user group XML training!
> G. Ken Holman mailto:gkholman@C...
> Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
> Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
> Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc