scopley 0 Posted September 24, 2013 Report Share Posted September 24, 2013 Does anyone know of a way to extract graphic entity paths from XML files using XSLT or any other type of language? Here is a portion of the XML I want to extract the !ENTITY PATH information from: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mpc SYSTEM "C:xmlmpcxmlmpc.dtd" [ <!ENTITY mh65d2210032a31 SYSTEM "G:MH65DPublication IllustrationsMPCm2214501.cgm" NDATA cgm> ]> <mpc model="65" mpcid="m2214501" type="gen"> <reas>Administrative/Operational use</reas> <office>the appropriate asset product line</office> <idinfo>......</idinfo> </mpc> Thanks in advance. Quote Link to post Share on other sites
Martin Honnen 16 Posted September 24, 2013 Report Share Posted September 24, 2013 A SAX parser can do that: http://www.saxproject.org/apidoc/org/xml/sax/EntityResolver.html. XSLT does not have DTDs or entities in its data model so it is not suitable to solve your problem. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.