[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-apache-general
Subject: Re: How to access xml tag attribute with XSL ?
From: John Carroll <jca () micromuse ! com>
Date: 2000-03-31 11:21:15
[Download RAW message or body]
Benoit Fouche wrote:
> Xsuse me John, but I think you do not understand my query...
> I'd like to access the attribut IN the XML DOCUMENT, and set it with the XSL
> stylesheet.
> (like the <xsl:value-of select='card'> but not the content of the tag
> <card>, just the attribut "id" that is in <card id='menuCard'>...
> So how can I recover this "id" attribut in the XML source ?
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail: webmaster@xml.apache.org
> To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
<xsl:value-of select="@title"/> for value of the title attribute
or
<xsl:value-of select="@id"/> for value of the id attribute
cheers,
John.
[Attachment #3 (text/html)]
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Benoit Fouche wrote:
<blockquote TYPE=CITE>Xsuse me John, but I think you do not understand
my query...
<br>I'd like to access the attribut IN the XML DOCUMENT, and set it with
the XSL
<br>stylesheet.
<br>(like the <xsl:value-of select='card'> but not the content of the
tag
<br><card>, just the attribut "id" that is in <card id='menuCard'>...
<br>So how can I recover this "id" attribut in the XML source ?
<p>---------------------------------------------------------------------
<br>In case of troubles, e-mail: webmaster@xml.apache.org
<br>To unsubscribe, e-mail:
general-unsubscribe@xml.apache.org
<br>For additional commands, e-mail: general-help@xml.apache.org</blockquote>
<xsl:value-of select="@title"/> for value of the title
attribute
<br>or
<br><xsl:value-of select="@id"/> for value of the
id attribute
<pre></pre>
<pre></pre>
<pre>cheers,</pre>
<pre></pre>
<pre>John.</pre>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic