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

SV: Find node-set from string

Subject: SV: Find node-set from string
From: "Per Osnes" <per.osnes@xxxxxx>
Date: Wed, 29 Nov 2006 15:08:55 +0100
SV:  Find node-set from string
Exactly.
As mentioned in my original posting, I have tried some of these extensions,
and obviously there's some basics I'm missing.
I'm using the <oXygen/> debugger with the a test file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:fn="http://www.w3.org/2005/xpath-functions"
	xmlns:xdt="http://www.w3.org/2005/xpath-datatypes"
	xmlns:dyn="http://exslt.org/dynamic"
	xmlns:exsl="http://exslt.org/common"
	xmlns:saxon="http://saxon.sf.net"
	extension-element-prefixes="saxon dyn exsl">
  <xsl:template match="/">
	A: <xsl:value-of select="function-available('dyn:evaluate')"/>
	B: <xsl:value-of select="function-available('exsl:node-set')"/>
	C: <xsl:value-of select="function-available('saxon:evaluate')"/>
	D: <xsl:value-of select="function-available('saxon:parse')"/>
  </xsl:template>
</xsl:transform>

Result specifying Saxon processor:
<?xml version="1.0" encoding="UTF-8"?>
	A: false
	B: true
	C: false
	D: false

Result specifying Xalan processor:
<?xml version="1.0" encoding="UTF-8"?>
	A: true
	B: false
	C: false
	D: false

Kind of strange that Saxon does not support the Saxon extensions?
But perhaps this is an <oXygen/> dependant issue, I guess.

 - Per Osnes -


-----Opprinnelig melding-----
Fra: Florent Georges [mailto:darkman_spam@xxxxxxxx]
Sendt: 29. november 2006 13:46
Til: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Emne: Re:  Find node-set from string

Per Osnes wrote:

  Hi

> Q1: Is there any other alternatives for such a conversion?

  You want to parse the string as XML.  It is not standard, but some
processors provide an extension function to do that, for example
saxon:parse().

  Regards,

--drkm



























___________________________________________________________________________
Yahoo! Mail riinvente le mail ! Dicouvrez le nouveau Yahoo! Mail et son
interface rivolutionnaire.
http://fr.mail.yahoo.com

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-2011 All Rights Reserved.