|
Subject: Re: [xsl] XML -> HTML with paragraphs From: Jörg Heinicke <joerg.heinicke@xxxxxx> Date: Mon, 10 Sep 2001 21:17:50 +0200 |
Hello Joshua,
why not so:
<item title="Searching the Site" id="2">
<helpfile>
<para>Text input into paragraphs.</para>
<para>Text input into paragraphs.</para>
</helpfile>
</item>
And then in the template for example:
<xsl:template match="helpfile">
<xsl:apply-templates select="para"/>
</xsl:template>
<xsl:template match="para">
<p><xsl:value-of select="."/></p>
</xsl:template>
Hope this helps.
Joerg
----- Original Message -----
From: "Joshua Miller" <josh.miller@xxxxxxxxxxxx>
To: "Xsl-List@xxxxxxxxxxxxxxxxxxxxxx" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, September 10, 2001 8:59 PM
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 (>/<) ... 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] XML -> HTML with paragraphs, Joshua Miller | Thread | RE: [xsl] XML -> HTML with paragrap, Michael Kay |
| [xsl] XML -> HTML with paragraphs, Joshua Miller | Date | RE: [xsl] XML -> HTML with paragrap, Sullivan, Dan |
| Month |