Subject: RE: [xsl] XML Question From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Tue, 3 Oct 2006 23:50:49 +0100 |
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.linke@xxxxxxxx] > Sent: 03 October 2006 22:47 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > 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@xxxxxxxxx> 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.linke@xxxxxxxx> wrote: > > > this might be the better audience ... > > > > > > ----- LINKE Markus <markus.linke@xxxxxxxx> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XML Question, Abel Braaksma | Thread | SV: [xsl] XML Question, Per Osnes |
Re: [xsl] XML Question, Abel Braaksma | Date | Re: [xsl] XML Question, Dimitre Novatchev |
Month |