<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>32950</bug_id>
          
          <creation_ts>2009-12-26 09:34:08 -0800</creation_ts>
          <short_desc>support &quot;xslt-param&quot; processing instruction for XSLT parameters</short_desc>
          <delta_ts>2010-01-22 15:28:27 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>XML</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcus Better">marcus</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alex</cc>
    
    <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>174954</commentid>
    <comment_count>0</comment_count>
    <who name="Marcus Better">marcus</who>
    <bug_when>2009-12-26 09:34:08 -0800</bug_when>
    <thetext>Firefox supports a handy mechanism for passing parameters to style sheets included with the xml-stylesheet XML processing instruction:

  &lt;?xslt-param name=&quot;msg&quot; value=&quot;Hello!&quot;?&gt;
  &lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;style.xsl&quot;?&gt;

This is described in more detail here:
  https://developer.mozilla.org/en/XSLT/PI_Parameters</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174955</commentid>
    <comment_count>1</comment_count>
      <attachid>45511</attachid>
    <who name="Marcus Better">marcus</who>
    <bug_when>2009-12-26 09:35:42 -0800</bug_when>
    <thetext>Created attachment 45511
test document passing parameter via &quot;xslt-param&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174956</commentid>
    <comment_count>2</comment_count>
      <attachid>45512</attachid>
    <who name="Marcus Better">marcus</who>
    <bug_when>2009-12-26 09:37:20 -0800</bug_when>
    <thetext>Created attachment 45512
style sheet to go with the test document

The document alerts &quot;Hello&quot; when loaded in Firefox, but shows an empty alert with WebKit (Google Chrome 4.0.266.0 on Linux).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183834</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Milowski">alex</who>
    <bug_when>2010-01-22 15:26:20 -0800</bug_when>
    <thetext>While this is an interesting &quot;feature&quot;, I don&apos;t see any common standardization of this as a feature.   You can accomplish the same task by importing the stylesheet and setting the parameters explicitly in the importing stylesheet.

I&apos;ve attached an example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183835</commentid>
    <comment_count>4</comment_count>
      <attachid>47234</attachid>
    <who name="Alex Milowski">alex</who>
    <bug_when>2010-01-22 15:27:23 -0800</bug_when>
    <thetext>Created attachment 47234
Importing stylesheet with parameter value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183836</commentid>
    <comment_count>5</comment_count>
      <attachid>47235</attachid>
    <who name="Alex Milowski">alex</who>
    <bug_when>2010-01-22 15:27:55 -0800</bug_when>
    <thetext>Created attachment 47235
Imported stylesheet</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183838</commentid>
    <comment_count>6</comment_count>
      <attachid>47237</attachid>
    <who name="Alex Milowski">alex</who>
    <bug_when>2010-01-22 15:28:27 -0800</bug_when>
    <thetext>Created attachment 47237
Example Document using Importing Example</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45511</attachid>
            <date>2009-12-26 09:35:42 -0800</date>
            <delta_ts>2009-12-26 09:35:42 -0800</delta_ts>
            <desc>test document passing parameter via &quot;xslt-param&quot;</desc>
            <filename>doc.xml</filename>
            <type>text/xml</type>
            <size>143</size>
            <attacher name="Marcus Better">marcus</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPD94c2x0LXBhcmFtIG5hbWU9
Im1zZyIgdmFsdWU9IkhlbGxvISI/Pgo8P3htbC1zdHlsZXNoZWV0IHR5cGU9InRleHQveHNsIiBo
cmVmPSJzdHlsZS54c2wiPz4KPEVsZW1lbnQvPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45512</attachid>
            <date>2009-12-26 09:37:20 -0800</date>
            <delta_ts>2009-12-26 09:37:20 -0800</delta_ts>
            <desc>style sheet to go with the test document</desc>
            <filename>style.xsl</filename>
            <type>text/xml</type>
            <size>370</size>
            <attacher name="Marcus Better">marcus</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHhzbDpzdHlsZXNoZWV0IHZl
cnNpb249IjEuMCIgeG1sbnM6eHNsPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L1hTTC9UcmFuc2Zv
cm0iPgogICAgPHhzbDpvdXRwdXQgbWV0aG9kPSJodG1sIi8+CiAgICA8eHNsOnBhcmFtIG5hbWU9
Im1zZyIvPgogICAgPHhzbDp0ZW1wbGF0ZSBtYXRjaD0iLyI+CjxodG1sPgogICAgPGhlYWQ+CiAg
ICAgICAgPHRpdGxlPlhTTFQgcGFyYW1ldGVyIHRlc3Q8L3RpdGxlPgogICAgPC9oZWFkPgogICAg
PGJvZHkgb25sb2FkPSJhbGVydCgneyRtc2d9JykiPjwvYm9keT4KPC9odG1sPgogICAgPC94c2w6
dGVtcGxhdGU+CjwveHNsOnN0eWxlc2hlZXQ+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>47234</attachid>
            <date>2010-01-22 15:27:23 -0800</date>
            <delta_ts>2010-01-22 15:27:23 -0800</delta_ts>
            <desc>Importing stylesheet with parameter value.</desc>
            <filename>import.xsl</filename>
            <type>application/xml</type>
            <size>207</size>
            <attacher name="Alex Milowski">alex</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHhzbDpzdHlsZXNoZWV0IHZl
cnNpb249IjEuMCIgeG1sbnM6eHNsPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L1hTTC9UcmFuc2Zv
cm0iPgo8eHNsOmltcG9ydCBocmVmPSd0ZXN0LnhzbCcvPgo8eHNsOnBhcmFtIG5hbWU9Im1zZyI+
SGVsbG88L3hzbDpwYXJhbT4KPC94c2w6c3R5bGVzaGVldD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>47235</attachid>
            <date>2010-01-22 15:27:55 -0800</date>
            <delta_ts>2010-01-22 15:27:55 -0800</delta_ts>
            <desc>Imported stylesheet</desc>
            <filename>test.xsl</filename>
            <type>text/xml</type>
            <size>354</size>
            <attacher name="Alex Milowski">alex</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHhzbDpzdHlsZXNoZWV0IHZl
cnNpb249IjEuMCIgeG1sbnM6eHNsPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L1hTTC9UcmFuc2Zv
cm0iPgo8eHNsOm91dHB1dCBtZXRob2Q9Imh0bWwiLz4KPHhzbDpwYXJhbSBuYW1lPSJtc2ciLz4K
PHhzbDp0ZW1wbGF0ZSBtYXRjaD0iLyI+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPHRpdGxl
PlhTTFQgcGFyYW1ldGVyIHRlc3Q8L3RpdGxlPgogICAgPC9oZWFkPgogICAgPGJvZHkgb25sb2Fk
PSJhbGVydCgneyRtc2d9JykiPjwvYm9keT4KPC9odG1sPgo8L3hzbDp0ZW1wbGF0ZT4KPC94c2w6
c3R5bGVzaGVldD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>47237</attachid>
            <date>2010-01-22 15:28:27 -0800</date>
            <delta_ts>2010-01-22 15:28:27 -0800</delta_ts>
            <desc>Example Document using Importing Example</desc>
            <filename>test.xml</filename>
            <type>application/xml</type>
            <size>103</size>
            <attacher name="Alex Milowski">alex</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPD94bWwtc3R5bGVzaGVldCB0
eXBlPSJ0ZXh0L3hzbCIgaHJlZj0iaW1wb3J0LnhzbCI/Pgo8RWxlbWVudC8+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>