[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:element will not create an output element, in

Subject: Re: xsl:element will not create an output element, in any context
From: N David Brown <orieldave@xxxxxxxxxxxxxx>
Date: Fri, 01 Jun 2007 11:27:59 +0000
Re:  xsl:element will not create an output element
Sweet! It works!

I changed my PHP from

...
$outputXML = xmlify(trim($xslProc->transformToDoc($xmlDoc->textContent)))
...

to

...
$outputXML = $xslProc->transformToXML($xmlDoc))
...

Now everything is output as expected =D It looks like a few of the things you guys mentioned were producing the problem, since originally the plain XML file linked to XSL wouldn't even work.

Thanks so much for all your help, David and Abel, I really appreciate it =)

*scampers off like happy bunny*

- Dave


David Carlisle wrote:
Why is the namespace not correct?
because it's got the wrong characters in it.
the xhtml namespace is
http://www.w3.org/1999/xhtml
and you declared (but didn't use)
http://www.w3.org/1999/XHTML
which is a different namespace.

I just tested the link...
Whether a server serves anything from a URI has no relationship to
whether that URI is usable as a namespace for a particular vocabulary.
Thw w3c server  rewrites the URI to lowercase if it would otherwise
fail a GET request which is a convenience if you are trying to get web
pages, but irrelevant to namespace processing which is case sensitive.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.