This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Get Processing Instruction MSXML3.0 sp1


Jeni,

As always, thank you very much for the help.  

I would not have taken the time to make sure
this was correct and using the proper syntax
if you had not helped me.

In this case, I am using the MSXML parser with
ASP, so there is no XSL involved.  I am using
the DOMDocument object with the selectSingleNode
method to get the node I want.

I tried changing the pi() to processing-instruction(), 
but at first it didn't work.  then I came across
this:

The SelectionLanguage internal property defaults to
"XSLPattern."  This value had to be changed first to
"XPath" for processing-instruction() to work for me.  
In ASP, the syntax is

Call DOMDocument.setProperty ("SelectionLanguage", "XPath")

I know most of you are already aware of this, but I thought
I'd put it out there anyway for those of us who don't.

Thanks,

Jay


-----Original Message-----
From: Jeni Tennison [mailto:mail@jenitennison.com]
Sent: Friday, May 18, 2001 2:11 AM
To: Jay Gardner
Cc: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] Get Processing Instruction MSXML3.0 sp1


Hi Jay,

> I found it with the pi() function.

The node test for processing instructions is called
processing-instruction() in XSLT (pi() is WD-xsl syntax):

  /root/processing-instruction('MSSQLError')

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]