XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Drazen DotlicSubject: node-set extension
Author: Drazen Dotlic
Date: 21 Jun 2001 07:04 AM
I am well aware that node-set is not a standard XSLT function. However, because of the nature of (rather strange) data type "result tree fragment" (rtf from now), there is nothing I can do with the rtf. But if I can convert rtf into a nodeset... and normally I can. MS parser supports this, and almost any other parser out there. However, the stylus debugger does not seem to support this, which renders many (complex) XSLT files unusable for debugging. Playing with simple XSLT files is all nice and cool, but I have rather complex stylesheets that heavily use node-set extension. Is there a way to use this extension while debugging?

Postnext
Ivan PedruzziSubject: RE: node-set extension
Author: Ivan Pedruzzi
Date: 21 Jun 2001 07:28 AM

Hi Drazen,

For Stylus Studio rtf are node-set, here is an example that Minollo
posted 2 weeks ago







.....using MSXML you would loop on all the a's doing:



Using Stylus Studio you do:



Hope this help

Ivan Pedruzzi
eXcelon Corporation
http://www.stylusstudio.com



> -----Original Message-----
> From: stylus-studio-xslt Listmanager [mailto:listmanager]
> Sent: Thursday, June 21, 2001 7:09 AM
> To: Recipients of 'stylus-studio-xslt' suppressed
> Subject: node-set extension
>
>
> From: "Drazen Dotlic"
>
> I am well aware that node-set is not a standard XSLT
> function. However, because of the nature of (rather strange)
> data type "result tree fragment" (rtf from now), there is
> nothing I can do with the rtf. But if I can convert rtf into
> a nodeset... and normally I can. MS parser supports this, and
> almost any other parser out there. However, the stylus
> debugger does not seem to support this, which renders many
> (complex) XSLT files unusable for debugging. Playing with
> simple XSLT files is all nice and cool, but I have rather
> complex stylesheets that heavily use node-set extension. Is
> there a way to use this extension while debugging?
>
>
>
> To reply: mailto:stylus-studio-xslt.3132@edn.exceloncorp.com
> To start a new topic: mailto:stylus-studio-xslt@edn.exceloncorp.com
> To login: http://edn.exceloncorp.com/~SSDN
>
>

Postnext
Drazen DotlicSubject: RE: node-set extension
Author: Drazen Dotlic
Date: 21 Jun 2001 09:08 AM
Only for some rtf this implicit conversion is done (the ones that are already a part of the stylesheet)... besides, I see no samples that you mention in your post (now I see why, html/xsl/xml code is stripped by this board)??

Anyway, here's what I do (just a sample of real-life code)
''


where template "blah" outputs some "ha" nodes. Later on, when I want to reference "ha" nodes using "$example/ha" I get an error that $example is not a node-set (the debugger is right). So I definitely need an (semi-standard) "node-set" extension. Besides from this, I find stylus' debugger quite good (actually, I do not know of any other XSLT debugger out there).

Postnext
Drazen DotlicSubject: RE: node-set extension
Author: Drazen Dotlic
Date: 21 Jun 2001 09:15 AM
Since the board AGAIN stripped all "HTML" 
code... (I wrote a short XSLT sample that is 
invisible, just like Ivan's examples), I'll 
try again...

The sample should read:


   

Postnext
Drazen DotlicSubject: RE: node-set extension
Author: Drazen Dotlic
Date: 21 Jun 2001 09:17 AM
I am becoming desperate... how can one enter XSLT code without being stripped by this board???

Postnext
Minollo I.Subject: RE: node-set extension
Author: Minollo I.
Date: 21 Jun 2001 09:48 AM
At 09:22 AM 6/21/2001 -0400, you wrote:
>From: "Drazen Dotlic"
>
>I am becoming desperate... how can one enter XSLT code without being
>stripped by this board???
>
>
>


Drazen,
can you send us a simple testcase? What you are describing should work
in Stylus Studio (without any need of using the node-set function); if it
doesn't, we need to understand where the problem is.

Thanks,
Minollo

Postnext
Ivan PedruzziSubject: RE: node-set extension
Author: Ivan Pedruzzi
Date: 21 Jun 2001 09:22 AM

If you choose the email notification option, the message will be
forwarded correctly

Ivan Pedruzzi
eXcelon Corporation
http://www.stylusstudio.com



> -----Original Message-----
> From: stylus-studio-xslt Listmanager [mailto:listmanager]
> Sent: Thursday, June 21, 2001 9:20 AM
> To: Recipients of 'stylus-studio-xslt' suppressed
> Subject: RE: node-set extension
>
>
> From: "Drazen Dotlic"
>
> Since the board AGAIN stripped all "HTML"
> code... (I wrote a short XSLT sample that is
> invisible, just like Ivan's examples), I'll
> try again...
>
> The sample should read:
>
>
>
>

>
>
>
> To reply: mailto:stylus-studio-xslt.3135@edn.exceloncorp.com
> To start a new topic: mailto:stylus-studio-xslt@edn.exceloncorp.com
> To login: http://edn.exceloncorp.com/~SSDN
>
>

Postnext
Drazen DotlicSubject: RE: node-set extension
Author: Drazen Dotlic
Date: 21 Jun 2001 09:47 AM
Nope. Look at your posts, nothing is visible... anyways, I'll describe what I am doing. I have enclosed call-template with an variable. Therefore, template emits some nodes that are then (at run time) constituting this variable (which is a rtf). If I try to use something like $example/ha (where example is a variable name and ha are the nodes emitted by the template) debugger correctly complains.

Postnext
Minollo I.Subject: RE: node-set extension
Author: Minollo I.
Date: 21 Jun 2001 09:51 AM
At 09:52 AM 6/21/2001 -0400, you wrote:
>From: "Drazen Dotlic"
>
>Nope. Look at your posts, nothing is visible... anyways, I'll describe
>what I am doing.

If you select "Options..." in the webboard and ask for "Email
notification", you will be able to ask the webboard to forward you by email
the messages posted on the lists you are interested in. In the emails you
will receive, you won't loose xml content (I've been able to see both
Ivan's and your examples posted earlier on this thread).

This is an annoying behavior of the webboard software we are using; we are
looking into possible solution. In the meanwhile, sorry for the inconvenience.

Minollo

Posttop
Ivan PedruzziSubject: RE: node-set extension
Author: Ivan Pedruzzi
Date: 21 Jun 2001 09:15 AM
This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C0FA33.DD525350
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

From: "Ivan Pedruzzi" ivan@exceloncorp.com







......using MSXML you would loop on all the a's doing:



Using Stylus Studio you do:



Hope this help

Ivan Pedruzzi

eXcelon Corporation

http://www.stylusstudio.com



Ivan Pedruzzi
eXcelon Corporation
http://www.stylusstudio.com



> -----Original Message-----
> From: stylus-studio-xslt Listmanager [mailto:listmanager]
> Sent: Thursday, June 21, 2001 9:13 AM
> To: Recipients of 'stylus-studio-xslt' suppressed
> Subject: RE: node-set extension
>
>
> From: "Drazen Dotlic"
>
> Only for some rtf this implicit conversion is done (the ones
> that are already a part of the stylesheet)... besides, I see
> no samples that you mention in your post (now I see why,
> html/xsl/xml code is stripped by this board)??
>
> Anyway, here's what I do (just a sample of real-life code)
> ' > name="blah"/>'
>
>
> where template "blah" outputs some "ha" nodes. Later on, when
> I want to reference "ha" nodes using "$example/ha" I get an
> error that $example is not a node-set (the debugger is
> right). So I definitely need an (semi-standard) "node-set"
> extension. Besides from this, I find stylus' debugger quite
> good (actually, I do not know of any other XSLT debugger out there).
>
>
>
> To reply: mailto:stylus-studio-xslt.3134@edn.exceloncorp.com
> To start a new topic: mailto:stylus-studio-xslt@edn.exceloncorp.com
> To login: http://edn.exceloncorp.com/~SSDN
>
>


------=_NextPart_000_000D_01C0FA33.DD525350
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable







(!-- Converted from text/plain format -->

From: "Ivan Pedruzzi" href="mailto:ivan@exceloncorp.com">ivan@exceloncorp.com


<xsl:variable name="var">
<a att="1"/>
<a
att="2"/>
<a att="3"/>
</xsl:variable>


.....using MSXML you would loop on all the a's doing:


<xsl:for-each select="msxsl:node-set($var)/a">


Using Stylus Studio you do:


<xsl:for-each select="$var/a">


Hope this help


Ivan Pedruzzi


eXcelon Corporation


size=2>http://www.stylusstudio.com




Ivan Pedruzzi
eXcelon Corporation
href="http://www.stylusstudio.com">http://www.stylusstudio.com
<=BR>

>
-----Original Message-----
> From: stylus-studio-xslt Listmanager =[ href="mailto:listmanager">mailto:listmanager]
> Sent: =Thursday, June
21, 2001 9:13 AM
> To: Recipients of 'stylus-studio-xslt'
suppressed
> Subject: RE: node-set =extension
>
>
> From:
"Drazen Dotlic" <drazen@teletrader.com>
>
> Only for =some rtf
this implicit conversion is done (the ones
> that are already a =part of
the stylesheet)... besides, I see
> no samples that you mention in =your
post (now I see why,
> html/xsl/xml code is stripped by this
board)??
>
> Anyway, here's what I do (just a sample of =real-life
code)
> '<xsl:variable =name="example"><xsl:call-template
>
name="blah"/></xsl:variable>'
>
>
> where =template
"blah" outputs some "ha" nodes. Later on, when
> I want to =reference "ha"
nodes using "$example/ha" I get an
> error that $example is not a =node-set
(the debugger is
> right). So I definitely need an (semi-standard) =
"node-set"
> extension. Besides from this, I find stylus' debugger =
quite
> good (actually, I do not know of any other XSLT debugger =out
there).
>
>
>
> To reply: href="mailto:stylus-studio-xslt.3134@edn.exceloncorp.com">mailto:stylus=-studio-xslt.3134@edn.exceloncorp.com
>
To start a new topic: href="mailto:stylus-studio-xslt@edn.exceloncorp.com">mailto:stylus-stud=io-xslt@edn.exceloncorp.com
>
To login: href="http://edn.exceloncorp.com/~SSDN">http://edn.exceloncorp.com/~SSD=N
>
>



------=_NextPart_000_000D_01C0FA33.DD525350--

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.