Re: XSLT and JavaScript Interface Problem

"Ngo, Cathy T CIV NSWCCD W. Bethesda, 2230" <[email protected]> Tue, 5 Jun 2007 09:25:33 -0400
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <C7B1C57192A387458A3CFD01F133802A0F61E6@naeapaxrez08.nadsusea.nads.navy.mil>
Hi again;

I forgot to send the code attachments.

Cathy


-----Original Message-----
From: Ngo, Cathy T CIV NSWCCD W. Bethesda, 2230 
Sent: Tuesday, June 05, 2007 9:00 AM
To: 'Mike Brown'
Cc: [email protected]
Subject: RE: [exslt] XSLT and JavaScript Interface Problem


I fixed my code without single quotes. However, I still get the same
error message as "'getInstance' is not a valid XSLT or XPath function.
-->getInstance($descriptiveName)<--".

Do you have any more suggestion in this problem ?

Thanks for your help;
Cathy

-----Original Message-----
From: Mike Brown [mailto:[email protected]] 
Sent: Monday, June 04, 2007 5:52 PM
To: Ngo, Cathy T CIV NSWCCD W. Bethesda, 2230
Cc: [email protected]
Subject: Re: [exslt] XSLT and JavaScript Interface Problem


Ngo, Cathy T CIV NSWCCD W. Bethesda, 2230 wrote:
> <xsl:variable name="instanceId"
> select="getInstance('$descriptiveName')" />

I don't think you want those single quotes in there.

_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list
sample1.xsl (application/octet-stream, 1.4 KB) - not displayed
sample1.xml (text/xml, 824 B)
<?xml version="1.0" encoding="US-ASCII"?>
<?xml-stylesheet type="text/xsl" href="sample1.xsl"?>
<ReportData>
	<ReportObject mmId="381911A60306"><ObjectInfo><DescriptiveName>General Information 23100</DescriptiveName></ObjectInfo><PropertyData><SingleValue type="-22" units="kg">222.222</SingleValue></PropertyData></ReportObject>
	<ReportObject mmId="38186530022D"><ObjectInfo><DescriptiveName>Department Number 23900</DescriptiveName></ObjectInfo><PropertyData><Vector type="-33"><Value>23900</Value><Value>EMERGENCY ROOM</Value></Vector></PropertyData></ReportObject>
	<ReportObject mmId="38186530022D"><ObjectInfo><DescriptiveName>House Number 13800</DescriptiveName></ObjectInfo><PropertyData><Vector type="-33"><Value>23100</Value><Value>UTILITY ROOM</Value></Vector></PropertyData></ReportObject>
</ReportData>