|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: 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@xxxxxxxxxxxxxxxxxxxxxxx] Sent: Martes, 09 de Abril de 2002 09:23 a.m. To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








