One approach would be to craete an XSL stylesheet that transforms the
InfoPath XML document to an XHTML presentation, and add a processing
instruction to the documents that references that stylesheet. When the
user goes to open the XML file the processing instructions for InfoPath
won't do anything on a computer without InfoPath installed, so the
stylesheet will be used to present it in a format that any browser can
handle.
The structure and content of the XSL are going to depend largely on the
XML schema of your document, but the processing instruction is fairly
generic:
<xsl:processing-instruction name="xml-stylesheet">type="text/xsl"
href="INSERT_URL_TO_YOUR_XSL_HERE"</xsl:processing-instruction>
Steve Hohman - 13 Jan 2006 11:37 GMT
I'll give it a try and see what happens. Thank you.
> One approach would be to craete an XSL stylesheet that transforms the
> InfoPath XML document to an XHTML presentation, and add a processing
[quoted text clipped - 9 lines]
> <xsl:processing-instruction name="xml-stylesheet">type="text/xsl"
> href="INSERT_URL_TO_YOUR_XSL_HERE"</xsl:processing-instruction>
Steve Hohman - 13 Jan 2006 14:00 GMT
I did some additional reading on down-level views and it looks as though this
will convert the form just fine, but there may be some additional
modifications needed to get the form to my client.
What I am hoping to do is based on this scenario.
I have 2 submit buttons in the form. The first submit button is used after
the work order information is entered by one of three employees, all of which
have InfoPath. This submit button attaches the form to an email and then
sends it to all three employees so we know we have a generated work order.
The person completing the work then calls the form up in the field and enters
additional information into the form based on the work done.
After all work is completed, there is a second submit button that sends the
completed work order to the same three people as above (the ones with
InfoPath) and to an email address entered into the form as the contact at the
clients location. This person does not have InfoPath installed. Therefore,
I need to have some code entered into that submit command that converts the
form and attaches the converted form to the second email so that all
recipients, whether they have InfoPath or not installed, can read the
finished product. As I mentioned before, this is second email is a read-only
format, no further modification of the form is necessary, so there is no need
to retain the XML structure. After some more time (and learning on my part),
the forms will be redone to link to a database that will hopefully be
populated before the second submit is done.
Is this possible with the command line mentioned by Sam, or am I starting
into an exercise in futility?
Steve
> One approach would be to craete an XSL stylesheet that transforms the
> InfoPath XML document to an XHTML presentation, and add a processing
[quoted text clipped - 9 lines]
> <xsl:processing-instruction name="xml-stylesheet">type="text/xsl"
> href="INSERT_URL_TO_YOUR_XSL_HERE"</xsl:processing-instruction>