473,626 Members | 3,343 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

referencing external xml file

I have one xml file, content.xml, and three views, 1.xsl, 2.xsl, 3.xsl.
I would like to be able to link from any of the views to any of the
other views.

I can do this if I use, say saxon to create 1.html, 2.html, 3.html -
then 1.html has a hyperlink in it somewhere that points to
2.html#anchorNa me.

What I want is to be able to do the same thing using *in-browser xslt*,
for example by having 1.xml, 2.xml, 3.xml each reference its
corresponding stylesheet, but *all read their content from content.xml*
(then we would link accross files using eg 2.xml#anchorNam e).

This may be incredibly simple, but I have noooo idea how to get the
content of one xml file into another xml file.

Any advice on this, or an alternative solution, greatly appreciated.

Dec 29 '05 #1
1 1268
go****@thegolde nsun.com wrote:
I have one xml file, content.xml, and three views, 1.xsl, 2.xsl,
3.xsl.
I would like to be able to link from any of the views to any of the
other views.

I can do this if I use, say saxon to create 1.html, 2.html, 3.html -
then 1.html has a hyperlink in it somewhere that points to
2.html#anchorNa me.

What I want is to be able to do the same thing using *in-browser
xslt*, for example by having 1.xml, 2.xml, 3.xml each reference its
corresponding stylesheet, but *all read their content from
content.xml* (then we would link accross files using eg
2.xml#anchorNam e).

This may be incredibly simple, but I have noooo idea how to get the
content of one xml file into another xml file.


But in this case you explicitly _don't_ want to "get the content of one
xml file into another xml file", you want to reprocess the same file
using a different stylesheet. In server-side processing (eg Cocoon) this
is easy, because all you need to do is output a link to a URI which the
server will interpret as being the same file processed by a different
stylesheet. In theory you should be able to do this by specifying
multiple xml-stylesheet PIs, see http://www.w3.org/TR/xml-stylesheet/
but browser-side XML is like browser-side XSLT: incomplete and patchy,
and inconsistent between browsers.

///Peter
--
XML FAQ: http://xml.silmaril.ie/

Dec 29 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8400
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one file rc4.obj(rc4.c),it is creating the .dll file without any error. Command : ILINK32 rc4.obj 2.But,when we are trying to create .dll file with two .obj files with following errors.
2
3185
by: Torrance S. | last post by:
Hi, I have a class in an assembly that references a value in web.config like this: <appSettings> <add key="mykey" value="myvalue"/> </appSettings> string temp = System.Configuration.ConfigurationSettings.AppSettings.Get("mykey");
1
3545
by: DjordjeD | last post by:
I need to call(reference) class member "PrintDestination.PrintDestinationPrinter" from another file. How do I do it, I tried "ReportRenderer.PrintDestination.PrintDestinationPrinter" but it doesn't work. Please help! here is my class: *****************************************
6
2470
by: Mikey_Doc | last post by:
Hi We are running cms 2002, Framework 1.0 with Visual studio 2002. We have just upgraded to Framework 1.1 and visual studio 2003. All of our database connection strings are stored within the machine config, this was necessary as our web site has 4 environments and the database server has a different name in each. Since the upgrade the applications can't read the strings in the
1
1631
by: Mike | last post by:
Hello, I am attempting to develop a class that will inherit from System.Web.UI.Page to serve as a the base class for all of the code behind classes in my web application. I would like to store the class as a single file (basepage.cs) and not in an assembly. (The class does not have access to the ASP.NET Request Object or Server object when stored as an assebly). How do I go about referencing this class? Is there a way to add it to...
2
4066
by: Axel | last post by:
Hi, a question about something that seems very simple at first glance: is it possible to reference other controls of a subform in a query window without referencing through the parent form? I want to do this as I want to use same subform on two different parent forms. Main problem is that the subform is not part of the forms collection. The only workaround I found was setting the query in code in the
3
3948
by: dfranzen | last post by:
Hi *, I'm in the process of porting an ANSI C++ project from a UNIX platform to .NET. After "getting rid of" some platform-specific stuff I managed to compile the first two libraries into mixed assemlies (DLLs) using MSVC8 (VS2005) with the /clr option. However, I get hundreds of linker errors (mostly LNK2028) because assembly B uses native types defined in assembly A. I could easily get rid of the problem by #including the original source...
2
5316
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2 Ask on python-list@python.org . - Josiah
1
1081
by: pipbailey | last post by:
I have a VB.net EXE application (VS05). It is really just an empty MDI container for lots of forms that are also VB.net forms, but are in other external DLL assemblies (some VS03 others VS05). I have built two such external assemblies and loading the forms in my EXE container is easy. I just reference the assembly in Project References and then import the namespace. Bingo! My question is that the project references screen displays the...
0
8272
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8713
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8644
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8370
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8514
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7206
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6126
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1516
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.