Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] XML Question

From: "Michael Kay" <mike@------------>
To:
Date: 10/3/2006 10:51:00 PM
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


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent