This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: queering data from another xml file
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] queering data from another xml file
- From: "Matthew L. Avizinis" <mla at gleim dot com>
- Date: Fri, 2 Nov 2001 15:18:30 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
I hope you really mean "_querying_ data from another xml file".
What the other means I don't want to imagine. :-)
Matthew L. Avizinis <mailto:mla@gleim.com>
Gleim Publications, Inc.
4201 NW 95th Blvd.
Gainesville, FL 32606
(352)-375-0772 ext. 101
www.gleim.com <http://www.gleim.com>
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Douklias,
> Mike JSIMS_M
> Sent: Friday, November 02, 2001 2:00 PM
> To: XSL-List (E-mail)
> Subject: [xsl] queering data from 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list