Subject: Re: [xsl] Using doc( ) to get a second input file From: "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 14 Apr 2015 20:21:30 -0000 |
I've tried to solve the problem two different ways, but neither works. First I tried adding a xpath specification to the doc function so that the returned XML would start at the element I was interested in, like so:
<xsl:variable name="myActionSet"
select="doc('file://sashq/root/pub/pubs_xiswork/sascrs/prod/v16/eclipse/workspace/castest/xml/actions.xml')//actionSet[@id='abc']"/>
but that caused the function to fail and not fetch the second file.
I also tried a fragment specification "#actionSet" but this also failed.
I then tried to kick the second input files root element out of my root template with a test for ancestor-or-self::casActions and a test for descendant-or-self::casActions. But neither of these tests worked on the fetched second file.
Any help would be appreciated in solving this problem.
-- Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/video.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: http://plus.google.com/+GKenHolman-Crane/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
--- This email has been checked for viruses by Avast antivirus software. http://www.avast.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using doc( ) to get a second , Craig Sampson craig. | Thread | Re: [xsl] Using doc( ) to get a sec, Dimitre Novatchev dn |
Re: [xsl] Using doc( ) to get a sec, Eliot Kimber ekimber | Date | Re: [xsl] Using doc( ) to get a sec, Dimitre Novatchev dn |
Month |