Re: [xsl] ASP Server Side Add Name Space [FOLLOWUP]

Subject: Re: [xsl] ASP Server Side Add Name Space [FOLLOWUP]
From: "Karl Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Tue, 18 Feb 2003 22:08:23 -0700
Hi folks, I got it.  I had to declare the namespaces in code, which doesn't
make any sense to me, since the namespace are part of the ADO recordset
persisted as XML.  Is there anyone out there who can comment on this?

Here is the code which made my xpath selections work (little sloppy looking
out of the editor):

 'set namespaces... xm.setProperty "SelectionNamespaces",
"xmlns:xsl='http://www.w3.org/1999/XSL/Transform'" xm.setProperty
"SelectionNamespaces", "xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'"

xm.setProperty "SelectionNamespaces",
"xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'"

xm.setProperty "SelectionNamespaces",
"xmlns:rs='urn:schemas-microsoft-com:rowset'" xm.setProperty
"SelectionNamespaces", "xmlns:z='#RowsetSchema'>"

xm.setProperty "SelectionLanguage", "XPath" set xmNode =
xm.selectnodes("//s:Schema/s:ElementType/s:AttributeType")



Karl


----- Original Message -----
From: "Karl Stubsjoen" <karl@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, February 18, 2003 6:56 PM
Subject: [xsl] ASP Server Side Add Name Space


> Hello,
> I'm trying to access my ADO xml document from ASP.  Any attempt of
selecting
> a node fails.  The error is:
>
> Error Type:
> msxml4.dll (0x80004005)
> Reference to undeclared namespace prefix: 's'.
> /admin/dbxmladmin.asp, line 73
>
> How do I add these ADO namespaces (but I thought they were there, part of
> the ADO XML recordset).
> Ahh, maybe it is the XPATH processor which needs these decleraations.
> Anyway to add them, before I perform an xpath lookup into into my adoxml
> recordset?
>
> Thanks,
> Karl
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


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


Current Thread