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

change a attribute with a link?

Subject: change a attribute with a link?
From: "Markus Hanel" <markus.hanel@xxxxxx>
Date: Tue, 30 Mar 2004 10:20:47 +0200 (MEST)
a attribute
hello,
I want to list some informations of pers_datas of some nodes. The routine is
equal for the attribut "admin", "interviewees" and "interviewer" of this
nodes. My idear is to make 3 links, every link opens the same file and evaluates
with one of the attributes: admin, interviewees or interviewer. Therefore I
had to change the value of "attribute::type" of the xslt elements:
apply-templates and template. Is there a possibility to arange this? 

xml file
<node type="admin">
  <pers_data></pers_data>
    <node type="school">
      <node type="interviewees">
        <pers_data></pers_data>
        <pers_data></pers_data>
        <pers_data></pers_data>
      </node>
      <node type="department">
        <node type="interviewer">
          <pers_data></pers_data>
          <pers_data></pers_data>
          <pers_data></pers_data>
        </node>
        ...


xsl file
<xsl:stylesheet>
...
<p><a><xsl:attribute name="href">test.xml</xsl:attribute>evaluate the
admin</a></p>
<p><a><xsl:attribute name="href">test.xml</xsl:attribute>evaluate the
interviewees</a></p>
<p><a><xsl:attribute name="href">test.xml</xsl:attribute>evaluate the
interviewer</a></p>

...
<xsl:apply-templates select="descendant-or-self::node[attribute::type =
'admin']" />
....................................should change to [attribute::type =
'interviewees']
<xsl:template match="node[attribute::type = 'admin']">
...
</xsl:template>
</xsl:stylesheet>

Many thanks
markus

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.