This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to declare a param which name is in a XML file?
- To: xsl-list at mulberrytech dot com
- Subject: Re: How to declare a param which name is in a XML file?
- From: Michael Hoffmann <m-hoffmann at ti dot com>
- Date: Thu, 26 Oct 2000 14:45:42 +0200
- Organization: Texas Instruments
- References: <001c01c03f43$50ac9420$b11ba8c0@tndes177>
- Reply-To: xsl-list at mulberrytech dot com
hi
ok at first u should
end ur param tags in ur xml file (i wonder u didnt get any errors here)
<parameters>
<param ident="param1"></param>
<param ident="param2"></param>
</parameters>
then go to ur xsl file and change your second <for each select> with
<value-of>
<xsl:template match="parameters">
<xsl:for-each select="param">
<xsl:value-of select="@ident"/>
</xsl:for-each>
</xsl:template>
this works for me (cocoon) ... u didnt get an output because u only
selected
elements but never showed them with value-of
greets
michael
btw.... i suggest u to read some tutorials or books :-)
Cesar Hernandez Fuente wrote:
>
> I have a XML file with a parameter definition zone.
>
> <parameters>
> <param ident="param1">
> <param ident="param2">
> </parameters>
>
> And i want to apply a XSLT file to this XML file
>
> XSLT File
>
> <xsl:template match="parameters">
> <xsl:for-each select="param">
> <xsl:param name="@ident"/>
> </xsl:for-each>
> </xsl:template>
>
> But when XSLT-parser(SAXON) processes it, shows this error:
>
> "Name @ident contains invalid characters"
>
> How should i solve this problem??
>
> Thanks!
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list