Hi,
Please help me with the following problem. I have an xml <results> <first-name>Carl<first-name> <data> This is carl's data </data> </results> How do I include the bold tags which is present in the <data> tag to be a part of the output but rendered as an HTML When I say <xsl:value-of select="results/data"/> The output is This is carl's data I want to achieve "This is carl's data" as the output in bold. This code is in an xpl file and I'm using oxf:xslt processor to create html and further using oxf:xhtml-to-pdf to create a pdf. Thanks --SD |
Hi SD,
You can wrap the xsl with xhtml: <strong><xsl:output value-of="results/data"/></strong> If you declare the xslt namespace, then you can declare any xslt element and OF will transform it in the page-flow epilogue. Regards, Hank Quoting SD <[hidden email]>: > Hi, > > Please help me with the following problem. > > I have an xml > > <results> > <first-name>Carl<first-name> > <data> This is carl's data </data> > </results> > > How do I include the bold tags which is present in the <data> tag to be a > part of the output but rendered as an HTML > > When I say <xsl:value-of select="results/data"/> The output is > > This is carl's data > > I want to achieve "This is carl's data" as the output in bold. > > This code is in an xpl file and I'm using oxf:xslt processor to create html > and further using oxf:xhtml-to-pdf to create a pdf. > > Thanks > --SD > > > -- > View this message in context: > http://orbeon-forms-ops-users.24843.n4.nabble.com/how-to-interpret-HTML-in-XSL-tp3466893p3466893.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > -- Hank Ratzesberger [hidden email] -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by SD
I suspect that some of the markup was swallowed along the way.
If you have: <data><b>This is carl's data</b></data> then try: <xsl:copy-of select="results/data/node()"/> If you have escaped markup: <data><b>This is carl's data</b></data> you will have to parse it somehow, e.g. with the saxon:parse() function, in which case this will work only if the content is a well-formed XML fragment. -Erik On Thu, Apr 21, 2011 at 2:32 PM, SD <[hidden email]> wrote: > Hi, > > Please help me with the following problem. > > I have an xml > > <results> > <first-name>Carl<first-name> > <data> This is carl's data </data> > </results> > > How do I include the bold tags which is present in the <data> tag to be a > part of the output but rendered as an HTML > > When I say <xsl:value-of select="results/data"/> The output is > > This is carl's data > > I want to achieve "This is carl's data" as the output in bold. > > This code is in an xpl file and I'm using oxf:xslt processor to create html > and further using oxf:xhtml-to-pdf to create a pdf. > > Thanks > --SD > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/how-to-interpret-HTML-in-XSL-tp3466893p3466893.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |