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

RE: Comparing node for identity using union

Subject: RE: Comparing node for identity using union
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Wed, 19 Jan 2005 10:16:00 -0600
xsl node union
Hi Jim,

I suggest you could read up a book about XSLT, Michael Kay's XSLT (1.0) 2nd
Edition is great value, see page 83-95, for a start...

Or you could easily google up some useful information on XSLT data types...

Cheers,
<prs/>

-----Original Message-----
From: Jim Neff [mailto:jneff@xxxxxxxxxxxxxxx]
Sent: Miircoles, 19 de Enero de 2005 08:04 a.m.
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Comparing node for identity using union

This might be a good time for one of the gurus on this list to briefly
explain data-types in XSLT for us n00bs.

I struggle with this a lot as I am used to procedural languages that will do
data-type converstions for me.

I guess some questions that I'd like to see answered are :

How are variables typed in XSLT?  When the variable is defined or when its
used?

Will XSLT automatically convert data types?  i.e. does "2" = 2  Why or why
not?

Can I just explicity use data-type functions, like number() or string()?  Is
this a good way to do this?


Or if you can point us to resources that explains the foundations of
data-types in XSLT, that would be great.

Thanks,
Jim Neff




-----Original Message-----
From: Antsnio Mota [mailto:amsmota@xxxxxxxxx]
Sent: Wednesday, January 19, 2005 8:02 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Comparing node for identity using union

Well, when i say it's a bug i'm basing myself on the fact that i've tryed my
xslt with MSXML3, MSXML4, Xalan, Saxon6.5.3, Saxon8.1B, Xsltproc, and using
Javascript /Sarissa DomDocument.transformNodeTo Object and
XSLTProcessor.transformToDocument and this problem occurs ony when using
this last one. But what do i know...

The $pos is defined like

	<xsl:param name="pos" select="0"/>


and i'm passing the value from Javascript


The sugestion from Jonis also work OK

	<xsl:variable name="snode" select="(//Menu)[number($pos)]"/>


Regards.

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.