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

Pages: 1-

HTML in XML

Name: Anonymous 2007-09-15 3:17 ID:LGEINEUQ

So.. say I'm representing posts in a database as XML.

<post>
<author>Anonymous</author>
<date>2007-09-15</date>
<title>Something</title>
<body>This is a <strong>formatted</strong> body.</body>
</post>

I want to eventually transform this with XSL..

The problem is, what do I do about the HTML? I don't know of a better way to represent it, and the posts will always have some sort of formatting contained within.

Name: Anonymous 2007-09-15 3:18 ID:+OepUMzl

BBCODE

Name: Anonymous 2007-09-15 3:19 ID:LGEINEUQ

I tried that, but BBCODE StyleSheet Transformation Language doesn't even have an official spec yet.

Name: Anonymous 2007-09-15 3:23 ID:fA85Jx9y

Why dick with XML again?

Name: Anonymous 2007-09-15 4:29 ID:9eACyiJ4

<body>This is a <strong>formatted</strong> body.</body>

is this valid?

Name: Anonymous 2007-09-15 4:38 ID:I0uE+XIn

>>5
It is if it's in his schema.

Name: Anonymous 2007-09-15 5:22 ID:vH5cskBa

>>1
Use CDATA for body.

Name: Anonymous 2007-09-15 6:59 ID:Ad6Jp06t

>>1
Only faggots use <strong> instead of <b>. They do exactly the same, their semantics exist only in the minds of faggots who fap to them (and even so they are completely arbitrary), and the former wastes keystrokes and bandwidth.

Then again, you're doing XML

Name: Anonymous 2007-09-15 12:38 ID:Pw+MD2Bd

>>8
false

black bear

Name: Anonymous 2007-09-15 12:54 ID:uxPvMxL9

>>1
Look at it this way.

On most browsers, you can bring up your browsing history by pressing Control-H. (No, this is not going to become a discussion of werecows.) On Firefox, this brings up a sidebar that shows up on the left side of the window. If you put your mouse over the edge of the sidebar, the cursor will turn into a different kind of arrow. By clicking and dragging it, you can move the edge of the sidebar back and forth. You are, to put it another way, manipulating the border between the normal window and the history window. By moving the mouse, you can increase the portion of the window devoted to either part. In a more extreme view of this situation, you're increasing or decreasing the amount of existence the sidebar has.

Now, let's apply this idea to something more abstract. Look out your window. If you don't live in a highly urbanized area, you should be able to see the horizon. Think of this as the border between the land and the sky. The land and sky are obviously distinguishable thanks to this boundary. Now, if you were to "drag" the sash between the sky and the land, or to manipulate the border between land and sky, you would end up causing the sky to become larger and the land to become smaller, or vice versa. An effect of this might be to cause something that was just on the ground to suddenly be hundreds of feet in the air. Truly a frightening situation to be in. So, look at it this way - manipulating the border between two physical things shifts whatever balance there is in the interaction between those things. Alternatively, by manipulating the border between two things, you can change the manner in which they exist.

Still, this isn't *that* abstract, since it's still dealing with real things in the real world. Many believe that in this world, there are those things that are true, and those that obviously aren't. This divides reality into two extremes: truth and falsehood. But, since we have two extremes, logically one can imagine a boundary between those two extremes - the border between truth and lies. If one were to manipulate this border, suddenly things that were pure fantasy (flying pigs, for the sake of argument) have become reality - or things from reality have ceased to exist. This is how Yukari is said to have invaded the moon - by manipulating the border between truth and lies, as applied to the reflection of the moon on a pond, she was able to make the reflection of the moon into a manifestation of the actual moon, and so send her youkai army onto it. This is what's truly amazing about Yukari's power - the ability to manipulate the border between completely abstract concepts allows her to fundamentally change reality as we know it (at least in terms of two abstract concepts).

Name: Anonymous 2007-09-15 13:08 ID:LGEINEUQ

>>5
No, that's the problem.

>>7
Would that be appropriate here?

>>8
I'm doing XHTML.

>>10
Thank you.

Name: Anonymous 2007-09-15 13:15 ID:vH5cskBa

>>11
Would that be appropriate here?
It would be the best option.  You don't care about the contents, as they will be served to the browser; and you don't want it interfering with your abstract XML bullshite.

Name: Anonymous 2007-09-15 14:08 ID:LGEINEUQ

>>12
Good point, thanks.

Name: Anonymous 2007-09-15 17:33 ID:nsU+5PBl

fuck you faggots im best at xhtml/css

Name: Anonymous 2007-09-15 18:07 ID:Ad6Jp06t

>>10
Awesome

>>11
I'm doing XHTML.
Fail, do HTML5.

Name: Anonymous 2007-09-15 18:23 ID:2IuOvjpn

>>15
Yeah, HTML5 has great support in current browsers!

faggot.

Name: Anonymous 2007-09-15 18:33 ID:LGEINEUQ

>>15
Yeah, and not like XHTML purposefully works well with XSL or anything.

Name: Anonymous 2007-09-15 18:49 ID:6T7WIwcu

Change it to <body><div xmlns="http://www.w3.org/1999/xhtml">content</div></body> and use xslt:copy-of

Name: Anonymous 2007-09-16 0:43 ID:4IojdtzC

test

Name: Anonymous 2007-09-16 0:43 ID:4IojdtzC

test2

Name: Anonymous 2007-09-16 0:46 ID:4VCRRvB4

Use

BBCODE

Name: Anonymous 2011-02-04 13:53

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