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 October 12th, 2005, 11:50 AM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling Other xml from stylesheet

Ok, I don't have a lot of experience with XSLT or XML, but I have a dilemma I need to solve. I'll set up the scenario and I greatly appreciate any help I can get.

My XML has this structure and it's called index.xml.

content
expert/
feature
feature_story_1_link/
feature_story_2_link/
feature_story_3_link/
feature/
other_link
link/
link/
other_link/
content/



The value stored in the feature_story_1_link is a reference to another XML file e.g. /news/news_000123.xml.

Inside /news/news_000123.xml information is stored regarding a large picture and a thumbnail and some other text. Like this:

content
summary/
body/
image_src_lg/
image_src_th/
image_caption/
image_alt_text/
media_contact/
content/

Now for the question. In the XSL for index.xml how do I refer to the information inside /news/news_000123.xml so that I only display the the image_src_th and summary inside index.asp?

Thanks in advance for the help.

Jef


 
Old October 12th, 2005, 01:02 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I don't fully understand your notation but perhaps it doesn't matter.

You want something like

select="document(feature_story_1_link)/content/image_src_th"



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
Calling Axis web service from .Net - XML Exchange Koushik .NET Web Services 0 October 23rd, 2006 11:40 AM
2 XML Docs > 1 XSLT Stylesheet kwilliams XSLT 3 September 12th, 2005 11:22 AM
Multiple XML Docs/One XSLT Stylesheet kwilliams XSLT 5 August 4th, 2005 11:54 AM
Create XML Doc with Stylesheet Declaration rodmcleay General .NET 1 November 15th, 2004 04:11 AM
Basic: Calling variable in ASPX from XML DolphinBay ASP.NET 1.0 and 1.1 Basics 11 April 21st, 2004 09:21 AM





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