[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

queering data from another xml file

Subject: queering data from another xml file
From: "Douklias, Mike JSIMS_M" <douklias@xxxxxxxxxxxxxx>
Date: Fri, 2 Nov 2001 13:59:36 -0500
xml another xml file
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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.