Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
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 Search this Thread Display Modes
  #1 (permalink)  
Old November 28th, 2013, 09:16 AM
Authorized User
Points: 151, Level: 3
Points: 151, Level: 3 Points: 151, Level: 3 Points: 151, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2013
Posts: 31
Thanks: 3
Thanked 0 Times in 0 Posts
Angry get value from different document

I've the below piece of XML.

HTML Code:
<toc-div>
        <title>CHAPTER 1 INTRODUCTION</title>
        <subtitle>
            <content-style font-style="italic">David Smith</content-style>
        </subtitle>
        <toc-item>
            <toc-title>1. Love on the Star Ferry</toc-title>
            <toc-pg>2</toc-pg>
        </toc-item>
        <toc-item>
            <toc-title>2. Contracts, Torts, Copyrights and Other Mysteries of the Legal World</toc-title>
            <toc-pg>2</toc-pg>
            </toc-item>
            </toc-div>
here actually i want to get the reference that matches the title from different document.

the second document i have is

HTML Code:
<chapter num="1">
    <toc>
        <toc-part>
            <toc-div>
                <toc-item>
                    <toc-title>1. Love on the Star Ferry</toc-title>
                    <toc-pg>1.002</toc-pg>
                </toc-item>
                <toc-item>
                    <toc-title>2. Contracts, Torts, Copyrights and Other Mysteries of the Legal World</toc-title>
                    <toc-pg>1.004</toc-pg>
                </toc-item>
            </toc-div>
        </toc-part>
    </toc>
</chapter>
the condition is , first he title should be matched in both cases and then the <toc-pg> should be taken and displayed. i'm able to redirect to that document by using the below xslt, but i'm unable to know how i can retrieve these values. below is the XSLT i tried.


please let me know how can i see the value expected.

Thanks
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Copy a document to another justabeginner Word VBA 1 March 31st, 2007 06:44 AM
Document viewer baburman General .NET 4 November 2nd, 2006 05:12 AM
Document(.....) Ma7T XSLT 1 August 2nd, 2005 06:32 AM
Document all pallone Javascript How-To 2 January 28th, 2005 01:37 PM



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


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