Loading ...
Sorry, an error occurred while loading the content.

Re: XSL looking up values in UDDI

Expand Messages
  • johncoe42
    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
    Message 1 of 3 , Feb 15, 2004
    • 0 Attachment
      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
      list:
      >
      > http://www.mulberrytech.com/xsl/xsl-list
      >
      > There are a number of subscribers who would enthusiastically
      respond to
      > such questions.
      >
      > There is also an *excellent* FAQ at:
      >
      > http://www.dpawson.co.uk
      >
      > At 2004-02-15 05:59 +0000, johncoe42 wrote:
      > >Can someone help me with a XPath expression that would access the
      XML
      > >below.
      >
      > "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
      > >nothing.
      >
      > But what is it you are trying to get?
      >
      > I notice in the retrieved instance that "businessServices" is a
      child of
      > businesEntity and a parent of businessService, so that is one
      problem with
      > your expression.
      >
      > I also note that the retrieved element is in the namespace, and in
      XPath
      > 1.0 any name in any namespace must have a namespace prefix; the
      default
      > namespace is never used in XPath: a name absent a prefix is assumed
      to be
      > 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"
      > xmlns:uddi="urn:uddi-org:api_v2"
      > version="1.0">
      >
      > <xsl:output method="text"/>
      >
      > <xsl:template match="/">
      > <xsl:for-each
      > select="document('http://uddi.microsoft.com/discovery?businesske
      > y=d12514bb-d802-4001-809d-b529df67bded')">
      > <xsl:for-each select="/uddi:businessEntity/
      >
      uddi:businessServices/uddi:businessService">
      > <xsl:value-of select="@serviceKey"/><xsl:text>
      > </xsl:text>
      > </xsl:for-each>
      > </xsl:for-each>
      > </xsl:template>
      >
      > </xsl:stylesheet>
      >
      > t:\ftemp>saxon john.xsl john.xsl
      > 7cacd5b7-1ceb-4853-a6a8-dd595aa3e121
      > ab23b495-f350-405d-a577-e671ce8a7bbb
      > 66ae0ea8-dd95-45fc-a529-8a8b1f00b1e4
      > 5bce7058-177a-46b6-873a-97a7573a4444
      >
      > t:\ftemp>
      >
      > --
      > 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
    Your message has been successfully submitted and would be delivered to recipients shortly.