xsl-list
[Top] [All Lists]

specific template?

2003-07-03 06:30:15
Hello,

I have the following:

<document>
  <formular name="login" ref="/login/">
    <field type="text" name="username" size="8" wrap="yes">User</field>
<field type="password" name="password" size="8" wrap="yes">Password</field>
  </formular>
  <formular name="send_email" ref="/login/send_email">
    <field type="text" name="email" size="16" wrap="yes">Emailadresse</
field>
  </formular>
</document>

I'd like to use one template for all formular nodes. And I want to run apply-templates for every formular specific, how can I do that?

It's interessting, I have only one

<xsl:apply-templates select="//formular"/>

But I get two formulars out, which both have all three fields ( the two from name="login" and the one from name="send_email".

What am I doing wrong?

Martin

--
If you've got an idea and need help,
or just need general encouragement,
write me a message. ;-)

XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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