|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Returning markups from <xsl:script>
Hi,
This has become an irritating problem, I have to go through a loop to
process an XML file by XSL for which I use a function inside
<xsl:script> , but I am trying to draw parts of a table using this, when
i try to return the string with the HTML markups to the calling
<xsl:eval>fnname, it just ignores the markup, not even shown in the
result, but anything without a "<" is shown! To generate an HTML part by
repeated function calls, I can't think of any other option. If anybody
could help, it would be extremely useful. The code is given below.
Thanks,
Alex
function drawtable(el) {
str="<h1>"+el.selectSingleNode("PRICE").text+"</h1>";
return str;
}
which is being called by
<xsl:for-each select="COMPANY">
<xsl:eval>drawtable(this)</xsl:eval>
</xsl:for-each>
which returns only the PRICE.text values without <h1> tags in the result
tree! Please helllp!
Get Your Private, Free Email at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








