I am trying to write XSLT that will import a dynamci external XML document to display the information on my website. I continually get a "Invalid URI: The URI scheme is not valid." error though.
My thought is this. I set the dynamic subdomain via a variable (ChangableSubdomain) and then I combine it with the source address (http://sourceURL.com/) and then I use the combined variable with umbraco.library:GetXmlDocumentByUrl
- note that the literal method (#2) doesn't need the apostrophes. Normally (for processor optimization reasons, I've read) the first method is better than the other if you're just doing simple strings like those.
Dynamic URL in GetXmlDocumentByUrl
I am trying to write XSLT that will import a dynamci external XML document to display the information on my website. I continually get a "Invalid URI: The URI scheme is not valid." error though.
My thought is this. I set the dynamic subdomain via a variable (ChangableSubdomain) and then I combine it with the source address (http://sourceURL.com/) and then I use the combined variable with umbraco.library:GetXmlDocumentByUrl
So if I write:
Problem is if I write
it doesn't work.
Suggestions? Help? Thanks!!!!!
FYI. Eventually ChangableSubdomain will actually be a macro parameter that is passed in on the page.
Hi Stephen,
It's the literal apostrophes that's breaking stuff - try this instead:
To create a string variable you can do 2 things (added spaces not necessary):
or:
- note that the literal method (#2) doesn't need the apostrophes. Normally (for processor optimization reasons, I've read) the first method is better than the other if you're just doing simple strings like those.
/Chriztian
That was great.I even thought to try the concat method; but I had tried so many I knew one of you would know the answer right off...
Sorry I can't high five you (whatever that does) I am not karmad enough...
is working on a reply...