Subject: Re: [xsl] Using PIs to set attributes From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 08 Jun 2006 14:52:29 -0400 |
I've got some XML that looks like this:
<p>Programmatic access to objects is determined by the objects that are <ul><?Fm Condstart API_Only?> <li>defined in your enterprise WSDL file</li> <li><?Fm Condend API_Only?><?Fm Condstart OT_Only?> available in the EntityNames[] array in the Session3 object <?Fm Condend OT_Only?></li> <li>in your organization configuration</li> <li>valid with your security access ....
The processing instructions are designed to indicate conditional text (if API is the target, include the content between the <?Fm Condstart API_Only?> and <?Fm Condend API_Only?>).
I'd like to process this XML and be able to replace it with something like this:
<p>Programmatic access to objects is determined by the objects that are <ul> <li platform="api">defined in your enterprise WSDL file</li> <li><ph platform="ot">available in the EntityNames[] array in the Session3 object</ph></li> <li>in your organization configuration</li> <li>valid with your security access ....
I'm really not sure how to do this. These PIs are ill-behaved, crossing element boundaries, can be nested, and can cross each other's boundaries as well. In other words, you could also see this:
<p>Programmatic access to objects is determined by the objects that are <ul><?Fm Condstart API_Only?> <li>defined in your enterprise WSDL file</li> <li><?Fm Condstart OT_Only?><?Fm Condend API_Only?> available in the EntityNames[] array in the Session3 object <?Fm Condend OT_Only?></li> <li>in your organization configuration</li> <li>valid with your security access ....
Notice how OT_Only starts before API_Only ends? I'm stumped, so any advice would be greatly appreciated.
<ul><?Fm Condstart API_Only?> <li>defined in your enterprise WSDL file</li> <li><?Fm Condstart OT_Only?> available in the EntityNames[] array <?Fm Condend API_Only?> in the Session3 object <?Fm Condend OT_Only?></li> <li>in your organization configuration</li> <li>valid with your security access ....
Given the right search terms, Google might point you to http://mulberrytech.com/Extreme/Proceedings/html/2004/Piez01/EML2004Piez01.html or any of a number of other papers that have been written on this topic.
Good luck, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using PIs to set attributes, Steven Anderson | Thread | RE: [xsl] Using PIs to set attribut, Steven Anderson |
[xsl] RE : Re: [xsl] "not a node it, Florent Georges | Date | Re: [xsl] Copy part of the file if , Jeni Tennison |
Month |