oot>

So in short, I have a node in which I can have some text, and various different nodes (or none) in any order. There is no way of knowing before hand if the content is only text, text and one of the nodes, only one of the nodes, text and both nodes in any order, etc.
Here's what I need to have:
Wanted XML output
<root>
 <unwrapped>
   <txt>text 1</txt>
   <reworkedNodeA/>
   <txt>text 2</txt>
   <reworkedNodeB/>
   <txt>text 3</txt>
 </unwrapped>
 <unwrapped>
   <txt>text 4</txt>
   <reworkedNodeB/>
 </unwrapped>
</root>

And of course I'm reworking the insideNodeA and B.
My XSL code
<xsl:template match="exampleNodee">
  <xsl:if test="count(*)&gt;0">
     <xsl:element name="unwrapped">
        <xsl:element name="txt"><xsl:value-of select="text()"/></xsl:element>
        <xsl:apply-templates select="child::node()"/>
     </xsl:element>
  </xsl:if>
</xsl:template>

The trouble is that this code only creates one "txt" element with the first text of the "exampleNode" and then applies the templates for each child nodes.
How can I retrieve the contents of "exampleNode" in the correct order and apply the correct templates to obtain the wanted output ?

A:

OK I actually found the answer to my question, it was pretty simple after all.
So all I had to do was create a template matching "text()" and change my exammpleNode template as such :
<xsl:element name="unwrapped">
  <xsl:apply-templates select="text() | node()"/>
</xsl:element>



Q:

When is html officially in "run-time"

I just had a discussion about meta tags in html and when they are interpreted by the web browser. My colleague was adament that this is done pre-run-time (html parse time) as run-time officially starts when body.onload is triggered.
When does run-time officially start in html? 
I know this seems trivial, but googling "html run-time" yields naught.

A:

As noted by nevatype, "run-time" doesn't exactly make sense for declarative languages like HTML. That's why you aren't getting any Google results.

What you're asking about sounds sort of like t