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 March 14th, 2007, 01:15 PM
Registered User
 
Join Date: Mar 2007
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




 
Old March 14th, 2007, 05:16 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 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





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





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