Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Nested XSL

Reply
Thread Tools

Nested XSL

 
 
Shakeel
Guest
Posts: n/a
 
      11-02-2005
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

 
Reply With Quote
 
 
 
 
Johannes Koch
Guest
Posts: n/a
 
      11-02-2005
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.)
 
Reply With Quote
 
 
 
 
stephane.mottelet@nospam.gnark.gnark
Guest
Posts: n/a
 
      11-02-2005
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 : http://www.velocityreviews.com/forums/(E-Mail Removed)k

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
tomcal/xsl - problems with xsl:include Klaus Friese Java 0 11-22-2004 10:17 AM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 1 09-13-2004 02:28 PM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 0 09-08-2004 02:11 PM
use xsl:element to output an "<xsl:template match=...> ? Ray Tayek XML 3 11-30-2003 10:14 AM



Advertisments