xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] toknize() not working with saxon9


Subject: [xsl] toknize() not working with saxon9
From: a kusa <akusa8@xxxxxxxxx>
Date: Fri, 12 Mar 2010 15:49:47 -0600

Hi

I am trying to use tokenize() to grab the name of an entity.

Here is my input XML:

<!DOCTYPE test [
<!ENTITY g1 SYSTEM "123-g1.tif" NDATA CCITT4>]>
<test>


<image id="g1" res="34" inbr="g1"/>
</test>

Here is my XSL snippet:

<xsl:template match="image">

	<xsl:variable name="temp1" select="unparsed-entity-uri(@inbr)"/>
<xsl:variable name="temp2" select="tokenize($temp1, '/')[last()]"/>
	<graphic>
			<xsl:attribute name="href"><xsl:value-of select="$temp2"/></xsl:attribute>
			<xsl:attribute name="id" select="@id"/>
</graphic>

</xsl:template>

When I run this on an individual file in XML Spy, I get the value of
cariable temp2 as '123-g1.tif'. But when I run this using saxon, it is
empty.

Can anyone help point out what is the issue here?

Thanks in advance.


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor