I have found the xslt list at: http://p2p.wrox.com/listindex.asp useful for help with xsl/xpath questions.
In looking at your problems - I don't see a way to transform it in one step. I would have to pass it thru the transformer twice. marty ----- Original Message ----- From: Joseph Rajkumar <[EMAIL PROTECTED]> To: cocoon-users <[EMAIL PROTECTED]> Sent: Wednesday, January 16, 2002 11:52 AM Subject: Evaluating Variable XPATH > Hi Folks > I have the latest CVS of Cocoon+Tomcat-4.0.1 > working fine and I am trying to demo this to the > powers that decide. I have a minor problem and I am > desperate. > > Part of the xml file:- > > <MAIN DataValue="6" ViewValue="6.0"/> > <ARC DataEnd="//MAIN/@DataValue" ViewEnd="//MAIN/@ViewValue"/> > > There are lots of ARC elements whose attributes DataEnd > and ViewEnd contain XPATH to various other attributes contained > in various other elements in the document. > I need to get to the contents of the attribute > contained in the DataEnd and ViewEnd > > In the following template: > <xsl:template match="ARC"> > How do I print the value contained in the XPATH > which is contained in the attribute "@DataEnd" or "@ViewEnd" > What I need to print here is 6 and 6.0 as shown in the above > example > </xsl:template> > > I have search many many places, but I could not resolve this. > > Thanks > Joseph Rajkumar > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>