Jump to content

how to convert processing-instruction to an element?


shaileshb

Recommended Posts

Hi,I have few processing-instructions throughout the xml file. I need to convert them to a new tag including it's attributes & attribute values. For example,I have a prcessing-instruction:<?Insert-Figure temp="12345" id="23456" number="1.1"?>I need to conver it to:<figure temp="12345" id="23456" number="1.1" />Please suggest.

Link to comment
Share on other sites

David Carlisle shows a method you could use but it would requre you to make a template for each kind of processing instruction. Also, this particular method doesn't "copy" the pseudo attributes as attributes, but you can always map all of them anyhow.I can already think up of a more general mehtod, but it's sure to requre a processor that supports disable-ouput-escaping (not Transformiix - Firefox).

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...