xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sangam Uprety <sangam.upr...@gmail.com>
Subject Re: Reading into xsl:value-of directly from attributes file
Date Wed, 25 Nov 2009 06:32:02 GMT

Once again there is one thing I would like to know. Till now I have learnt
to put variables in an external xsl file and use them in the main xsl file.
Could we put the xml node in the attribute files and use them later. That
means is the following possible?


 where MyRoot/tableHeader/tableLayout is the path to a node in the xml file.

Now I wish to use the attribute set in the main xsl file- this way:
....stuffs here...
What should I do to get the values of MyRoot/tableHeader/tableLayout from
xml file in the main xsl file, so that I can supply attributes table-layout
etc. for the table?

Thank you!

Peter Hancock-2 wrote:
> Hi Sangam,
> Am I correct in thinking that you are after a way of specifying variables
> externally?  Or are you refering to an attribute called 'file'?  Refering
> to
> variables declared in external (from the main xsl) is straight forward as
> the following example should show:
> .xml
> .xsl
> props.xsl
> Aplying the stylesheet would yield
> <?xml version="1.0" encoding="UTF-8"?>
> red
> If I am way off track here can you please try re-wording the problem and
> perhaps provide a concrete example of what you want.
> You may also like to try asking for help in an xslt-centric forum e.g
> http://www.mulberrytech.com/xsl/xsl-list/index.html
> Pete
> On Mon, Nov 23, 2009 at 7:17 AM, Sangam Uprety wrote:
>> Hi all. I would like to read into a xsl:variable or xsl:value-of element
>> directly from attribute file. For example, xsl:value-of
>> select="value-from-attribute-file" Here, I don't want something like
>> select="/myRoot/mynode", rather I would like to read this value from the
>> attribute file, much like in fo:block
>> xsl:use-attribute-sets="myAttrSetName". Although we can do this like in
>> xsl:value-of select="/myRoot/mynode", it is sometimes very useful to have
>> such values from attribute file, which means we would have added
>> flexibility. Any ideas please? Thanks in advance!
>> ------------------------------
>> View this message in context: Reading into xsl:value-of directly from
>> attributes file
>> Sent from the FOP - Users mailing list archiveat Nabble.com.
View this message in context: http://old.nabble.com/Reading-into-xsl%3Avalue-of-directly-from-attributes-file-tp26473598p26508138.html
Sent from the FOP - Users mailing list archive at Nabble.com.

View raw message