xsl-list
[Top] [All Lists]

RE: How to use an xml Element in xsl JavaScript?

2003-04-10 15:36:01

how can I use a xml Element in a xsl Javascript? I tried it like this:

<script language="JavaScript">
<xsl:comment>
<![CDATA[
test = "<xsl:value-of 
select="document('../test.xml')/test/data/id"/>";
]]>
</xsl:comment>
</script>


Oh dear. CDATA is what you put round stuff to tell the system "this
might look like XML but it isn't, so please don't treat it as if it
were.". 

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>