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]
Other format: [Raw text]

RE: object "me"


Why don't you just use:

	<xsl:value-of select="/XML/NOTA/IMAGENES/IMAGEN" />
?

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Ladetto, Juan
> (Sistemas On Line)
> Sent: Tuesday, April 09, 2002 10:40 PM
> To: 'xsl-list@lists.mulberrytech.com'
> Subject: RE: [xsl] object "me"
>
>
> after all, sorry for my poor english...
> hi all. I had solved part of my problem. I was needed something like this.
>
> ...
> <msxsl:script language="VBScript" implements-prefix="user">
> <![CDATA[
>
> Function ContarElementos(Nodo, xpath)
> 	set NodoUnico = Nodo.item(0)
> 	ContarElementos = NodoUnico.selectSingleNode(xpath).text
> End Function
>
> ]]></msxsl:script>
> <xsl:output method="html" version="4.0" encoding="ISO-8859-1" />
>
> <xsl:template match="/">
> <xsl:value-of select="user:ContarElementos(/,
> '/XML/NOTA/IMAGENES/IMAGEN')"
> />
> ....
>
> i know about this code is unnecessary, but i need do some functions.
>
> sorry and thanks.
>
>
>
> -----Original Message-----
> From: Andrew Welch [mailto:andrew@thebristoldirectory.com]
> Sent: Martes, 09 de Abril de 2002 09:23 a.m.
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] object "me"
>
>
> > when i work with 'xmlns:xsl="http://www.w3.org/TR/WD-xsl";', i
> can send the
> > object "me" from xsl to a function and the type of this object is
> > xmlobject.
> > i am trying to migrate my xslt's files to use
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; but the object
> "me" isn't
> a
> > xmlobject.
> > that is true? how i can transform this "nodelist" object to xmlobject?
>
> Hi,
>
> I think you are trying to use xslt as you would wd-xsl.  For its lack of
> functionality, wd-xsl uses <xsl:eval> to escape to embedded JScript where
> you can work on a node-set (object) and return the result, or whatever
> really.
>
> Xslt provides more functionality so you shouldn't really need to
> access the
> object.
>
> You could post some sample code for someone to help you with.  Often, and
> >from personal experience, the best way to migrate from wd-xsl to
> xslt is to
> work from the result backwards.  For example, produce your html using
> wd-xsl, then bin it and concentrate on the xslt needed to convert
> your data
> into that html.
>
> cheers
> andrew
>
>
>
> *********************************************************
> *<a href="http://www.thebristoldirectory.com"; >The Bristol Directory</a>*
> *********************************************************
>
>
>
>  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


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