-
Aug 29th, 2012, 02:33 PM
#1
Thread Starter
Frenzied Member
-
Aug 30th, 2012, 03:58 PM
#2
Addicted Member
Re: Accessing another xml file from within xsl:for-each
It is possible to do what you are attempting to achieve. I wish there was a chunk of your code. However, take a look at the Zvon website
http://zvon.org/xxl/XSLTutorial/Books/Book1/index.html for possible solutions in their tutorials' sections.
Hope that helps.
-
Aug 31st, 2012, 07:09 AM
#3
Re: Accessing another xml file from within xsl:for-each
I would combine both xml files before sending it to the xsl
-
Aug 31st, 2012, 07:14 AM
#4
Thread Starter
Frenzied Member
Re: Accessing another xml file from within xsl:for-each
Thanks for that info, Mark. I was starting to think that was the case.
I always add to the reputation of those whose posts are helpful, and even occasionally to those whose posts aren't helpful but who obviously put forth a valiant effort. That is, when the system will allow it.
My war with a browser-redirect trojan
-
Sep 10th, 2012, 07:02 AM
#5
Re: [RESOLVED] Accessing another xml file from within xsl:for-each
I think you are stretching what is practical to do with XSL — perhaps you would be better off loading the files into an XML database?
-
Sep 10th, 2012, 07:17 AM
#6
Thread Starter
Frenzied Member
Re: [RESOLVED] Accessing another xml file from within xsl:for-each
Here's an example that I found that is being used by another developer on our team:
Code:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="es_related_report.xsl"?>
<!DOCTYPE es_related_codes
[
<!ENTITY related_codes SYSTEM "../qde_related_codes.xml" >
<!ENTITY type_codes SYSTEM "../typecodes.xml" >
<!ENTITY criteria SYSTEM "../qde_criteria.xml" >
]
>
<es_related_codes>
&related_codes;
&type_codes;
&criteria;
</es_related_codes>
The xsl file references this xml file, which is actually a combination of three other files, as I understand it. So I'm trying to do a similar thing myself, but I'm having issues. I may have to post a thread about that later.
I always add to the reputation of those whose posts are helpful, and even occasionally to those whose posts aren't helpful but who obviously put forth a valiant effort. That is, when the system will allow it.
My war with a browser-redirect trojan
-
Sep 10th, 2012, 12:49 PM
#7
Thread Starter
Frenzied Member
Re: [RESOLVED] Accessing another xml file from within xsl:for-each
OK. I posted a new thread about the issues I'm having loading the new document. If you're interested you can look here:
http://www.vbforums.com/showthread.p...ading-xml-file
Thanks for the assistance, folks.
I always add to the reputation of those whose posts are helpful, and even occasionally to those whose posts aren't helpful but who obviously put forth a valiant effort. That is, when the system will allow it.
My war with a browser-redirect trojan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|