In the comments in html2simplehtml.xsl it says: "Although this is supposed to be 'simple' it will also support multiple documents in one file, if the input has them in a 'exsl:document' wrapper."
Now, I can import single-node files perfectly, but I still haven't managed to get several nodes from a file.
My files have the structure:
<div id="main">
<h1>...</h1>
<div class="version>
<h2>...</h2>
<!--- further contents here -->
</div>
<div class="version>
<h2>...</h2>
<!--- further contents here -->
</div>
etc
</div>How do I make the class="version" divs go into separate nodes?
(PS: I know this is almost a duplicate of my previous post. In the meantime I've been reading up on xsl and know a lot more about what is going on, and I've got the demo to work, with the latest dev version, and tried every constellation I could think of, but still no multiple nodes. Hence this almost-re-post.)
I'm guessing I'm not supposed to put ... tags into the html source file itself? I've tried to
Comments
Comment #1
dman commentedYou'll need to manipulate your inputs such that you can get something that looks more like
What this means is you can get one file input to create multi node output.
It WILL take a significant amount of XSL wrangling to get there though.
the multi-examples haven't got a lot of love in the last few versions, as they didn't get a lot of use. So there may be things that have stopped working during the upgrades.