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

Subject: RE: [xsl] How to use an xml Element in xsl JavaScript?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 10 Apr 2003 23:36:01 +0100
> 
> 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.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


Current Thread