Re: [xep-support] Using: unparsed-entity-uri()

From: G. Ken Holman <>
Date: Tue Apr 18 2006 - 07:47:24 PDT

At 2006-04-18 09:10 -0500, Steve Ylvisaker wrote:
>I am trying, without success, to use the "unparsed-entity-uri()"
>function to resolve the file path for my graphics. I'm sure that I
>am missing something simple but it just isn't revealing itself to me.

If you are using Saxon, then I think you've tripped over an issue to
report to Mike.

>Following is my doctype declaration:
>In the xml the graphic reference is as follows:
>My style sheet is coded as follows:
>Any insight as to what I am missing would be very much appreciated.

I don't think you are missing anything ... below is my test with your
data. I suggest you report it to a Saxon list somewhere.

I don't see anything in XSLT 2 that would suggest the behaviour has changed:

I hope this helps.

. . . . . . . . . . Ken

T:\ftemp>type steve.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document [
  <!ENTITY nbsp "&#160;">
  <!ENTITY ge "&#8805;">
  <!ENTITY le "&#8804;">
  <!ENTITY I1058374643JM SYSTEM "./data/EN1058374643JM-002" NDATA eps>
  <!ENTITY I1071003752JM SYSTEM "./data/EN1071003752JM-001" NDATA eps>

<graphic scale2fit="1" width="1.198in" height="1.560in"
" scaling_percent="30"/>

T:\ftemp>type steve.xsl
<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet xmlns:xsl=""

<xsl:output method="text"/>

<xsl:template match="graphic">
   <xsl:value-of select="unparsed-entity-uri(@entityref)"/>

T:\ftemp>xslt-saxon steve.xml steve.xsl con


T:\ftemp>xslt-saxon8 steve.xml steve.xsl con


Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16
Also for XML/XSLT/XSL-FO training:Birmingham,England 2006-05-22/25
Also for XSLT/XSL-FO training:    Copenhagen,Denmark 2006-05-08/11
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman       
Crane Softwrights Ltd.
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05
Legal business disclaimers:
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Tue Apr 18 08:22:13 2006

This archive was generated by hypermail 2.1.8 : Tue Apr 18 2006 - 08:22:14 PDT