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

Re: root node template - unmatching pattern?

Subject: Re: root node template - unmatching pattern?
From: Chizzolini Stefano <chist@xxxxxx>
Date: Wed, 24 Nov 2004 11:36:51 +0100
transformnodetoobject example
Trying to solve the issue, I discovered a strange, odd behavior:
A) calling the transformNodeToObject method of the IXMLDOMElement interface
(as I've done till now, for example:
Call xmlDoc.documentElement.transformNodeToObject(xslDoc, resultDoc)
) resulted in an undesired unmatching of the root-node template (xpath="/");
B) on the other hand, calling the "same" transformNodeToObject method of the
DOMDocument40 class (for example:
Call xmlDoc.transformNodeToObject(xslDoc, resultDoc)
) I got my wanted result (the root-node template matching).

Can someone explain me if either exists a DOM-specification difference
between the behavior of the two methods or it's just one of the sadly famous
non-conformance of the MSXML implementation?

Thanks

Stefano

> -----Messaggio originale-----
> Da:	Chizzolini Stefano [SMTP:chist@xxxxxx]
> Inviato:	mercoledl 24 novembre 2004 9.29
> A:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Oggetto:	 R:  root node template - unmatching pattern?
>
> > -----Messaggio originale-----
> > Da:	David Carlisle [SMTP:davidc@xxxxxxxxx]
> > Inviato:	martedl 23 novembre 2004 18.16
> > A:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Oggetto:	Re:  root node template - unmatching pattern?
> >
> [...]
>
> > Your stylesheet will produce
> > <test>Correctly matched!</test>
> > given any input.
> >
> > If yo are not getting output then presumably something is wrong with the
> > way you are calling the processor.
>
> More precisely: I'm getting *just* the default templates output (I say:
> the
> text content).
> Testing the responsiveness of the processor, then I added this usual
> element
> to my stylesheet in order to override the default behavior and exclude the
> text output:
>
> <xsl:template match="text()"/>
>
> As expected, no text content resulted from the processing, but neither I
> achieved my goal to render the root node template content!
>
> Regarding the way I call the processor, this is my relevant code (after
> the
> simple loading of the engaged documents):
>
> Call xmlDoc.documentElement.transformNodeToObject(xslDoc, resultDoc)
>
> Absurd?
> Any suggestion?
>
> Thanks again
>
> Stefano

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.