
July 7th, 2004, 10:25 AM
|
|
Registered User
|
|
Join Date: Oct 2003
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
javascript in xslt
I wrote a script that takes a string as an argument
and produces as output (using document.write()) - a
uniquely styled page header.
I am trying to integrate this into an xsl document
where I can pass as the argument to the function the
contents of an xml node.
Everything works fine if I hard code a string argument to the function as in:
<script type="text/javascript">codeit("This is the Header")</script>
but I can't figure out how to get the following "PageName" as a valid argument to the function:
<Page>
<PageName>
<![CDATA[ This is the Header ]]>
</PageName>
</Page>
I have tried using a variable and have attempted writing 'codeit( )' as an extension function, all to no avail.
Any clues???? Thanks ahead of time!
|