Using XSLT to get all the get all the elements out of an xhtml file -


I have an XHTML file that I am trying to replace with:

  & Lt; Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD XHTML 1.1 Plus MathML 2.0 / n" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Title & gt; Unusual & lt; / Title & gt; & Lt; Meta ..... & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; P & gt; Some & lt; / P & gt; & Lt; P & gt; Awesome & lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt;   

becomes

    

The thing I am getting is that & lt; Head & gt; and & lt; Body & gt; The tags are removed from the tag. I do not want to run it sed or run it through awk.

I have tried whatever is either the whole thing in HTML or it converts it into pure text.

The problem background: I've got a backup of my blog Multimarkdown, I'm hoping to put them in different formats, but I need to get this issue first.

Note: I have started.

Is there anything like this? (Bear with me, since then I have activated XSL)

  & lt; Xsl: each selection = "head" & gt; & Lt; Xsl: copy-of select = "." / & Gt; & Lt; / XSL: for-each & gt; & Lt; Xsl: each-select = "body" & gt; & Lt; Xsl: copy-of select = "." / & Gt; & Lt; / XSL: for-each & gt;    

Comments