[xep-support] Using: unparsed-entity-uri()
G. Ken Holman
gkholman at CraneSoftwrights.com
Tue Apr 18 07:47:24 PDT 2006
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:
http://www.w3.org/TR/xslt20/#function-unparsed-entity-uri
I hope this helps.
. . . . . . . . . . Ken
T:\ftemp>type steve.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document [
<!ENTITY nbsp " ">
<!ENTITY ge "≥">
<!ENTITY le "≤">
<!ENTITY I1058374643JM SYSTEM "./data/EN1058374643JM-002" NDATA eps>
<!ENTITY I1071003752JM SYSTEM "./data/EN1071003752JM-001" NDATA eps>
]>
<document>
<graphic scale2fit="1" width="1.198in" height="1.560in"
entityref="I1058374643JM
" scaling_percent="30"/>
</document>
T:\ftemp>type steve.xsl
<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:template match="graphic">
<xsl:value-of select="unparsed-entity-uri(@entityref)"/>
</xsl:template>
</xsl:stylesheet>
T:\ftemp>xslt-saxon steve.xml steve.xsl con
file:/T:/ftemp/data/EN1058374643JM-002
T:\ftemp>xslt-saxon8 steve.xml steve.xsl con
T:\ftemp>
--
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 mailto:gkholman at CraneSoftwrights.com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/f/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
More information about the Xep-support
mailing list