Subject: Re: [xsl] General algorithm for finding nodes between PIs From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 27 Jan 2017 14:57:14 -0000 |
I modified my input document slightly:
<?xml version="1.0" encoding="UTF-8"?> <info> <?Fm Condstart VbV-VCO?> <p>For this, use <b>that </b>to do that.</p> <?Fm Condend VbV-VCO?> <p><?Fm Condstart USB?>If you need this, do that.<?Fm Condend USB?></p> <p>Outside paragraph.</p> </info>
This is close, but I don't want to lose any elements from the output, like the parents of the processing instructions (<info>, <p>). Also, I am not picking up my last <p> element. Thank you for the generous help.
<xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@*, node()"/> </xsl:copy> </xsl:template>
<info> <group name="Condstart VbV-VCO"> <p>For this, use <b>that </b>to do that.</p> </group> <p><group name="Condstart USB">If you need this, do that.</group></p> <p>Outside paragraph.</p> </info>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] General algorithm for fin, Rick Quatro rick@xxx | Thread | Re: [xsl] General algorithm for fin, Rick Quatro rick@xxx |
Re: [xsl] General algorithm for fin, Martin Honnen martin | Date | Re: [xsl] General algorithm for fin, Rick Quatro rick@xxx |
Month |