Jump to content

sandeman

Members
  • Posts

    21
  • Joined

  • Last visited

sandeman's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I have searched, searched, and read. I just do not get it. www.jasonsandeman.com/qabbalI have figured out how to place all of the images that I want when my browser is fully sized. The problem I am having is when I resize the browser, all the images seem to move in weird ways.What I want to do is make it so the images stay exactly where they are after someone with a screen space of 800 x 600 resizes their browser. I guess I am trying to protect the imagery of the site.I have tried the overflow: hidden, the position: absolute, position: fixed commands, but nothing seems to work. I am going to read further, but right now I am stuck.Is what I want to do possible?Sandeman
  2. Well, I believe I have finally figured it out. As a bonus, I found a way to make the menu based off of ONE image, and eliminated the need to have a thousand gif images. That was the highlight of this excercise.Now, the only things I have that are a little confusing to me is the layout on different browsers. I have updated the code above to the changes, and I was wondering if anyone can point me in the right direction.Specifically, things look great in the browser of FF2.0. When I resize the window though, the icons move around. What I am looking for is to have everything remain in the center. Another problem is the cross browser. I checked things out in IE7, and they seem to be good, except the positioning of the icons are not that great. It is even worse in IE6.Does anyone know of a good way to fix this cross-browser? Or is there a link to somewhere where there will be a lot of examples and explanations?My google-fu is good, but there are so many conflicting stories, I am having trouble sorting it out. :)Cheers,SandemanThe site: www.jasonsandeman.com/qabbal
  3. I cannot give you the code, but I think this can be done by emulating frames with css.A google search brought me these pages:http://www.456bereastreet.com/lab/cssframes/http://www.456bereastreet.com/archive/2006..._v2_fullheight/http://www.webreference.com/programming/css_frames/and here is the search for more pages:Hope that helps you out. :)Sandeman
  4. Hmm. I can see that I am still learning. I can't believe I forgot to tell about the <a> tag.I fixed this in the css file, but now I have a problem. The nav bar is not showing on the page. I am seeing the container for it, but there is nothing there.Sandeman
  5. Perhaps I am jumping in way over my head, but I have this style to consider:http://jasonsandeman.com/Gaming/image_bin/qabbal_portal.jpgSo what this is; its a body tag with an img background. I want to place the icons on the page to be rollover effects, using a list. So far, this is as far as I have gotten:http://jasonsandeman.com/qabbal/Now, here is the code to consider:portal.css body { background-color:#000000; background-attachment: fixed; background-image: url(http://jasonsandeman.com/qabbal/images/q_images/images/qabbal_bg.jpg); background-repeat: no-repeat; background-position: center; }/* Div for the whole shebang */#container { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-decoration: none;}/* here is where I attempt the placement of the footer. I want it to be right about the middle portion. */#footer { font-size: 80%; bottom: 60pt; text-decoration: none; color: #666; position: absolute; height: 30px; width: 100%; text-align: center; }/* Tightening up the line spacing. I tried this with ems, but it did not seem to work 30% seems good. */p { line-height: 30%;}/* now for the icon nav code /* nav.css /* CSS Document *//* this will be the Navigation CSS socument, where I try to make the navigation button system */<!--/* CSS from tutorials www.alsacreations.com/articles *//* To be replaced with my code with the small navigation bar - specifically the positioning, and the spacing on the image itself. To think, one image! No Rollover GIFS! */ul, li { /* use of a list for the menu */list-style-type: none; /* clean up of the liste */margin:0;padding:0;}ul {position: absolute; /* ppositionning for IE5 et IE5.5 Make sure this is at the spot that you want it.*/top: 400px;left: 390px;background: transparent url(../images/q_images/images/big_navbuttons.png) top left no-repeat; /* general menu background*/width: 500px;text-align: center;}li {float: left;}li a { /* buttons dimensions and definitions */display: block; /* <a> block to give it its dimensions */height: 140px;width: 122px;color: #fff;font-size: 14px;line-height: 50px; /* line height to avoid paddings */font-weight: bold;font-family: arial, serif;text-decoration: none;}li a:hover {background: transparent url(../images/q_images/images/big_navbuttons.png) top left no-repeat;}/* replace all of this with the roll over images and stop messing around. */a#forum:hover {background-position: -500px 0%; /* background move for each button -- Is this from the left?*/}a#campaign:hover {background-position: -628px 0%;}a#download:hover {background-position: -753px 0%;}a#contact:hover {background-position: -879px 0%;}--> and finally, the html file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Qabbal</title><link href="css/portal.css" rel="stylesheet" type="text/css" /><link href="css/nav.css" rel="stylesheet" type="text/css" /></head><body><!-- I must remember to place things nicely, in valid fomart, and clean code. :) --><div id="container" align="center"><!-- Here is where I am putting the Nav element for this Page - nav_big --><div id="navbar_big"> <ul> <li id="forum"> <a href=""> </a> </li> <li id="campaign"> <a href=""> </a> </li> <li id="download"> <a href=""> </a> </li> <li id="contact"> <a href=""> </a> </li> </ul></div><div id="navbar_small"></div><div id="footer" align="center"><p>A campaign setting for Fantasy Grounds Virtual Table Top for pen and paper Role-Playing Games</p><p>© 2007 by Stuart J. Miller and Jason Sandeman<p> </p></div></div></body></html> Sorry for the long post, but I really want to figure this out. I am currently reading about 4 books on CSS, and taking another course via DVD. I am sure that I can figure out how to do it, but sometimes someone pointing me in the right direction never hurt. I know I may be getting in over my head, but that is also the way that I learn, by doing, screwing up, then figuring it out. :)I know it may seem strange that I spilt the navigation into a seperate css file, but I did this, because this will page will take others to the other 4 sections, and there will be a similar nav bar, with smaller icons, to keep the whole site consistent. I figured it would be easier to control that with a sheet that is seperate. :)Sandeman
  6. sandeman

    Jobs in XML

    Okay, so here is where I am going with this:I presently work in the Hospitality industry as a Chef. Cooking/administration skills aside, one thing that I noticed is the lack of coherent software in this industry.I am interested in things like:Recipe databasesInventory DatabasesIngredient controlpayroll schedulingWebsite design for restaurants - that are interactiveDeveloping front end applications that are easy for the home user to use.So, I am at a crossroads in my life... I am sick of working on the cooking line, and I would like to switch careers, but I am too passionate about food to just go into "hardcore programming" and develop something that calculates the atomic weight of a chemical.So, with these things in mind... do you have a suggestion as to the direction that I am headed in?I do have some skill in HTML, and I am building my skill in XML as we speak. (I am reading three great books.... Beginning XML (By Wrox I think), XSLT 2.0 programmers reference, xpath 2.0 programmers reference.I am not scared to learn new technology, what I am scared of is wasting my time... I work more than full time now, and my time is limited...Any suggestions?Sandeman
  7. Can a person use something like this? <xs:group name="charsheet"> <xs:sequence> <xs:element name="intvalue" /> <xs:attribute name="ac" type="xs:string"/> >xs:attribute name="acarmourbonus" type="xs:string"/> <xs:element name="stringvalue" /> <xs:attribute name="race" type="xs:string"/> <xs:element name="node" type="xs:string" default="spells"/> <xs:element name="stringvalue"/> <xs:attribute name="name" value="xs:string"/> </xs:sequence></xs:group> The problem that I have is representing <stringvalue name="treasure" value=""/> in schema format.Sandeman
  8. sandeman

    Jobs in XML

    So, I have plunged into XML, XSLT, XPATH, XLINK, XML-SCHEMA, XFORMS and XMHTML.Here goes:Is there a possibility for a career using these? Am I wasting my time? I want to know all of the intricacies regarding the languages, but I am wondering if I should not devote my time to learning JAVA or somethign like it.I know a lot of people say that I should learn Perl, Java, VB, C++, XML. HTML and CSS and others, but hey! I only have a limited amount of time LOL!Any advice on a career using XML?Sincerely,Jason Sandeman
  9. So I have this xml file that is parsed by a program. (I posted his in the xslt forum... this is the same one.)Here is the xml in question: <?xml version="1.0" encoding="iso-8859-1"?><root version="1.05"> <node name="charsheet"> <node name="TestforET"> <intvalue name="ac">0</intvalue> <intvalue name="acarmorbonus">0</intvalue> <intvalue name="acbasehelper">0</intvalue> <intvalue name="acdexbonus">0</intvalue> <intvalue name="acmiscbonus">0</intvalue> <stringvalue name="acmisctitle"></stringvalue> <intvalue name="acshieldbonus">0</intvalue> <intvalue name="acsizebonus">0</intvalue> <stringvalue name="age"></stringvalue> <stringvalue name="alignment"></stringvalue> <stringvalue name="appearance"></stringvalue> <intvalue name="appraisemisc">0</intvalue> <intvalue name="appraiseranks">0</intvalue> <intvalue name="appraisestat">0</intvalue> <intvalue name="appraisestate">0</intvalue> <intvalue name="appraisetotal">0</intvalue> <intvalue name="armorcheckpenalty">0</intvalue> <intvalue name="armorcheckpenaltydbl">0</intvalue> <intvalue name="balancemisc">0</intvalue> <intvalue name="balanceranks">0</intvalue> <intvalue name="balancestat">0</intvalue> <intvalue name="balancestate">0</intvalue> <intvalue name="balancetotal">0</intvalue> <intvalue name="baseattackbonus">0</intvalue> <intvalue name="bluffmisc">0</intvalue> <intvalue name="bluffranks">0</intvalue> <intvalue name="bluffstat">0</intvalue> <intvalue name="bluffstate">0</intvalue> <intvalue name="blufftotal">0</intvalue> <intvalue name="charisma">0</intvalue> <intvalue name="charismabonus">0</intvalue> <intvalue name="charismadamage">0</intvalue> <intvalue name="charismatotal">0</intvalue> <stringvalue name="class1"></stringvalue> <stringvalue name="class2"></stringvalue> <stringvalue name="class3"></stringvalue> <intvalue name="climbmisc">0</intvalue> <intvalue name="climbranks">0</intvalue> <intvalue name="climbstat">0</intvalue> <intvalue name="climbstate">1</intvalue> <intvalue name="climbtotal">0</intvalue> <intvalue name="coinamount1">0</intvalue> <intvalue name="coinamount2">0</intvalue> <intvalue name="coinamount3">0</intvalue> <intvalue name="coinamount4">0</intvalue> <intvalue name="coinamount5">0</intvalue> <intvalue name="coinamount6">0</intvalue> <stringvalue name="coinname1">herebeplatnum</stringvalue> <stringvalue name="coinname2"></stringvalue> <stringvalue name="coinname3"></stringvalue> <stringvalue name="coinname4"></stringvalue> <stringvalue name="coinname5"></stringvalue> <stringvalue name="coinname6"></stringvalue> <stringvalue name="coinother">Other Test</stringvalue> <intvalue name="concentrationmisc">0</intvalue> <intvalue name="concentrationranks">0</intvalue> <intvalue name="concentrationstat">0</intvalue> <intvalue name="concentrationstate">0</intvalue> <intvalue name="concentrationtotal">0</intvalue> <intvalue name="constitution">0</intvalue> <intvalue name="constitutionbonus">0</intvalue> <intvalue name="constitutiondamage">0</intvalue> <intvalue name="constitutiontotal">0</intvalue> <intvalue name="craftmisc1">0</intvalue> <intvalue name="craftmisc2">0</intvalue> <stringvalue name="craftname1"></stringvalue> <stringvalue name="craftname2"></stringvalue> <intvalue name="craftranks1">0</intvalue> <intvalue name="craftranks2">0</intvalue> <intvalue name="craftstat">0</intvalue> <intvalue name="craftstate">0</intvalue> <intvalue name="crafttotal1">0</intvalue> <intvalue name="crafttotal2">0</intvalue> <intvalue name="decipherscriptmisc">0</intvalue> <intvalue name="decipherscriptranks">0</intvalue> <intvalue name="decipherscriptstat">0</intvalue> <intvalue name="decipherscriptstate">2</intvalue> <intvalue name="decipherscripttotal">0</intvalue> <intvalue name="dexterity">0</intvalue> <intvalue name="dexteritybonus">0</intvalue> <intvalue name="dexteritydamage">0</intvalue> <intvalue name="dexteritytotal">0</intvalue> <intvalue name="diplomacymisc">0</intvalue> <intvalue name="diplomacyranks">0</intvalue> <intvalue name="diplomacystat">0</intvalue> <intvalue name="diplomacystate">0</intvalue> <intvalue name="diplomacytotal">0</intvalue> <intvalue name="disabledevicemisc">0</intvalue> <intvalue name="disabledeviceranks">0</intvalue> <intvalue name="disabledevicestat">0</intvalue> <intvalue name="disabledevicestate">0</intvalue> <intvalue name="disabledevicetotal">0</intvalue> <intvalue name="disguisemisc">0</intvalue> <intvalue name="disguiseranks">0</intvalue> <intvalue name="disguisestat">0</intvalue> <intvalue name="disguisestate">0</intvalue> <intvalue name="disguisetotal">0</intvalue> <intvalue name="encumbranceheavyload">0</intvalue> <intvalue name="encumbranceliftoffground">0</intvalue> <intvalue name="encumbranceliftoverhead">0</intvalue> <intvalue name="encumbrancelightload">0</intvalue> <intvalue name="encumbranceload">1</intvalue> <intvalue name="encumbrancemediumload">0</intvalue> <intvalue name="encumbrancepushordrag">0</intvalue> <stringvalue name="equippedinventory">test equiped\rtest line 2\rwhy return?</stringvalue> <intvalue name="escapeartistmisc">0</intvalue> <intvalue name="escapeartistranks">0</intvalue> <intvalue name="escapeartiststat">0</intvalue> <intvalue name="escapeartiststate">0</intvalue> <intvalue name="escapeartisttotal">0</intvalue> <intvalue name="exp">0</intvalue> <intvalue name="expneeded">0</intvalue> <stringvalue name="feats">one\rtwo</stringvalue> <intvalue name="forgerymisc">0</intvalue> <intvalue name="forgeryranks">0</intvalue> <intvalue name="forgerystat">0</intvalue> <intvalue name="forgerystate">0</intvalue> <intvalue name="forgerytotal">0</intvalue> <intvalue name="fortitudesave">0</intvalue> <intvalue name="fortitudesavebase">0</intvalue> <intvalue name="fortitudesavemisc">0</intvalue> <intvalue name="fortitudesavestatbonus">0</intvalue> <intvalue name="gatherinformationmisc">0</intvalue> <intvalue name="gatherinformationranks">0</intvalue> <intvalue name="gatherinformationstat">0</intvalue> <intvalue name="gatherinformationstate">0</intvalue> <intvalue name="gatherinformationtotal">0</intvalue> <stringvalue name="gender"></stringvalue> <intvalue name="handleanimalmisc">0</intvalue> <intvalue name="handleanimalranks">0</intvalue> <intvalue name="handleanimalstat">0</intvalue> <intvalue name="handleanimalstate">0</intvalue> <intvalue name="handleanimaltotal">0</intvalue> <intvalue name="healmisc">0</intvalue> <intvalue name="healranks">0</intvalue> <intvalue name="healstat">0</intvalue> <intvalue name="healstate">0</intvalue> <intvalue name="healtotal">0</intvalue> <stringvalue name="height"></stringvalue> <intvalue name="hidemisc">0</intvalue> <intvalue name="hideranks">0</intvalue> <intvalue name="hidestat">0</intvalue> <intvalue name="hidestate">0</intvalue> <intvalue name="hidetotal">0</intvalue> <intvalue name="hp">0</intvalue> <intvalue name="initiative">0</intvalue> <intvalue name="initiativedexbonus">0</intvalue> <intvalue name="initiativemiscbonus">0</intvalue> <intvalue name="intelligence">0</intvalue> <intvalue name="intelligencebonus">0</intvalue> <intvalue name="intelligencedamage">0</intvalue> <intvalue name="intelligencetotal">0</intvalue> <intvalue name="intimidatemisc">0</intvalue> <intvalue name="intimidateranks">0</intvalue> <intvalue name="intimidatestat">0</intvalue> <intvalue name="intimidatestate">0</intvalue> <intvalue name="intimidatetotal">0</intvalue> <stringvalue name="inventory">test inventory\rtest line 2</stringvalue> <intvalue name="jumpmisc">0</intvalue> <intvalue name="jumpranks">0</intvalue> <intvalue name="jumpstat">0</intvalue> <intvalue name="jumpstate">0</intvalue> <intvalue name="jumptotal">0</intvalue> <intvalue name="knowledgearcanamisc">0</intvalue> <intvalue name="knowledgearcanaranks">0</intvalue> <intvalue name="knowledgearcanastat">0</intvalue> <intvalue name="knowledgearcanastate">0</intvalue> <intvalue name="knowledgearcanatotal">0</intvalue> <intvalue name="knowledgedungeoneeringmisc">0</intvalue> <intvalue name="knowledgedungeoneeringranks">0</intvalue> <intvalue name="knowledgedungeoneeringstat">0</intvalue> <intvalue name="knowledgedungeoneeringstate">0</intvalue> <intvalue name="knowledgedungeoneeringtotal">0</intvalue> <intvalue name="knowledgeengineeringmisc">0</intvalue> <intvalue name="knowledgeengineeringranks">0</intvalue> <intvalue name="knowledgeengineeringstat">0</intvalue> <intvalue name="knowledgeengineeringstate">0</intvalue> <intvalue name="knowledgeengineeringtotal">0</intvalue> <intvalue name="knowledgegeographymisc">0</intvalue> <intvalue name="knowledgegeographyranks">0</intvalue> <intvalue name="knowledgegeographystat">0</intvalue> <intvalue name="knowledgegeographystate">0</intvalue> <intvalue name="knowledgegeographytotal">0</intvalue> <intvalue name="knowledgehistorymisc">0</intvalue> <intvalue name="knowledgehistoryranks">0</intvalue> <intvalue name="knowledgehistorystat">0</intvalue> <intvalue name="knowledgehistorystate">0</intvalue> <intvalue name="knowledgehistorytotal">0</intvalue> <intvalue name="knowledgelocalmisc">0</intvalue> <intvalue name="knowledgelocalranks">0</intvalue> <intvalue name="knowledgelocalstat">0</intvalue> <intvalue name="knowledgelocalstate">0</intvalue> <intvalue name="knowledgelocaltotal">0</intvalue> <intvalue name="knowledgenaturemisc">0</intvalue> <intvalue name="knowledgenatureranks">0</intvalue> <intvalue name="knowledgenaturestat">0</intvalue> <intvalue name="knowledgenaturestate">0</intvalue> <intvalue name="knowledgenaturetotal">0</intvalue> <intvalue name="knowledgenobilitymisc">0</intvalue> <intvalue name="knowledgenobilityranks">0</intvalue> <intvalue name="knowledgenobilitystat">0</intvalue> <intvalue name="knowledgenobilitystate">0</intvalue> <intvalue name="knowledgenobilitytotal">0</intvalue> <intvalue name="knowledgereligionmisc">0</intvalue> <intvalue name="knowledgereligionranks">0</intvalue> <intvalue name="knowledgereligionstat">0</intvalue> <intvalue name="knowledgereligionstate">0</intvalue> <intvalue name="knowledgereligiontotal">0</intvalue> <intvalue name="knowledgetheplanesmisc">0</intvalue> <intvalue name="knowledgetheplanesranks">0</intvalue> <intvalue name="knowledgetheplanesstat">0</intvalue> <intvalue name="knowledgetheplanesstate">0</intvalue> <intvalue name="knowledgetheplanestotal">0</intvalue> <intvalue name="level1">0</intvalue> <intvalue name="level2">0</intvalue> <intvalue name="level3">0</intvalue> <intvalue name="listenmisc">0</intvalue> <intvalue name="listenranks">0</intvalue> <intvalue name="listenstat">0</intvalue> <intvalue name="listenstate">0</intvalue> <intvalue name="listentotal">0</intvalue> <intvalue name="meleeattackbasemod">0</intvalue> <intvalue name="meleeattackbonus">0</intvalue> <intvalue name="meleeattackstrmod">0</intvalue> <intvalue name="movesilentlymisc">0</intvalue> <intvalue name="movesilentlyranks">0</intvalue> <intvalue name="movesilentlystat">0</intvalue> <intvalue name="movesilentlystate">0</intvalue> <intvalue name="movesilentlytotal">0</intvalue> <stringvalue name="name">TestforET</stringvalue> <intvalue name="openlockmisc">0</intvalue> <intvalue name="openlockranks">0</intvalue> <intvalue name="openlockstat">0</intvalue> <intvalue name="openlockstate">0</intvalue> <intvalue name="openlocktotal">0</intvalue> <stringvalue name="otherresists"></stringvalue> <intvalue name="performmisc1">0</intvalue> <intvalue name="performmisc2">0</intvalue> <stringvalue name="performname1"></stringvalue> <stringvalue name="performname2"></stringvalue> <intvalue name="performranks1">0</intvalue> <intvalue name="performranks2">0</intvalue> <intvalue name="performstat">0</intvalue> <intvalue name="performstate">0</intvalue> <intvalue name="performtotal1">0</intvalue> <intvalue name="performtotal2">0</intvalue> <intvalue name="professionmisc1">0</intvalue> <intvalue name="professionmisc2">0</intvalue> <stringvalue name="professionname1"></stringvalue> <stringvalue name="professionname2"></stringvalue> <intvalue name="professionranks1">0</intvalue> <intvalue name="professionranks2">0</intvalue> <intvalue name="professionstat">0</intvalue> <intvalue name="professionstate">0</intvalue> <intvalue name="professiontotal1">0</intvalue> <intvalue name="professiontotal2">0</intvalue> <stringvalue name="race"></stringvalue> <intvalue name="rangeattackbasemod">0</intvalue> <intvalue name="rangeattackbonus">0</intvalue> <intvalue name="rangeattackdexmod">0</intvalue> <intvalue name="readlipsmisc">0</intvalue> <intvalue name="readlipsranks">0</intvalue> <intvalue name="readlipsstat">0</intvalue> <intvalue name="readlipsstate">0</intvalue> <intvalue name="readlipstotal">0</intvalue> <intvalue name="reflexsave">0</intvalue> <intvalue name="reflexsavebase">0</intvalue> <intvalue name="reflexsavemisc">0</intvalue> <intvalue name="reflexsavestatbonus">0</intvalue> <intvalue name="ridemisc">0</intvalue> <intvalue name="rideranks">0</intvalue> <intvalue name="ridestat">0</intvalue> <intvalue name="ridestate">0</intvalue> <intvalue name="ridetotal">0</intvalue> <intvalue name="searchmisc">0</intvalue> <intvalue name="searchranks">0</intvalue> <intvalue name="searchstat">0</intvalue> <intvalue name="searchstate">0</intvalue> <intvalue name="searchtotal">0</intvalue> <intvalue name="sensemotivemisc">0</intvalue> <intvalue name="sensemotiveranks">0</intvalue> <intvalue name="sensemotivestat">0</intvalue> <intvalue name="sensemotivestate">0</intvalue> <intvalue name="sensemotivetotal">0</intvalue> <stringvalue name="size"></stringvalue> <intvalue name="sleightofhandmisc">0</intvalue> <intvalue name="sleightofhandranks">0</intvalue> <intvalue name="sleightofhandstat">0</intvalue> <intvalue name="sleightofhandstate">0</intvalue> <intvalue name="sleightofhandtotal">0</intvalue> <intvalue name="speaklanguageranks">0</intvalue> <intvalue name="speaklanguagestate">0</intvalue> <stringvalue name="specialabilities"></stringvalue> <node name="spell"> <node name="00001"> <intvalue name="level">0</intvalue> <stringvalue name="name"></stringvalue> <intvalue name="prepared">0</intvalue> <stringvalue name="shortdescription"></stringvalue> </node> <node name="00002"> <intvalue name="level">0</intvalue> <stringvalue name="name">Detect Poison</stringvalue> <intvalue name="prepared">0</intvalue> <stringvalue name="shortdescription">Detects poison in one creature or object.</stringvalue> </node> </node> <intvalue name="spellcraftmisc">0</intvalue> <intvalue name="spellcraftranks">0</intvalue> <intvalue name="spellcraftstat">0</intvalue> <intvalue name="spellcraftstate">0</intvalue> <intvalue name="spellcrafttotal">0</intvalue> <intvalue name="spelldclevel0">0</intvalue> <intvalue name="spelldclevel1">0</intvalue> <intvalue name="spelldclevel2">0</intvalue> <intvalue name="spelldclevel3">0</intvalue> <intvalue name="spelldclevel4">0</intvalue> <intvalue name="spelldclevel5">0</intvalue> <intvalue name="spelldclevel6">0</intvalue> <intvalue name="spelldclevel7">0</intvalue> <intvalue name="spelldclevel8">0</intvalue> <intvalue name="spelldclevel9">0</intvalue> <stringvalue name="spellmisclabel">MiscTest</stringvalue> <intvalue name="spellmisclevel0">1</intvalue> <intvalue name="spellmisclevel1">0</intvalue> <intvalue name="spellmisclevel2">0</intvalue> <intvalue name="spellmisclevel3">0</intvalue> <intvalue name="spellmisclevel4">0</intvalue> <intvalue name="spellmisclevel5">0</intvalue> <intvalue name="spellmisclevel6">0</intvalue> <intvalue name="spellmisclevel7">0</intvalue> <intvalue name="spellmisclevel8">0</intvalue> <intvalue name="spellmisclevel9">0</intvalue> <intvalue name="spellsperdaylevel0">1</intvalue> <intvalue name="spellsperdaylevel1">0</intvalue> <intvalue name="spellsperdaylevel2">0</intvalue> <intvalue name="spellsperdaylevel3">0</intvalue> <intvalue name="spellsperdaylevel4">0</intvalue> <intvalue name="spellsperdaylevel5">0</intvalue> <intvalue name="spellsperdaylevel6">0</intvalue> <intvalue name="spellsperdaylevel7">0</intvalue> <intvalue name="spellsperdaylevel8">0</intvalue> <intvalue name="spellsperdaylevel9">0</intvalue> <intvalue name="spotmisc">0</intvalue> <intvalue name="spotranks">0</intvalue> <intvalue name="spotstat">0</intvalue> <intvalue name="spotstate">0</intvalue> <intvalue name="spottotal">0</intvalue> <intvalue name="strength">19</intvalue> <intvalue name="strengthbonus">0</intvalue> <intvalue name="strengthdamage">0</intvalue> <intvalue name="strengthtotal">0</intvalue> <intvalue name="subdual">0</intvalue> <intvalue name="survivalmisc">0</intvalue> <intvalue name="survivalranks">0</intvalue> <intvalue name="survivalstat">0</intvalue> <intvalue name="survivalstate">0</intvalue> <intvalue name="survivaltotal">0</intvalue> <intvalue name="swimmisc">0</intvalue> <intvalue name="swimranks">0</intvalue> <intvalue name="swimstat">0</intvalue> <intvalue name="swimstate">0</intvalue> <intvalue name="swimtotal">0</intvalue> <intvalue name="tumblemisc">0</intvalue> <intvalue name="tumbleranks">0</intvalue> <intvalue name="tumblestat">0</intvalue> <intvalue name="tumblestate">0</intvalue> <intvalue name="tumbletotal">0</intvalue> <intvalue name="usemagicdevicemisc">0</intvalue> <intvalue name="usemagicdeviceranks">0</intvalue> <intvalue name="usemagicdevicestat">0</intvalue> <intvalue name="usemagicdevicestate">0</intvalue> <intvalue name="usemagicdevicetotal">0</intvalue> <intvalue name="useropemisc">0</intvalue> <intvalue name="useroperanks">0</intvalue> <intvalue name="useropestat">0</intvalue> <intvalue name="useropestate">0</intvalue> <intvalue name="useropetotal">0</intvalue> <stringvalue name="weapon1">one</stringvalue> <intvalue name="weapon1attackbonus">0</intvalue> <intvalue name="weapon1attackbonus2">0</intvalue> <intvalue name="weapon1attackbonus3">0</intvalue> <intvalue name="weapon1attackbonus4">0</intvalue> <stringvalue name="weapon1critical"></stringvalue> <stringvalue name="weapon1damage"></stringvalue> <stringvalue name="weapon2">two</stringvalue> <intvalue name="weapon2attackbonus">0</intvalue> <intvalue name="weapon2attackbonus2">0</intvalue> <intvalue name="weapon2attackbonus3">0</intvalue> <intvalue name="weapon2attackbonus4">0</intvalue> <stringvalue name="weapon2critical"></stringvalue> <stringvalue name="weapon2damage"></stringvalue> <stringvalue name="weapon3">three</stringvalue> <intvalue name="weapon3attackbonus">0</intvalue> <intvalue name="weapon3attackbonus2">0</intvalue> <intvalue name="weapon3attackbonus3">0</intvalue> <intvalue name="weapon3attackbonus4">0</intvalue> <stringvalue name="weapon3critical"></stringvalue> <stringvalue name="weapon3damage"></stringvalue> <stringvalue name="weapon4">four</stringvalue> <intvalue name="weapon4attackbonus">0</intvalue> <intvalue name="weapon4attackbonus2">0</intvalue> <intvalue name="weapon4attackbonus3">0</intvalue> <intvalue name="weapon4attackbonus4">0</intvalue> <stringvalue name="weapon4critical"></stringvalue> <stringvalue name="weapon4damage"></stringvalue> <stringvalue name="weight"></stringvalue> <intvalue name="willsave">0</intvalue> <intvalue name="willsavebase">0</intvalue> <intvalue name="willsavemisc">0</intvalue> <intvalue name="willsavestatbonus">0</intvalue> <intvalue name="wisdom">0</intvalue> <intvalue name="wisdombonus">0</intvalue> <intvalue name="wisdomdamage">0</intvalue> <intvalue name="wisdomtotal">0</intvalue> <intvalue name="wounds">0</intvalue> </node> </node> </root> This repeats from the <node name="TestforET"> to represent characters.The problem that I am having is to make an schema for this, but there are tons of <intvalue> and <stringvalue> elements, all with the "name" attribute.How does one go making a schema for this? I can see how to make the <intvalue> and <stringvalue> repeat, but the attributes are all the same! is there a way to do this in a schema?Sandeman
  10. Okay, so if I am referencing an XML doc with my xslt, the select attribute is selecting only those things within the "skill" node, right?So what I can do is save this off as a skills.xsl sheet, and reference this in the main sheet with <import href="skills.xsl"> command.Is this right?Sandeman
  11. I was wondering if I can use the xsl command<xsl:template match="text()"/> before the <xsl:template match="name"> to put the priority to the name/nameofskill. The I can proceed naming each, until all are full?Does that make any sense?Sandeman
  12. Consider the following: <skills> <skill> <name>Sense Motive</name> <untrained>1</untrained> <ability>Wis</ability> <modifiers> <modifier name="rank" value="0"/> <modifier name="ability" value="3"/> <modifier name="misc" value="0"/> </modifiers> <short-description>Detect when someone is bluffing you, when something is up, or someone is lying. (Wis)</short-description> </skill> . . .repeat above for each skill </skills> This is the xml that I am working with. What I want to do is change it to fill out another xml form. (From the same problem as above) Is this correct? <xsl:template match="skill"> <!-- Here is where I attempt to get the skills in: --> [b]<xsl:template match="name" name="Sense Motive"/>[/b] <xsl:variable name="Sensemotivemisc" select="modifiers/modifier[@name = 'misc']/@value" /> <intvalue name="sensemotivemisc"> <xsl:value-of select="$Sensemotivemisc"/> </intvalue> <xsl:variable name="Sensemotiveranks" select="modifiers/modifier[@name = 'rank']/@value" /> <intvalue name="sensemotiveranks"> <xsl:value-of select="$Sensemotiveranks"/> </intvalue > <xsl:variable name="Sensemotivestat" select="modifiers/modifier[@name = 'ability']/@value" /> <intvalue name="sensemotivestat" <xsl:value-of select="$Sensemotivestat"/> </intvalue> </xsl:template> . . .repeat above for each skill </xsl:template> What I am trying to do is first: Call the template <skills>, then the template <skill/name>, then I am trying to select the one that says "sense motive", fill in those values, then close the template, repeat the process untill all is done, then close the final template.Am I going about this the right way?Sandeman
  13. Okay, now for some more fun. In dealing with the access database, I need to pull out the values of a table, and make seperate nodes out of all of them.The table has the columns of:NAMETOTAL MODIFIERRANKSTYPEATTRIBUTE BONUSand each is populated with rows of skills.What I am trying to do is this: (In pseudo code..) Call up the skills table in Etools database Sort the table in alphabetical order with the Name Column Select the field with the name of the skill Define the name as a variable Select the Misc modifier field Define the misc modifier as a variable Select the Ranks Modifier Field Define the ranks modifier as a variable Select the Type Field Define the type fields as a variable Select the Total Bonus for the skill field Define the total bonus as a variable Repeat this process until all variables are finished Place the attribute values in the appropriate nodes using the variables. Check to see if the type field is class, cross class or prohibited, place a value depending on what type is. So, Seeing as how the variables have to be used in the order that they are created, I was looking to split off the variable declarations into another xsl file and call it up using the <import href> command. My reasoning behind this is that all the skills are intermixed with other values in the xml format of the GUI. (Such as hitpoints). By ripping this out into another file, and referencing it, it should work because I am using the variables from that file in order? Now, as for how to select the data in the database. I have this as a start: <xsl:template match="skill"><!-- <xsl:for-each ….? -- > <xsl:variable name="skillname" select="[@name = 'name']/@value" /> <xsl:variable name="{$skillname}misc" select="modifiers/modifier[@name = 'misc']/@value" /> <xsl:variable name="{$skillname}ranks" select="modifiers/modifier[@name = 'rank']/@value" /> <xsl:variable name="{$skillname}stat" select="modifiers/modifier[@name = 'ability']/@value" /> <xsl:variable name="{$skillname}state" select="modifiers/modifier[@name = 'type']/@value"> <xsl:variable name="{$skillname}total" select="sum(modifiers/modifier[@name != 'misc']/@value)" /<!-- /xsl:for-each .. </xsl:template> Any thoughts? Sandeman
  14. If I remember correctly, the '' is an operator defined in anothe stylesheet that is loaded with the href function, to call the value of the selected entity in the database table. :)As for what it will look like when done:$Feat="armor profiencecy/rdodge/rshot on the run" would be an example.The /r is parsed by the GUI application to be a carriage return or a <p> tag, and will tell the app to place the values on three different lines in the character sheet.Sometimes I get a headache with all of this, as I am dealing with an Access database, xml, xslt and C++ in order to do all of this. But I am learning a lot! LOLSandeman
×
×
  • Create New...