This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Preserving XHTML markup


Other responses to your question were almost there.  This produces what you
asked for:

<xsl:template match='mycustomtag'>
<p><xsl:copy-of select='.'/></p>
</xsl:template>

Cheers,

Tom P

[Adam Sherman]

> (Newbie Alert!)
>
> xml:
> <mycustomtag>
> Some html <b>here</b>.
> </mycustomtag>
>
>
> How do I preserve things so I end up with:
>
> <p>
> Some html <b>here</b>.
> </p>
>
> My XSLT stylesheet loses all the markup in the children of
> selected/processed nodes...
>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]