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 November 28th, 2013, 09:16 AM
Authorized User
 
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





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





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