Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7527947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:14:29+00:00 2026-05-30T04:14:29+00:00

My problem is WebKit cannot handle xslt document() method when i use javascript to

  • 0

My problem is WebKit cannot handle xslt document() method when i use javascript to do xslt processing. When I include xsl file in xml and call xml file from browser it work. But when I use javascript to handle this process, it crashes. I have to use javascript to pass parameters to xsl file. So I cannot live without javascript.
Here is html part.

<html>
<head>
    <script language="javascript" src="./js/jquerymin.js"></script>
    <script language="javascript" src="./js/jquery.transform.js"></script>
<script>

$(document).ready(function(){
    $("#example").transform({xml:"sample.xml", xsl:"sample.xsl", xslParams:{scan:'system',sub:'lan'}});
});
</script>
</head>
<body >
<div id="example" ></div>
</body>
</html>

Here is basic xsl file which crashes with this approach:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:nsm="http://xxxxx.com/yyyyy/system"
                xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xsl:param name="scan" select="'system'"/>
<xsl:param name="sub" select="'lan'"/>

<xsl:output method="html"/>  

<xsl:template match="/">
        <xsl:variable name="xsdFile" select="document('sample.xsd')"/>
        <xsl:for-each select="$xsdFile">
               ssss
        </xsl:for-each>
</xsl:template>

</xsl:stylesheet>

As I said it does not work while I let javascript to do transformation.But when I call xml file from browser it works.

Is this a bug or I miss something here?

Thanks,

edit: http://plugins.jquery.com/project/Transform this is the jquery plugin I use. By the way other browsers such as firefox and opera can handle both ways quite perfect

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:14:31+00:00Added an answer on May 30, 2026 at 4:14 am

    Bug 14101 – XSLTProcessor does not accept Nodes as parameter values

    I’ve been waiting for the WebKit team to fix this bug for quite a while (it’s been open since mid-2007).

    If somebody knows of a way to expedite this fix please chime in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following problem happens on both Safari and Chrome, so probably a WebKit issue.
The problem only happens on input[type=text] in Webkit. No matter what I do, there
Here is a test case/live example. Summary of problem: This only works in WebKit:
i have a problem with html and css. i have a html file with
I'm having a problem related to WebKit: http://demo.frojd.se/webkit/index.html When you click Menu item 1
I've run into a problem with Webkit browsers (Chrome/Safari), CSS3 Media Queries, display and
I have a problem when I load interactive SWF file in android emulator. I
I have a problem with my webkit scrollbar on the iPod/iPhone/iPad - the user
im having a bit troubled here. I cannot seem to understand what's the problem
I need to use WebKit in my perl + gtk2 application. Found a package

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.