Re: [xsl] queering data from another xml file

Subject: Re: [xsl] queering data from another xml file
From: David_N_Bertoni@xxxxxxxxx
Date: Fri, 2 Nov 2001 14:34:04 -0500
> What I'm trying to do here is. While processing an XML file (MAIN.xml)
> XSL I need to pull data from another XML file (ACAD.xml) that depends on
> content.
> @fileref is an attribute in the MAIN.xml file
> @generated and @autocad attributes are in the ACAD.xml file
> if @fileref exists in the ACAD.xml I need to pull and use the @autocad
> attribute

if you change:




then the following will select the attribute:


or you could leave the variable alone, and just do the following:


Which you do depends on your preference, I suppose.  I'd prefer the first,
as a matter of style, but I suppose it depends on what you're going to do
with the variable.

If there's only one condition for the xsl:choose, and you won't use the
variable again, why not select the autocad attribute directly:


Hope that helps...


 XSL-List info and archive:

Current Thread