[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: ASP Server Side Add Name Space [CORRECTION]

Subject: Re: ASP Server Side Add Name Space [CORRECTION]
From: "Karl Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Tue, 18 Feb 2003 22:37:23 -0700
setproperty selectionnamespaces
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:  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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.