scopley Posted September 24, 2013 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. Link to comment Share on other sites More sharing options...
Martin Honnen Posted September 24, 2013 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now