xsl-list
[Top] [All Lists]

Re: quick xpath question

2003-06-30 21:44:29
Judging from your questions, the best help would be to recommend a good XSLT
book.

One such book is Jeni Tennison's:

"Beginning XSLT"

Amazon ships it with some delays -- I am not aware of the best place to buy
it online.



Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL



"Kathy Burke" <Kathy_Burke(_at_)Jabil(_dot_)com> wrote in message
news:395DE57EA5BB7F4E952B7B89775350B5021E40F7(_at_)bosmsgn10a(_dot_)bos(_dot_)ena(_dot_)jabil(_dot_)com(_dot_)(_dot_)(_dot_)
I have the following xml and I'm trying to the contents of the @doc
indicated:

I've tried //WorkFlow/Assembly/Station{(_at_)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



<Prev in Thread] Current Thread [Next in Thread>