Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

How to use HTML within XML?

Name: Anonymous 2006-11-22 15:03

I'm using an XSL stylesheet, for the XML, which has HTML within it.

The only problem now is that it won't recognize the <i>, <blockquote>, href, etc. within the XML file. Is there any way to do that?

Name: Anonymous 2006-11-22 16:05

<element>
    <div xmlns="http://www.w3.org/1999/xhtml">;
        <h1>Fags</h1>
        <p>Shit <i>sucks</i>.</p>
    </div>
</element>

Name: Anonymous 2006-11-22 16:05

More details please

Name: Anonymous 2006-11-22 16:14

XML:

<?xml version="1.0" ?>
<?xml-stylesheet href="test.xsl" type="text/xsl" ?>
<content>
    <div xmlns="http://www.w3.org/1999/xhtml">;
        <h1>Fags</h1>
        <p>Shit <i>sucks</i>.</p>
    </div>
</content>


XSL:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">;

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns="http://www.w3.org/1999/xhtml">;
    <xsl:template match="/">

<html dir="ltr">
    <head>
        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
    </head>
    <body>
        <xsl:copy-of select="/content/node()" />
    </body>
</html>

    </xsl:template>
</xsl:stylesheet>

(Board screws up URLs and adds a ;, so just delete that.)

Name: Anonymous 2006-11-23 10:59

>>1
Fails for XML
Fails for XSL
Double fail, that's int 3 IIRC

Name: Anonymous 2006-11-23 11:59

>>5

It's int 8 actually. Int 3 is a breakpoint.

Name: Anonymous 2006-11-23 12:53

(1^2)-3+4^5&6

Name: Anonymous 2009-01-14 13:17

SICP

Name: Anonymous 2010-12-26 3:19

Name: Sgt.Kabu媞Ʞkiman὆讵 2012-05-28 20:54

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List