Have you looked at XMLForm?
http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/webapp/mount/xm lform/ ----- Original Message ----- From: "Gerhard Hipfinger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 2:14 PM Subject: xslt question > Hi! > > I have the follwing xml file > > <page> > <article> > <header>foo</header> > <leadin>bar</leadin> > </article> > > <form> > <text name="/page/article/header" size="60"/> > </form> > </page> > > > and here some xslt snippets: > > <xsl:template match="text"> > <input type="text" name="{@name}" size="{@size}"> > <xsl:attribute name="value"><xsl:value-of > select="@name"/></xsl:attribute> > </input><br /> > </xsl:template> > > then the output of the value field is "/page/article/header" > > What I want is the content of page/article/header in the value field. > When I use this > > <input type="text" name="{@name}" size="{@size}"> > <xsl:attribute name="value"><xsl:value-of > select="/page/article/header"/></xsl:attribute> > </input><br /> > > I get exactly what I want. value field contains "foo" > > Is it possible to get the content of a subnode in such a way? Have > someone another solution for this kind of problem? > > Thanks, > Gerhard > > > --------------------------------------------------------------------- > 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]>