Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
I think this may have some wide appeal to those of us who want to use XML/XSL for formatting things. With the new versions of the browser, Microsoft .NET, and the XML standards in general, I have been stuck in the mud on getting something out of my transformations.
I link to my Google post here and will paste the solution, if there is one
Thread Here
ANSWER!!
It is all about the NameSpace. I wondered if that could be a problem, but had no hint as to how I would solve it.
Seems my XML came from Microsoft .NET with a nice big tacky
xmlns="http://tempuri.org/PurchaseData.xsd"
This required me to declare the namespace in my XSLT as :
xmlns:prd=
"http://tempuri.org/PurchaseData.xsd"
exclude-result-prefixes="pd"
And to be sure the prefix my selection criteria in the actual XSL commands with that namespace and a colon.
I was wanting to use this technology for an emailed report thing, but have since gone on to employ a Page_PreRender event handler which captures all the HTML of a page by calling RenderChildControls, and then emails that.
No comments:
Post a Comment