Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 9th, 2008, 10:32 AM
Registered User
 
Join Date: Nov 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copying Graphic Entities

I am using XSLT to extract data from 1 XML file to another XML file. Is there a way to copy the graphic entities?

The input xml file would have a graphic entity like this:

<!ENTITY c130h1130003b SYSTEM "H:\Publication Illustrations\Books\cgm\c130h1130003b.cgm" NDATA cgm>

I need to copy this verbatim during transformation into the new XML file.

Thanks in advance for your help.

Sarah
 
Old January 9th, 2008, 04:06 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I'm afraid XSLT has very limited support for unparsed entities. In XSLT 1.0 this is limited to the unparsed-entity-uri() function, which allows you to determine the system ID of an entity if you know its name. In XSLT 2.9 this is supplemented by unparsed-entity-public-id(), which allows you to discover the public ID as well. But there is no way of discovering the names of the entities that have been declared. (As the shopkeepers always say, there's no demand for it luv, no-one buys unparsed entities these days...)

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old January 9th, 2008, 04:10 PM
Registered User
 
Join Date: Nov 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Except Arbortext.

Thanks for the update will have to go to plan B.

Sarah
 
Old January 10th, 2008, 05:51 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by mhkay
 In XSLT 2.9 this is supplemented by...

How exciting, a new release :)

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert entities... carlosaml XSLT 12 October 17th, 2007 03:52 AM
referenced entities bcogney XML 7 April 21st, 2006 11:04 AM
referenced entities bcogney XSLT 0 April 20th, 2006 02:37 PM
Entities as String muki XSLT 3 November 12th, 2005 12:15 PM
Entities safin XSLT 1 November 7th, 2005 04:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.