[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XML Question

Subject: RE: XML Question
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 3 Oct 2006 23:50:49 +0100
xml question
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.