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]

Re: Storing HTML in XML


[Casadome, Francisco Javier]

>
> I would like to know if it's possible to store html code inside xml tags.
> Thus is,
> something like:
>
> <files>
> <myfile number="1"> ... here goes the HTML code ... </myfile>
> <myfile number="2"> ... here goes the HTML code ... </myfile>
> <myfile number="3"> ... here goes the HTML code ... </myfile>
> ...
> </files>
>
> In a way that I can output that html code without processing it. The
output
> of the xsl should be the HTML inside <myfile> tags.
>
> Can anyone help me ?
>

Yes you can, BUT...

1) You have to write well-formed HTML or you can't have it in an XML file,
UNLESS -
2) you enclose the HTML in CDATA sections.

Either way, remember to use the html output method.

Cheers,

Tom P


 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]