[Webkit-unassigned] [Bug 26111] New: xml parse error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun May 31 21:39:31 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26111
Summary: xml parse error
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: XML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: sugaya.takashi at konicaminolta.jp
Problem
Safari 4 doesn't recognize the following code:
1.NG
<xsl:param name="SelNo" select="/Sample/Select"/>
<xsl:param name="File" select="document('file.xml')/Pre/File[@name=$SelNo]"/>
2.OK
<xsl:param name="File" select="document('file.xml')/Pre/File[@name='S1']"/>
3.OK
<xsl:param name="File" select="document('file.xml')/Pre/File"/>
OS/Browser
Mac OS X Version 10.5.6
Safari4 Version 4 Public Beta(5528.16)
Full Source code
(3 xml files, 1 xsl file.)
[sample.xml]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="sample.xsl" type="text/xsl"?>
<Sample>
<Select>S1</Select>
</Sample>
[sample.xsl]
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:xlink="http://www.w3.org/1999/xlink">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:param name="OutputStyle">HTML</xsl:param>
<xsl:param name="SelNo" select="/Sample/Select"/>
<xsl:param name="File" select="document('file.xml')/Pre/File[@name=$SelNo]"/>
<xsl:param name="String" select="document($File)/String"/>
<xsl:template match="/Sample">
<html lang="en">
<head>
<title>Sample1</title>
</head>
<body>
<div>
--- Sample1 ---
</div>
<div>
<xsl:value-of select="$String/String2"/>
</div>
<div>
--- Sample1 ---
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
[file.xml]
<?xml version="1.0" encoding="UTF-8"?>
<Pre>
<File name="S1">string.xml</File>
<Data>
<String1>Sample Code</String1>
</Data>
</Pre>
[string.xml]
<?xml version="1.0" encoding="UTF-8"?>
<String>
<String1>Sample Code 1</String1>
<String2>Sample Code 2</String2>
</String>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list