RE: [xsl] queering data from another xml file

Subject: RE: [xsl] queering data from another xml file
From: "Douklias, Mike JSIMS_M" <douklias@xxxxxxxxxxxxxx>
Date: Fri, 2 Nov 2001 16:04:32 -0500
Jörg,

Thanks a million. It worked great....

Mike Douklias

-----Original Message-----
From: Jörg Heinicke [mailto:joerg.heinicke@xxxxxx]
Sent: Friday, November 02, 2001 2:30 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] queering data from another xml file


Hi Mike,

what about

<xsl:variable name="mike" 
select="document('ACAD.xml')/ACAD/Drawing[@generated = 
current()/@fileref]/@autocad"/>

So the variable contains nothing or your @autocad.

Now your test

<xsl:when test="$mike">
   and so on ...
</xsl:when>

Regards,

Joerg

Douklias, Mike JSIMS_M wrote:

> What I'm trying to do here is. While processing an XML file (MAIN.xml)
with
> 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
> 
> Here is the XSLT code:
> 
> 	<xsl:template match="something">
> 		<xsl:variable name="mike"
> select="document(ACAD.xml')/ACAD/Drawing/@generated=@fileref"/>
> 		<xsl:choose>
> 			<xsl:when test="$mike">
> 				TRUE---Found a match!!!!!
> 				HOW CAN I GET THE @autocad???????
> 			</xsl:when>
> 		</xsl:choose>
> 	</xsl:template>
> 
> 
> 
> 
> <ACAD>
> 	<Drawing generated="ch300.JPG" autocad="BRL00203-Model.dwf"/>
> 	<Drawing generated="ch304.JPG" autocad="BRL00201-Model.dwf"/>
> </ACAD>

 >
 > Mike Douklias

-- 

System Development
VIRBUS AG
Fon +49(0)341-979-7435
Fax +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread