This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

content of matched node ?


Hi,

good morning (in Berlin its morning now)

I'm having a slight problem with a template

I want to have the content of a node, but the node
is already matched.
I wanted to write something like
<xsl:value-of select="."/>
but this doesn't work

Has somebody got an idea?
THX in advance.

Jochen

-------
Here's a piece of my xsl-stylesheet and xml beneath:

<xsl:template match="/module/required/recordset/element[@name='category']" >
   <xsl:apply-templates select="./option" />

</xsl:template>

<xsl:template match="option" >
   <option>
       <xsl:attribute name="value" >
            <xsl:value-of select="@value" ></xsl:value-of>
    </xsl:attribute>
       <!-- how can I get the content here ??? -->
   </option>

</xsl:template>

---
xml
----
<module name="product database entry">
    <required>
          <element name="category" sourcetype="AUTOSELECT">
                <option value="111">Antiquariat (B&#xFC;cher)</option>
                <option value="6">Apotheke</option>
                <option value="57">Babyausstattung</option>
                <option value="2">Backwaren</option>
          </element>
    </required>
</module>



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]