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: XML -> HTML with paragraphs


Hi,

I have the same situation too...
I used <xml:copy> and it works greate for displaying in IE. But I get error 
when I try to parse the file with a XML parser (I used XML Spy).
It complained that the HTML/XHTML tags is not define....

Do I have to define all HTML tags myself?
Please help.
Theresa


>From: "Michael Kay" <mhkay@iclway.co.uk>
>Reply-To: xsl-list@lists.mulberrytech.com
>To: <xsl-list@lists.mulberrytech.com>
>Subject: RE: [xsl] XML -> HTML with paragraphs
>Date: Mon, 10 Sep 2001 21:24:24 +0100
>
>The best answer is to mark up the text using a subset of XHTML tags, using
>proper XML encoding rules (e.g. always include an end tag, always put 
>quotes
>round attribute values). Then you will be using pure XML, and an
><xsl:copy-of> will enable you to copy the XHTML chunks straight into an
>XHTML or HTML output file.
>
>Mike Kay
>
> > -----Original Message-----
> > From: owner-xsl-list@lists.mulberrytech.com
> > [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> > Joshua Miller
> > Sent: 10 September 2001 19:59
> > To: Xsl-List@Lists.Mulberrytech.Com
> > Subject: [xsl] XML -> HTML with paragraphs
> >
> >
> > I have an XML document with the following structure:
> >
> > <item title="Searching the Site" id="2">
> > 	<helpfile>
> > 		Text input into paragraphs.
> >
> > 		Text input into paragraphs.
> >
> > 	</helpfile>
> > </item>
> >
> > And I want to display the contents of <helpfile> as HTML with
> > <p> tags to
> > separate the paragraphs. However, I can't seem to make this
> > work. I've tried
> > adding <p> tags to the text (yeah, I know, this doesn't work).
> >
> > What I really need to know I guess, is how to put HTML into
> > an XML document
> > and make it display as HTML and not as escaped html
> > (&gt;/&lt;) ... is this
> > even possible? I want to store helpfile information in an XML
> > document, but
> > I need figures and links and images in the output ... how do
> > I make this
> > work? Or is XML not the answer here?
> >
> > Joshua Miller
> > Web Development::Programming
> > Eagle Technologies Group, Inc.
> > www.eagletgi.com
> > josh.miller@eagletgi.com
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


 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]