|
Thanks Michael, it is semi-temporary. I have not been off of CP voluntarily, but rather I have been at the mercy of my internet connection which deems CP an unforgivingly slow site.
However our new line should be in within the week and I shall be back next week.
I miss the place
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
|
|
|
|
|
The output works GREAT for the !DOCTYPE, and is much preferable to the method I got from above (enclosing it in a <xsl:text disable-output-escaping="yes"> section)
But... I'm still stuck on getting my <?xml...?> into the output, as I am really trying to output XHTML, not HTML as the above <xsl:output> you posted says (and all good XHTML has a <?xml...?> declaration, as it is XML).
Will this automagically appear, with the encoding specified in the <xsl:output> tag? Or do I have to put it in a <xsl:text disable-output-escaping="yes"> tag?
Again, I could figure this all out myself without bugging everyone if someone would just write a program that takes in.xml, and using transform.xsl outputs out.xsl. That's all I need! I have one that is supposed to do this called XSL Tester, but it's rather screwy (always outputting a <?xml version="1.0" encoding="UTF-16"?> at the top, no matter what I do with output or text tags.), and doesn't use the .NET version of MSXML so I'm never sure if that's really what's going to happen. Heck, I could send you the source code if you would compile it!
Thank you for your time and help,
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
Actually, now I have a working solution, but I'm getting the idea it's bad practice, and wanted to know if it is.
I enclose EVERYTHING in a:
<xsl:text>
<!CDATA[[
<!-- There's a bunch of XHTML here,
including the xml processing instruction and the
DOCTYPE, but it's parsed as simply text. Is
this good practice? Because it's convenient! -->
]]>
</xsl:text>
section. It works, and it's very convienient. Whenever I want to output something using template rules, I simply end if with a ]]></xsl:text> , write the xsl element, then restart it with the <xsl:text><!CDATA[[ . But... this just seems kind of wrong... but it works... but it seems wrong... but... so, what do you think?
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|
|
Domenic [Geekn] wrote:
But... this just seems kind of wrong... but it works... but it seems wrong... but... so, what do you think?
It works, just like using pantyhose to fix a broken fan-belt in a car works. However as soon as you can you should get a new proper fan-belt, right?
I had a crushing deadline which forced me to use the xsl:text method to output the DOCTYPE.
However what happened was that when a third party tried to programatically query my XSL documents to gather some info for an integration project they failed to get the DOCTYPE. I eventually re-coded my XSL docs to use the output method.
So the answer is; Yes it works but don't do it if you can avoid it. Your XSL docs will be technically better and easier to maintain in the future if you use the proper output method.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
"Reports of my death have been greatly exaggerated."
|
|
|
|
|
Hi there, anybody using Microsoft Sharepoint Portal? If any one know how to customize the sharepoint enviroment or where to get more web part, please help me! Thanks all.
Tho
|
|
|
|
|
Go to the Microsoft site and search for Sharepoint. You'll find plenty of information there.
You can get a bunch of web parts here.
|
|
|
|
|
Thanks a lots, MarSCoZa! It is really helpful, do u know how to set the SMTP
setting to use the email notification feature in Sharepoint? How to made it automatically send email to approver after document have been published.
Thanks !
regards, Tho
|
|
|
|
|
I haven't worked very intensively with Sharepoint, but from the User's help it seems you have to do the following:
1) In Windows Explorer, expand your workspace (under My Network Places)
2) Right-click on the Documents folder and select Properties
3) Select the Approval tab, and fill in the details
|
|
|
|
|
Hi all,
I'm having problems displaying a '&' in an XML tag.
<senderaccname>dssdsd&sdsdsd
When I run this on a XSL Stylesheet, I get the following error:
Ein Semikolon wurde erwartet. Fehler beim Bearbeiten der Ressource 'file:///C:/WINNT/SM.XML'. Zeile 33, Position 29
Semicolon expected. Are there any special handlings for characters like these?
Thx
Stefan
|
|
|
|
|
Try & or & if you want to show an & character in your output.
|
|
|
|
|
MarSCoZa wrote:
Try & or & if you want to show an & character in your output.
Hi,
thanks for your answer. Could you please provide all sequences for all the five special characters (I think its five) because I don't know where to look for on the web.
Thx a lot!
Stefan
|
|
|
|
|
|
You might want to take a look at the W3C's Blueberry spec on character sets in XML.
Cheers,
Simon
"Every good work of software starts by scratching a developer's personal itch.", Eric S. Raymond
|
|
|
|
|
I have some code I wrote ages ago, and now it won't run on my machine at work ( but it runs on everyone elses ). I have IE6 and we've found conversely that ome of my XSL *only* ran on my machine. The problem is when I have a list of nodes, all siblings, and I loop through them and use appendChild to cut and paste them into another document. It simply blows up. Any suggestions ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
I'm testing this and not having any problems. Can you post some sample code?
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
I'll get it from work tomorrow. Basically it works on other machines but not on mine, and I *think* IE6 may have an influence. The thing is, the block of code that fails I wrote some code to look the same, and it worked. I worked late on Tuesday and I spent from 5 to 10:30 on this, then three more hours the next day and we dropped it in the end simply because it's only my machine that won't run it. Which means I can't run a central piece of code for the project, which I wrote.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
You have check the xml parser versions are the same correct?
|
|
|
|
|
We've installed the latest version of MSXML on all machines, but I believe that IE6 changes something in that regard.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
OH!, this one looks like it could be related to a question i just posted in the ASP forum.
Our problem is that HTML being parsed perfectly well in IE5 suddenly seems to miss items in listboxes when parsed by IE6.
As i am currently doing some consulting away from our home office i am not able to view the source, but if my co-workers are still using my scripts then those list boxes are filled dynamically by traversing nodes in the DOM.
If we could get this behaviour cathegorized as a genuine bug and not 'a new IE feature', then we could tell our customers to use IE5 while waiting for the next patch.
"It could have been worse, it could have been ME!"
|
|
|
|
|
I am still able to traverse nodes, it's when I call appendChild, and then not always. I did a full reinstall, and we're fairly sure it's not related to IE6 ( although I've not reinstalled it ), but the general death of my machine.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
here are two great links for beginning DOM programming in C++:
http://codeguru.earthweb.com/xml/XMLDOMFromVC.html - a basic, great tutorial
microsoft
http://msdn.microsoft.com/Downloads/samples/Internet/
select xml, and I think the MFC tree control is the XMLTree simple application.
|
|
|
|
|
Thanks Todd! The first one is mine
I've never posted it here because it wrote it so long ago that I figured it was probably too beginner-level at this point.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Tom, I don't suppose you have any idea what my problem is with appendChild not working ? I posted the question above this one, and I'm kinda desperate ...
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
I'll look now...
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
By the way, Christopher is all impressed with himself that you're quoting him in your sig
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|