Thanks Pietschmann for your reply.
I just wanted to be a bit more clear:
here is my xml input
<?xml version="1.0"?>
...
<disclaimer>
<fo:block font-weight="bold">
This is dynamically generated
</fo:block>
<fo:block>
This is dynamically generated
</fo:block>
</disclaimer>
...
</xml>
how can we have those fo tags have actual effects when we feed this xml to
transfomer?
rather than print out actual <fo:.... ?
Thanks
-----Original Message-----
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 4:45 PM
To: [EMAIL PROTECTED]
Subject: Re: reading fo tags from database and using within xsl
dynamically
Lee, Insoo wrote:
> We need to read it a value dynamically from the database.
> and this value contains fop tags such as
>
> <fo:block>
> blah blah blah
> </fo:block>
...
> Is there any way to display that within the xsl (this xsl contains other
> fop tags too)?
Yes.
> We tried following
>
> <xsl:template match="DISCLAIMER">
> <xsl:value-of select="."/>
> </xsl:template>
>
> we also tried and xsl:copy-of
>
> and disable-output-escaping="yes"... but
>
> none of them works...
Well, "not working" could mean a lot of things. Could you be
a bit more specific?
I guess you got "<fo:block>" literally in your result, or
nothing at all and an error message in the logs (like "text
must not be child of fo:flow"). You probably constructed a DOM
or something like this and inserted the strings retrieved from
the DB as text nodes, then feed this to the transformation.
The stuff retrieved from the DB stayed just that: text. You'll
have to parse them as XML in order to have them the effect you
want to have. How to do this depends on how you assemble your
source data. A semi-simple way is to construct the whole XML
as a string and pass it as a StreamSource reading from a
StringReader to the transformer.
J.Pietschmann
---------------------------------------------------------------------
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]