[Home] [By Thread] [By Date] [Recent Entries]
On 5/3/06, Indira Hoti <IHoti@xxxxxxxxxxxxxxx> wrote:
Hi all, There's a couple of things going wrong here. First, you need to read up on namespaces. http://www.dpawson.co.uk/xsl/sect2/N5536.html My problem is in getting the xsl file to display that info. At the moment with the xsl code below I can extract some information, but its dsisplayed in one string or line, rather than assigned to a html table cell. Any suggestions would be appreciated. Thanks J
<soap:Body>
<UserId>hello</UserId> <?xml version='1.0'?> ^^^ why have some of these namespaces? You don't use all of them. And you're missing the one you do need to access, http://kkkk.com/DDiii. Add that with an appropriate prefix (say...DDiii). <xsl:template match="soap:Envelope/soap:Body/IdResponse/IdResult"> ^^ ^ Ok, you start the XPath correctly, but then leave out namespace for the elements in the http://kkkk.com/DDiii. <xsl:value-of select="LogonAndGetLogByAuthenticationIdResponse/LogonAndGetLogByAuthent icationIdResult/UserId"/> ^^^^^^ Where the heck is that path coming from? It's not in your example xml. I'm assuming you meant to simplify this for an example but didn't. Otherwise this isn't going to match anything. Something like: select="ddii:UserId" would though. ps: I'll do my usual rant. Download a command-line processor like xsltproc, Saxon or even Xalan. Converting via the browser hides too much for a beginning user and just adds more confusion. Jon Gorman
|

Cart



