On Thu, 6 Nov 2008, Frank Niedermann wrote:


Hi,

I am using barcode functionality from the Barjode4J project, this is what I
have working so far:

<fo:block>
 <fo:instream-foreign-object>
   <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns";
message="message">
                        <barcode:code128>
       <barcode:height>10mm</barcode:height>
                                <barcode:human-readable>
                                        
<barcode:placement>none</barcode:placement>
                                </barcode:human-readable>
     </barcode:code128>
   </barcode:barcode>
 </fo:instream-foreign-object>
</fo:block>

I think you want to use something like

    <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns";>
       <xsl:attribute name="message">
          <xsl:value-of select="node"/>
       </xsl:attribute>
       ...
    </barcode:barcode>


Instead of "message" I would like to generate a barcode from a XML-node. I
have used the <xsl:value-of select="node"/> syntax for that, but I can not
use this syntax in an attribut message="message".

So how can I set attributes according to nodes from a XML-source?

Thanks,
 Frank
--
View this message in context: 
http://www.nabble.com/How-to-use-%3Cxls%3Avalue-of-as-attribute-tp20357000p20357000.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to