Re: xsl-for-each-and-" "-Question

Christian Stocker <[email protected]> Mon, 23 Jan 2006 08:01:40 +0100
Newsgroups gmane.comp.cms.bitflux.general
Organization Bitflux GmbH
Message-ID <[email protected]>

On 23.1.2006 0:13 Uhr, Alain Petignat wrote:
> Hi
> 
> i have some xsl-n00b-troubles, maybe you can help me ;)
> 
> something like this is working:
> 
> <textarea id="tags" name="bx[plugins][admin_edit][tags]" ...>
>     <xsl:for-each select="/bx/plugin/singlelink/link/tags">
>         <xsl:value-of select="tag/title"/>&#160;
>     </xsl:for-each>
> </textarea>
> 
> but i would rather have the data in a input-field:
> 
> <input type="text" value="here the data from the foreach" ... />
> 
> i have no idea how to achive this. a hint anyone? i saw that in the
> blog-plugin it is solved as follows:

The full XSL Syntax would be (the relevant part)

<input someattribshere="..">
   <xsl:attribute name="value">
     <xsl:for-each select="/bx/plugin/singlelink/link/tags">
         <xsl:value-of select="tag/title"/>&#160;
     </xsl:for-each>
   </xsl:attribute>
</input>

the {} syntax below is just an abbreviation for <xsl:attribute/>


> <input ... value="{atom:tags}"/>
> 
> but i do not quite get where this is from, propably some strange
> "stream" again? ;)

no :) That should be in the input XML Document (maybe you see it only as
<tag> there, since atom: is the default namespace, and default ns  don't
work in xpath)

see also:
http://yourdomain.org/admin/edit/blog/your-first-post.html?XML=1

chregu


> 
> thanks in advance!
> alain

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] |  GPG 0x5CE1DECB
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms