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

RE: quick xpath question

Subject: RE: quick xpath question
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 30 Jun 2003 23:24:48 +0100
RE:  quick xpath question
Your braces {}, of course, should be square brackets [].

You should use /WorkFlow rather than //WorkFlow - why search the whole
document when the element you want is right at the top? - but that won't
stop it working.

Apart from that it looks fine.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Kathy Burke
> Sent: 30 June 2003 22:39
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject:  quick xpath question
> 
> 
> I have the following xml and I'm trying to the contents of the @doc
> indicated:
> 
> I've tried 
> //WorkFlow/Assembly/Station{@name="Label"}/WI[1]/@doc but I'm
> clearly missing something...any help appreciated. I'm using 
> the xpath with
> some vb script to set the @doc contents as a string.
> 
> Thanks, Kathy
> 
> <?xml version="1.0"?>
> <WorkFlow>
>    <Assembly number="865-7446-03-SUB" rev="BA" workorder="" qty="">
>      <Station name="Label">
>  	<WI order="1"
> 	    title="Apply Labels"
> 	    doc="10-ME40-865-7446-03-LB01.xml">      <!--TRYING 
> TO GET THIS
> FILENAME-->
> 	       <Boards>
> 		  <!-- EX: <Board sn="" start="" finish="" user="" /-->
> 	       </Boards>
> 	</WI>
>      </Station>
>      <Station name="Station1">
>  	<WI order="1"
> 	    title="Work Instruction Test One"
> 	    doc="KB_TEST_WI1.xml">
> 	       <Boards />
> 	</WI>
>  	<WI order="2"
> 	    title="Work Instruction Test Two"
> 	    doc="KB_TEST_WI2.xml">
> 	       <Boards />
>      </Station>
>    </Assembly>
> </WorkFlow>
> 
> 
>  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

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.