Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Nested XSL (http://www.velocityreviews.com/forums/t170119-nested-xsl.html)

Shakeel 11-02-2005 02:44 AM

Nested XSL
 
Hi,
I have a <fo:external-graphic element, the 'src' attribute of this
element gets it's value from one of the node elements in the xml file.

eg: Am looking for something like this:
<fo:external-graphic src= "<xsl:value-of select="node/attrib"\>"
content-width="3pt" content-height="3pt" scaling="uniform"/>

Could someone help here? How do I accomplish this?

Thanks
Shakeel


Johannes Koch 11-02-2005 09:41 AM

Re: Nested XSL
 
Shakeel wrote:
> eg: Am looking for something like this:
> <fo:external-graphic src= "<xsl:value-of select="node/attrib"\>"
> content-width="3pt" content-height="3pt" scaling="uniform"/>


The XSLT must be well-formed XML. So your syntax is impossible.

You are looking for <http://www.w3.org/TR/xslt#creating-attributes> or
<http://www.w3.org/TR/xslt#attribute-value-templates>

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)

stephane.mottelet@nospam.gnark.gnark 11-02-2005 09:55 AM

Re: Nested XSL
 
Shakeel wrote:

>Hi,
>I have a <fo:external-graphic element, the 'src' attribute of this
>element gets it's value from one of the node elements in the xml file.
>
>eg: Am looking for something like this:
><fo:external-graphic src= "<xsl:value-of select="node/attrib"\>"
>content-width="3pt" content-height="3pt" scaling="uniform"/>
>
>Could someone help here? How do I accomplish this?
>
>Thanks
>Shakeel
>
>

<fo:external-graphic src= "{node/attrib}"
content-width="3pt" content-height="3pt" scaling="uniform"/>


S.

--
e-mail : Stephane.Mottelet@nospam.gnark.gnark



All times are GMT. The time now is 05:23 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.