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

Subject: Re: [xsl] ASP Server Side Add Name Space [CORRECTION]
From: "Karl Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Tue, 18 Feb 2003 22:37:23 -0700
Hey folks, sorry last code didn't really work, but this did (basically one
string of namespaces, and one setProperty "SelectionNameSpaces")


 sNameSpaces = "xmlns:xsl='http://www.w3.org/1999/XSL/Transform' "
sNameSpaces = sNameSpaces &
"xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' "
sNameSpaces = sNameSpaces &
"xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882' " sNameSpaces =
sNameSpaces & "xmlns:rs='urn:schemas-microsoft-com:rowset' "
sNameSpaces = sNameSpaces & "xmlns:z='#RowsetSchema' "
xm.setProperty "SelectionNamespaces", sNameSpaces xm.setProperty
"SelectionLanguage", "XPath"


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


> 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
>
>


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


Current Thread