cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Idhaya Chandran" <idha...@coreobjects.com>
Subject RE: Dynamic XSL evaluation
Date Thu, 13 Feb 2003 06:30:35 GMT
You can use 
<xsl:value-of select="{$welcome_title}"/>
instead of 
<xsl:value-of select="$welcome_title"/>

--Idhaya
-----Original Message-----
From: Yatin Shah [mailto:nospam@kripa.com]
Sent: Thursday, February 13, 2003 6:09 AM
To: cocoon-users@xml.apache.org
Subject: Dynamic XSL evaluation


My application access DB for content(Using SQL Transformer) which later 
gets transformed into HTML via xml2html transformer.
For example, I have following sniippet in my xml2html transformer:
    <xsl:variable name="welcome_title" 
select="//welcome/sql:rowset/sql:row/sql:title"/>
    <p>
        <xsl:value-of select="$welcome_title"/>
    </p>

This works fine.
If the welcome_title was "<b> Hello. Welcome to Acme, Inc. &lt;/b&gt;"
Then the embeded HTML code is not interperted as HTML tags.
Regardless of how it's embeded in the data(as <b> or as &lt;b&gt;) it is 
included as it was embeded.

What I like to do is to dynamically evaluate the content of 
$welcome_title so that embeded HTML tags are detected and parsed as:
    <p>
        <b>
            Hello. Welcome to Acme, Inc.
        </b>
    </p>

Even better would be to be able to include any XML tags and have it 
dynamically evaluated by the xml2html transformer.
Any one have any ideas?
Thanks for your help.
-Yatin


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message