Subject: [xsl] xsltproc and multiple input files From: Eric White <eric.white@xxxxxxxxxxx> Date: Mon, 10 Apr 2006 10:38:12 -0500 |
xsltproc ../xslt/update-phys-interfaces.xsl /tmp/foo2.xml ../etc/server.xml
foo2.xml root is <physDiscoveredInterfaceTable> server.xml root is <server>
I want to access elements in the first XML file from templates matching elements in the second XML file. I'd like to use syntax like this while processing templates matching elements in the <server> node tree:
<xsl:when test="(physInterfaceBus = //physDiscoveredInterfaceTable/physDiscoveredInterfaceTableRow/physDiscoveredInterfaceBus)">
rather than use the document() function to load a file directly. I've experimented with piping XML streams through to xsltproc and it works well, so I'd rather not first write out a file with a known name, then have my stylesheet pick it up (then delete the file after processing -- the foo2.xml is an intermediate, code-generated file that is not permanent.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Re: [xsl] Generating barcode SV, cknell | Thread | Re: [xsl] xsltproc and multiple inp, Jon Gorman |
Re: [xsl] Getting a specific elemen, Spencer Tickner | Date | Re: [xsl] xsltproc and multiple inp, Jon Gorman |
Month |