Jump to content

Donar

Members
  • Content Count

    23
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Donar

  • Rank
    Newbie
  1. Good day, My XSLT transforms XLM pages into HTML pages. Now I am stuck with a problem, that seems not trivial to me. I would appreciate a pointer into the right direction. I want to reduce the number of lines I have to write in my original XML files. What I want, is something like a XSLT preprocessor, translating some XML tags into a group of other XML tags, before XSLT processes them. If at all possible, I want to keep the replaced as well as the replacing lines in the same XML document (so, no include-file-style solutions). Example: Oftentimes, my XML files contain repetitive multiple lines,
  2. Donar

    .

    Disregard. Thank you.
  3. I changed the original <script language="JavaScript"><xsl:comment> // code// </xsl:comment></script> to <script type="text/javascript"> // code</script> IE still processes the submit request, FF still does not process it.But the FF error console changed now to:"Error: document.forms is not a function"That's it, something changed, and you guided me to the right track right from the beginning, as I now acknowledge.Of couse, in this line: var children = document.forms(formid).childNodes; JS wants [...], not (...), even if recognized by IE.IE still works,
  4. Yes, thank you. It just says that said function is not defined, and so it reacts.Are you using Mozilla Firefox? May I ask you to use Ctrl-A on the page and view the source code, please? It is very well possible that there is an error in my script (however, in that case the IE would not complain). (Viewing the source without marking anything will just show the raw XML).Now, the pure existence of that error tells, that we are "beyond XML", so to say, because XML would have no clue what <form> means and react at it like it would with <notunderstood>. So we are in the "HTML/JS view", i
  5. Yes, thank you for your remarks. However, the form isn't being submitted at all (except in IE 8 and 9) - it reacts to a click as if the referenced function was not defined at all. But since the output generated by XSLT is presented to the client as pure HTML/Javascript (which can be verified in above ref [2]), one should assume that the function is there. Could it be that 3 known browsers are doing that wrong? I tend to search the error on my side. (Funny thing is, of course, that for once it works with cursed IE and not with the others.)Also, as I wrote: When I copy the output generated by XS
  6. Dear forum,My site uses XML pages. They are presented to the clients via XSLT.The server runs IIS 7.5. With the help of this forum and some Web research I added an ASP handler to be able to process ASP scripts.[see 1]Scripts can be processed now, and all works fine as it should, with one exception:I have encoded an XML form, which is presented to the client (via XSLT) as a HTML form.[see 2] Submitting this form (via submit button or javascript-executed button) does work only in IE 8 and IE 9, but not in Firefox, Chrome or Opera: the latter 3 all ignore the call.This is somewhat perplexing, bec
  7. Thanks for directing me into the right direction.After a lot of research I came up with the following:First I tried to duplicate the entry for the .aspx entension in my site's web.config page. <system.web> <compilation> <buildProviders> <add extension=".xml" type="System.Web.Compilation.PageBuildProvider"/> </buildProviders> </compilation> </system.web> But this alone won't do the trick: everything behaves just like before:both static and dynamic .xml are served without being preprocessed at the server.However, adding this in the system.webSe
  8. Thanks for your answer. I agree with that one, of course.Anyway, does this mean that IIS just handles pages with an .aspx extension, and that there is no way on preprocessing a page's server-side scripts when there is another extension?Regards,Donar
  9. Thanks again for your answer, boen_robot.Well, it is XML content, so I really prefer the .xml extension, I don't like the idea of "pages in disguise" too much.However, I can not really believe, that IIS should not be able to process anything else than .aspx-pages; there surely must be a way to tell it which extensions to handle accordingly.Regards,Donar
  10. Dear Forum,Win 7 Ultimate, IIS 7.5 here.How can I have IIS preprocess my .xml pages before I send them to the client? Basically, I want to run my run-at-server scripts like with .aspx files, only that my pages have the .xml extension (and XML content of course).The approach taken so far:I expanded the path on the handler allocation page from old "*.aspx" to new "*.aspx, *.xml" for all three of:PageHandlerFactory-Integrated, PageHandlerFactory-ISAPI-2.0, and PageHandlerFactory-ISAPI-2.0-64.However, I seem to have not enough understanding on how IIS works, as it does not process an XML page cont
  11. Thank you. It will be ASP then.RegardsDonar
  12. Good day forum.Can I (in XSLT 1) somehow obtain the HTTP query part of the actual XML page?Example:Suppose I have a page which was called with a query, e.g.:"http://example.com/page.xml?x1=1&x2=2&x3=3"Am I able to somehow obtain the name/value-pairs "x1"/"1" etc. with XSLT?Regards,DonarEdit: Fixed link.
  13. Ordered "XSLT and XPath On The Edge" and looking forward to it.Thank you!
  14. XSLT 1.0 it is.Thank you very much, it works for me. The final intention is to process an inner loop within the now possible outer loop:b:1a:2c:3a:4should givea:2, 4b:1c:3Then my inner loop looks like this:<xsl:for-each select="key('key', .)">and everything is absolutely fine.My 2 quite thick XML books did make no mention about generate-id() and key(), or even Muenchian grouping, so I did not know they existed (and hence had no idea about googling them). Can you recommend a good XSLT book (English or German)?Thanks again!
  15. Good day forum!There I am thinking I understood xsl:for-each and xsl:sort. A day later, after a zillion unsuccessful attempts I turn to you in search for help. Maybe you can help me with an approach I did not think of.I am looking to process an unsorted list having multiple identical keys into a sorted list, in which each key appears just once, or in other words, I want to eliminate all dupes, e.g.: <list><item><key>C</key>...</item><item><key>A</key>...</item><item><key>B</key>...</item><item><key>A<
×
×
  • Create New...