xsl-list
[Top] [All Lists]

RE: [xsl] XML Question

2006-10-03 15:51:12
The stylesheet you are using calls msxsl:node-set(), which is a
vendor-specific extension function for the MSXML processor, but you are
running it (judging by the familiar error message) using Saxon.

I can't actually see why the stylesheet needs to call msxsl:node-set(). In
the construct

<xsl:value-of select="msxsl:node-set($theResult)"/>

$theResult is a result-tree-fragment; msxsl:node-set() is converting it to a
node-set, and xsl:value-of is then converting the node-set to a string. I
think this always gives the same result as converting the
result-tree-fragment directly to a string, which you can write as
<xsl:value-of select="$theResult"/>

Michael Kay
http://www.saxonica.com/
 

-----Original Message-----
From: LINKE Markus [mailto:markus(_dot_)linke(_at_)linke(_dot_)de] 
Sent: 03 October 2006 22:47
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] XML Question

I've tried it but I receive an:

SystemID: xxx.xsl
Location: 98:0
Description: The URI urn:schemas-microsoft-com:xslt does not 
identify an external Java class

error message at this location:

      </xsl:variable>
      <xsl:value-of select="msxsl:node-set($theResult)"/> 
<!-- here -->
   </xsl:template>

???

Thanks for your help!
Markus

----- Dimitre Novatchev <dnovatchev(_at_)gmail(_dot_)com> wrote:
You need to apply this code:
   http://www.topxml.com/code/default.asp?p=3&id=v20010323001030

to all leaf nodes in the tree.



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant 
intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
You've achieved success in your field when you don't know 
whether what 
you're doing is work or play



On 10/3/06, LINKE Markus <markus(_dot_)linke(_at_)linke(_dot_)de> wrote:
this might be the better audience ...

----- LINKE Markus <markus(_dot_)linke(_at_)linke(_dot_)de> wrote:
Hi,

I am not sure if this is the right list for such a question, but
lets
try :)

I would like to create a list of xpaths via xsl from a given 
xml-structure like this:

<a>
   <b>
      <c>
         content
      </c>
      <d>
         morecontent
      </d>
   </b>
</a>

it should show the full xpath like

a/b/c  ====>   content
a/b/d  ====>   morecontent

and not just

c => content
d => morecontent

Ideas anyone? I am looking for either a script or some xsl ...

Cheers,
Markus




--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>