You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rob van der Zeijden <r....@tiscon.de> on 2000/10/24 15:30:30 UTC
XSL Question
Want to realize this:
<fo:table-column column-width="{<xsl:value-of select="name()"/>}" />
How could this be done since this is no proper syntax. Usage of a
variable is of no use in my code. I know that
MULBERRYTECH LIST List is ment for this question but this list
is not available at the moment. Sorry....
Re: XSL Question
Posted by Conny Krappatsch <co...@smb-tec.com>.
Rob van der Zeijden wrote:
> > <fo:table-column column-width="{name()}" />
>
> This won't do. You are selecting the name, not the
> value of the element. But thanks anyway.
Is that what you're looking for:
<fo:table-column column-width="{.}" />
But as Robin already posted, you didn't really _say_ what you wanna do.
--
______________________________________________________________________
Conny Krappatsch mailto:conny@smb-tec.com
SMB GmbH http://www.smb-tec.com
Re: XSL Question
Posted by Rob van der Zeijden <r....@tiscon.de>.
Hi again,
> You can replace name() by any function or element name or @attribute_name.
>
> <table>
> <column-width>5</column-width>
> </table>
> with this XML in the table element context you can do it this way:
> <fo:table-column column-width="{column-width}" />
This won't do cause I do not know the name of the element(column-width)
> <fo:table-column column-width="{@column-width}" />
> with this:
> <table column-width="5">
> <rows/>
> </table>
I can not change my xml. So I have to find another solution
> > > <fo:table-column column-width="{name()}" />
> >
> > This won't do. You are selecting the name, not the
> > value of the element. But thanks anyway.
> >
> >
> >
> >
> >
> > > Hope this will help you.
> > >
> > > ----- Original Message -----
> > > From: "Rob van der Zeijden" <r....@tiscon.de>
> > > To: <co...@xml.apache.org>
> > > Sent: 24 ??????? 2000 ?., ??????? 17:30
> > > Subject: XSL Question
> > >
> > >
> > > > Want to realize this:
> > > >
> > > > <fo:table-column column-width="{<xsl:value-of select="name()"/>}" />
> > > >
> > > > How could this be done since this is no proper syntax. Usage of a
> > > > variable is of no use in my code. I know that
> > > > MULBERRYTECH LIST List is ment for this question but this list
> > > > is not available at the moment. Sorry....
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
Re: XSL Question
Posted by Konstantin Piroumian <KP...@flagship.ru>.
You can replace name() by any function or element name or @attribute_name.
<table>
<column-width>5</column-width>
</table>
with this XML in the table element context you can do it this way:
<fo:table-column column-width="{column-width}" />
or
<fo:table-column column-width="{@column-width}" />
with this:
<table column-width="5">
<rows/>
</table>
----- Original Message -----
From: "Rob van der Zeijden" <r....@tiscon.de>
To: <co...@xml.apache.org>
Sent: 24 ??????? 2000 ?., ??????? 17:43
Subject: Re: XSL Question
>
> > <fo:table-column column-width="{name()}" />
>
> This won't do. You are selecting the name, not the
> value of the element. But thanks anyway.
>
>
>
>
>
> > Hope this will help you.
> >
> > ----- Original Message -----
> > From: "Rob van der Zeijden" <r....@tiscon.de>
> > To: <co...@xml.apache.org>
> > Sent: 24 ??????? 2000 ?., ??????? 17:30
> > Subject: XSL Question
> >
> >
> > > Want to realize this:
> > >
> > > <fo:table-column column-width="{<xsl:value-of select="name()"/>}" />
> > >
> > > How could this be done since this is no proper syntax. Usage of a
> > > variable is of no use in my code. I know that
> > > MULBERRYTECH LIST List is ment for this question but this list
> > > is not available at the moment. Sorry....
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
Re: XSL Question
Posted by Rob van der Zeijden <r....@tiscon.de>.
> <fo:table-column column-width="{name()}" />
This won't do. You are selecting the name, not the
value of the element. But thanks anyway.
> Hope this will help you.
>
> ----- Original Message -----
> From: "Rob van der Zeijden" <r....@tiscon.de>
> To: <co...@xml.apache.org>
> Sent: 24 ??????? 2000 ?., ??????? 17:30
> Subject: XSL Question
>
>
> > Want to realize this:
> >
> > <fo:table-column column-width="{<xsl:value-of select="name()"/>}" />
> >
> > How could this be done since this is no proper syntax. Usage of a
> > variable is of no use in my code. I know that
> > MULBERRYTECH LIST List is ment for this question but this list
> > is not available at the moment. Sorry....
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
Re: XSL Question
Posted by Konstantin Piroumian <KP...@flagship.ru>.
<fo:table-column column-width="{name()}" />
Hope this will help you.
----- Original Message -----
From: "Rob van der Zeijden" <r....@tiscon.de>
To: <co...@xml.apache.org>
Sent: 24 ??????? 2000 ?., ??????? 17:30
Subject: XSL Question
> Want to realize this:
>
> <fo:table-column column-width="{<xsl:value-of select="name()"/>}" />
>
> How could this be done since this is no proper syntax. Usage of a
> variable is of no use in my code. I know that
> MULBERRYTECH LIST List is ment for this question but this list
> is not available at the moment. Sorry....
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>