Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 14th, 2010, 03:43 AM
Registered User
 
Join Date: Sep 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to get value of element

Hi all,

I'm have some problems with selecting values of element.

Here is a part of my xml input file:

************************************************** *****
<?xml version="1.0" encoding="UTF-8"?>
<NotifyShipment xsi:schemaLocation="http://www.B2Boost.com/oagis Overlay/B2Boost/BODs/NotifyShipment.xsd" xmlns:oa="http://www.openapplications.org/oagis/9" xmlns:clmIANAMIMEMediaTypes="http://www.openapplications.org/oagis/9/IANAMIMEMediaTypes:2003" xmlns:oacl="http://www.openapplications.org/oagis/9/codelists" xmlns:clm54217="http://www.openapplications.org/oagis/9/currencycode/54217:2001" xmlns:clm5639="http://www.openapplications.org/oagis/9/languagecode/5639:1988" xmlns:qdt="http://www.openapplications.org/oagis/9/qualifieddatatypes/1.1" xmlns:clm66411="http://www.openapplications.org/oagis/9/unitcode/66411:2001" xmlns:udt="http://www.openapplications.org/oagis/9/unqualifieddatatypes/1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" releaseID="1.0" xmlns="http://www.B2Boost.com/oagis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<oa:ApplicationArea>
<oa:Sender>
<oa:LogicalID>81</oa:LogicalID>
<oa:TaskID>DESADV</oa:TaskID>
</oa:Sender>
<oa:Receiver>
<oa:LogicalID>2913</oa:LogicalID>
</oa:Receiver>
<oa:CreationDateTime>2010-07-01T00:00:00</oa:CreationDateTime>
<oa:BODID>XXXXX</oa:BODID>
</oa:ApplicationArea>
************************************************** *****

When I want to do a value of select on one of the element I get no data...

************************************************** *****
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<notifyshipment xmlns:oa="http://www.openapplications.org/oagis/9">
<header>
<documentid><xsl:value-of select="/NotifyShipment/DataArea/Shipment/ShipmentHeader/oa:DocumentReference/oa:DocumentID/oa:ID"/></documentid>
<customerpartyid/>

************************************************** *****

Is there someone how knows what the problem is??? I think it has something to do with namespaces...

thnks!!!

Robert van Gangelen





Similar Threads
Thread Thread Starter Forum Replies Last Post
processing element within element Krippers XSLT 2 February 15th, 2010 11:06 AM
Chapter 9: Element[user control] is not a known element Arya BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 December 20th, 2009 07:31 AM
Problem adding element to the previous element dani1 XSLT 5 September 10th, 2008 01:38 AM
adding of element and assigning to one element sushovandatta XSLT 2 November 16th, 2004 07:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.