! A .xml to .xsl file converter NEEDED !

29 replies [Last post]
Joined: 05/05/2010

hi, I need some help
In my WoG2 the MapWorldView needs to be all .xsl files to publish
Im not good, i.e. I cant do it

wait, if its a World of Goo 2... DaB, cant i just leave it.. because its suppost to be the ONLY mod in Gootool.
Hmmmm, I dont see why not. Because why put other mods ON my WoG2...

i dunno
-Tacomann

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 08/06/2010

But it has to be compatible with others. That's why Island 1 of AP actually overrides Island 2.

By the way, what needs merging? Isn't it just the "2" image?

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 05/05/2010

EVERYTHING
have a look...
http://img15.imageshack.us/img15/1252/wog2other.png
Its quite complicated, and still has... a SMALL amount of bugs :s

but thats about it

-Tacomann

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 08/06/2010

AWESOME!

Looks like you could take the Dynamic MM merges, then override the bg and some levelimages.

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 05/05/2010

no, its more complicated than THAT...
you see, TM13's WoG2 is set on the OTHER SIDE OF THE WORLD
the original WoG was silloetted :s
and just like everything else in our universe, a dark-side has a light side

and my WoG is on the light side so EVERYTHING is different
i might ask MOM4Evr for help

-Tacomann

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 05/05/2010

Laughing out loud just COMPLETELY finished Chapter 1 now
and its lookin awesome

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 05/05/2010

I still need some testers :s ...
for OCDs
...

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 01/24/2010

Me! Me! Meeeeeeeeeeeee!!!!!!!!!!!!!!1

Spongebob rulez too Crown Crown Crown Crown

Back

Joined: 05/05/2010

...hmmmmmmmmm
you know, you've gotta actually be GOOD at getting EXTREME scores...
upload your WoG profile to Goofans so I can see it.
and then, and only then, you can test ONE of the most awesomest goomods EVER!

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 08/06/2010

By the way, the black images are just...images. If you want you can make them be copies of the glowing ones.

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 05/05/2010

...wa?
what do you mean?

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 01/24/2010

tacomann13 wrote:
...wa?
what do you mean?

i mean, can i be a tester for OCD?

Spongebob rulez too Crown Crown Crown Crown

Back

Joined: 05/05/2010

no, to Albino Pokey
Ive already answered your question

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 08/06/2010

Here, if you post the mod as a compile, I could probably write the XSL's. I'm just not sure from the screen shot what exactly you want to do.

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 05/05/2010

EVERYTHING
Its not THAT hard :/
before i do ive requested my 'TM13's WoG2: Chapters 1 and 2 demo'
Im waiting for a response

in the info
ive quoted that 'This goomod NEEDS to be the only one in Gootool'
and i also said something to DaB on the lines of
'Daft as Brush, yes, i am aware that some files are not in the merge folder, but you see, theres no point... TM13's WoG2 practically HAS all the good mod in it and also, it replaces ALL chapters, INCLUDING Chapter 1: The Goo Filled Hills'

i dunno
-Tacomann

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 08/06/2010

Once it's published I'll help. Wink

By the way, are you going to make a name for it besides TacoMann13's World of Goo 2? (Just because now 2D Boy is making Official World of Goo 2)

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 05/05/2010

hmmm
maybe
'The Other Gooey Side'
or
'World of Goo: The Other Side'
erm
I still like 'TM13's WoG2' :s i dunno.

And Ive just heard from Daft as Brush. I dont NEED ANY MERGE FILES WHAT SO EVER!
yay
that makes life SOOO much easier

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 06/19/2009

TM13 wrote:
And Ive just heard from Daft as Brush. I dont NEED ANY MERGE FILES WHAT SO EVER!

Err... I didn't say that... in fact I didn't say anything on that subject...
So I will...now!

First, to address the original topic "question"
There's isn't really any such thing as an xml to xsl converter... except maybe your brain.
There are some tools around which will do XMLDiff, ie compare 2 xml files and highlight all the differences. These can be useful when you're creating an xsl.
However, so far, I've not found a really good one that's free (for longer than 30days).

I'm thinking about some "guidelines" on when you MUST use XSL and when you might use XML instead. So far I've got....
Mods to Island1 MUST use XSL for islands\island1.xml and levels\island1\island1.scene

Minor Mods to other chapters and MapWorldview should use XSL
eg. Theme Packs, Dynamic Main Menu, Intelligent Islands... etc

Major Mods (like this one) can use XML for Ch.2-5 and MapWorldView

I've already come up with a new template for islands\island1.xml.xsl
http://pastebin.com/GPfsq7dx
I'm looking at doing something similar for levels\island1\island1.scene

This will allow complete modding of island1... and remove any restrictions like
Only Mod installed, Last Mod in list, Must have completed original levels etc

It doesn't necessarily mean that all mods will work with all others.. but will allow other level mods to be installed alongside a mods which changes island1.

More later.....

Joined: 08/06/2010

YES! I needed something like that for AP.

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 05/05/2010

:s
okey doke
DaB, does that mean I NEED a .xsl file for Chapter 1 in the full version?

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 09/01/2009

Yes, tacomann, it does mean that.

Daft as Brush wrote:
Minor Mods to other chapters and MapWorldview should use XSL
eg. Theme Packs, Dynamic Main Menu, Intelligent Islands... etc

Argh, I just keep forgetting about that... Do you want me to make Intelligent Islands .xsls in the other chapters, aside from Chapter 1? (I think I made that one an .xsl already)

Joined: 06/19/2009

@TM13
As MOM says... YES.. you will need to do island1 as xsl.. well some of it.
I've got a version here that works, allows other levels mods, doesn't crash if you haven't played the original levels... and doesn't need to be the first / last mod in the list... and... so on.

I'm just writing up a new page about it... 'cos there's a couple of extra things you need to do / make sure of.. as well as the xsl.
http://goofans.com/developers/world-of-goo-level-editor/reference-guide/...

@MOM
I don't honestly remember, but I cited I.I. as a "good" example... so I think you did do some (if not all) as xsl.

Joined: 05/05/2010

okay, thanks

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 05/05/2010

ARRRGH!
the link you had DaB (the http://pastebin.com/GPfsq7dx) doesnt work
it says
'502 Bad Gateway'

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 08/06/2010

Look at the Island1 book page.

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 05/05/2010

yeah, i just realized that

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 01/24/2010

DaB mean is:

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <!-- Copy everything not matched by another rule -->
  <xsl:template match="* | comment()">
    <xsl:copy>
      <xsl:copy-of select="@*" />
      <xsl:apply-templates />
    </xsl:copy>
  </xsl:template>
 
  <!-- Removes All Original Levels From Island -->
  <xsl:template match="/island/level[@id='GoingUp']"></xsl:template>
  <xsl:template match="/island/level[@id='EconomicDivide']"></xsl:template>
  <xsl:template match="/island/level[@id='HangLow']"></xsl:template>
  <xsl:template match="/island/level[@id='ImpaleSticky']"></xsl:template>
  <xsl:template match="/island/level[@id='FistyReachesOut']"></xsl:template>
  <xsl:template match="/island/level[@id='FlyingMachine']"></xsl:template>
  <xsl:template match="/island/level[@id='TowerOfGoo']"></xsl:template>
  <xsl:template match="/island/level[@id='IvyTower']"></xsl:template>
  <xsl:template match="/island/level[@id='Tumbler']"></xsl:template>
  <xsl:template match="/island/level[@id='Chain']"></xsl:template>
  <xsl:template match="/island/level[@id='OdeToBridgeBuilder']"></xsl:template>
  <xsl:template match="/island/level[@id='RegurgitationPumpingStation']"></xsl:template>
 
  <!-- Modifies the island.xml setup for your new Chapter -->
  <xsl:template match="/island">
    <xsl:copy>
      <xsl:copy-of select="@*" />
      <xsl:attribute name="name">Your Chapter Name Here</xsl:attribute>
	<xsl:apply-templates />    
    <!-- Add your level tags here -->
    </xsl:copy>
  </xsl:template>
</xsl:transform></code

Spongebob rulez too Crown Crown Crown Crown

Back

Joined: 05/05/2010

...
qwsx ive already got it Wink

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud

Joined: 11/04/2008

I finally got around to knocking up an XML diff tool. You give it two input XML files, and it gives you back an XSL file that describes the difference between them.

http://www.davidc.net/miscellany/diff-xml-documents-xsl-stylesheet

I've not tested it exhaustively so let me know how well it works for you. The output may need to be manually tweaked - in particular it's unnecessarily firm about exactly where it wants the changes to be made in the tree.

-davidc

Joined: 05/05/2010

awesomeness
Cant wait to try it.

TM13's View of the World of Goo: PART 1 is now out!

Im currently playing Minecraft. Thanks James for putting me into the craze! Laughing out loud