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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20483</bug_id>
          
          <creation_ts>2012-12-21 20:27:44 +0000</creation_ts>
          <short_desc>[Templates]: Specify the behavior of XDM when encountering &lt;template&gt; element</short_desc>
          <delta_ts>2013-01-24 17:41:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15476</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Rafael Weinstein">rafaelw</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>adamk</cc>
    
    <cc>hsivonen</cc>
    
    <cc>tross</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80505</commentid>
    <comment_count>0</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2012-12-21 20:27:44 +0000</bug_when>
    <thetext>XPath transforms used by XSLT during initial construction should traverse through template content, but direct XPath DOM API calls should not.

(I need to do a fair bit more digging in the spec to be able to more accurately describe the problem and solution here).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80506</commentid>
    <comment_count>1</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2012-12-21 20:31:48 +0000</bug_when>
    <thetext>Also, ensure that the output of XSTL, if it contains templates, is parsed correctly (i.e. template content *is* lifted and appended into the template content document fragment).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81093</commentid>
    <comment_count>2</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-01-09 00:30:13 +0000</bug_when>
    <thetext>Ok. Looking at this more, I think I get it. Here&apos;s what I see. Henri, tell me if this is right:

-XSLT output must produce DOM &quot;as if&quot; it were parsed by XML (i.e. template contents go through the &quot;worm hole&quot;. This must be the case for XSLTProcessor as well.

-XPath DOM queries DO NOT traverse through the &quot;worm hole&quot;

-XSLTProcessor directives DO traverse through the &quot;worm hole&quot; when processing the &quot;source&quot; DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81104</commentid>
    <comment_count>3</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2013-01-09 07:54:38 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Ok. Looking at this more, I think I get it. Here&apos;s what I see. Henri, tell
&gt; me if this is right:
&gt; 
&gt; -XSLT output must produce DOM &quot;as if&quot; it were parsed by XML (i.e. template
&gt; contents go through the &quot;worm hole&quot;. This must be the case for XSLTProcessor
&gt; as well.
&gt; 
&gt; -XPath DOM queries DO NOT traverse through the &quot;worm hole&quot;

document.evaluate, that is.

&gt; -XSLTProcessor directives DO traverse through the &quot;worm hole&quot; when
&gt; processing the &quot;source&quot; DOM.

Yes, looks right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81972</commentid>
    <comment_count>4</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-01-22 21:26:08 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcomponents/rev/f33622c39c5e

I&apos;m reluctant to say anything about XDM directly here. I&apos;m hoping this is sufficient.

Henri, if you&apos;re not happy with this, can you please suggest some appropriate wording.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81985</commentid>
    <comment_count>5</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2013-01-23 09:29:52 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; https://dvcs.w3.org/hg/webcomponents/rev/f33622c39c5e
&gt; 
&gt; I&apos;m reluctant to say anything about XDM directly here. I&apos;m hoping this is
&gt; sufficient.
&gt; 
&gt; Henri, if you&apos;re not happy with this, can you please suggest some
&gt; appropriate wording.

I&apos;d say something explicitly about the XPath API and not talk about serialization, because XSLT doesn&apos;t operate on serialization and the template spec changes the relationship of the serialization and the tree. Also, I&apos;d avoid &quot;should&quot; in non-normative text. Something like:

&lt;p&gt;&lt;em&gt;Non-normative note: XSLT processing ought to treat template contents as descendants of the template element in XSLT input and place the descendants of a template element into template contents in XSLT output. However, XPath evaluation using the XPath DOM API ought not to match on template contents.&lt;/em&gt;&lt;/p&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81986</commentid>
    <comment_count>6</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2013-01-23 09:30:53 +0000</bug_when>
    <thetext>Oh, and why non-normative? Political reasons? It&apos;s an interop-sensitive statement after all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82099</commentid>
    <comment_count>7</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-01-24 17:40:55 +0000</bug_when>
    <thetext>Changed per Henri&apos;s suggestion.

https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#xslt-and-xpath</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82100</commentid>
    <comment_count>8</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2013-01-24 17:41:39 +0000</bug_when>
    <thetext>tony, note the changed language on this in the previous comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>