Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: newbie xsl:processing-instruction question

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 9/7/2007 5:45:00 PM

Martin Welch wrote:

> Now I don't know if this is significant but I'm using firefox 2.x on 
> WinXP to open pi.xml and looking at the results using WebDeveloper 1.1.4 
> which gives me an option to view generated source.
> 
> I've searched the newsgroups for two days now with no result.
> 
> Could anyone give me a clue where I might be going wrong? Can anyone 
> suggest a better (free) tool to help 'debug' my feeble attempts?

I have tried your sample with Firefox 2.0, to check the result document 
I have typed
javascript: alert(new XMLSerializer().serializeToString(document)); void 0
in the location bar (as one line) and hit enter.
Rest assured that the processing instruction is part of the result 
document so the XSLT transformation is working fine in Firefox.
You can also simply use Tools -> DOM Inspector to see the nodes in the 
result document, it also shows the processing instruction node.

No idea about WebDeveloper, check whether they have a mailing list or 
forum to ask why it does not show that processing instruction.

And generally, unless you are specifically developing for Firefox, I 
think learning XSLT and transforming XML to XML is better done with a 
command line XSLT processor such as (for instance) Saxon 6 
<URL:http://saxon.sourceforge.net/saxon6.5.5/index.html> as that way you 
see the result document in the console window or in a file editor. A 
browser tries to render the XML and that way you see only the text node 
content and not the XML.

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent