Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 14th, 2007, 02:15 PM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to uicdbd
Default template

Hi, I am new at this and hope you can help.
We receive a XML file (sample record below) that I need to convert
with XSLT.

<?xml version="1.0" encoding="utf-8"?>
<ListingDataFeed xmlns="http://plat.point.com/schemas/2.0/listingDataFeed">
   <PublishDate>2007-03-02T14:25:35Z</PublishDate>
   <DocumentationUrl>http://plat.point.com/doc</DocumentationUrl>
   <Disclaimer>Information is deemed to be correct.</Disclaimer>
   <Copyright>Point2 Technologies, Inc.</Copyright>
   <Listings>
      <Listing>
         <ListingID>9011</ListingID>
         <PortalDomain>lonejam.point.com</PortalDomain>
         <ListDate>2003-01-15T06:00:00Z</ListDate>
         <LastUpdateDate>2003-04-26T15:53:00Z</LastUpdateDate>
         <Status>For Sale</Status>
         <Title>Homes for Sale in Texas $35,000</Title>

</Listing>
   </Listings>
</ListingDataFeed>

I want to only get the data starting with /Listings/Listing (get the ListingID first) but no matter what I do I get all of the data (like PublishDate, DocumentaionUrl etc.). Can someone please help ?

Thanks,

Dan




Reply With Quote
  #2 (permalink)  
Old March 14th, 2007, 06:16 PM
mhkay's Avatar
Wrox Author
Points: 18,274, Level: 58
Points: 18,274, Level: 58 Points: 18,274, Level: 58 Points: 18,274, Level: 58
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,932
Thanks: 0
Thanked 282 Times in 277 Posts
Default

Show us your code and then I can see where you have gone wrong, and help you to get over any learning obstacle you might have. Without knowing where you're stuck, all I can do is give you a potted introduction to the language, and there are plenty of those around already.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recursive Template Help bucky483 XSLT 1 July 20th, 2007 01:21 PM
template uicdbd XSLT 5 March 15th, 2007 01:54 PM
calling one template in other template VijayKumar XSLT 3 September 15th, 2005 12:12 PM
Template - parameters narooma.12 BOOK: Professional Crystal Reports for VS.NET 0 August 27th, 2004 01:45 AM



All times are GMT -4. The time now is 11:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.