Jump to content

sandeman

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by sandeman

  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
  15. Okay, I want to make sure that I have the syntax of this language correct. I have here a code that populates the node attribute for "Feat" with the values returned from the database. The GUI recognises inside the textstring the value /r for a return. (To place the next value on the next line.) I think I have this correct, if so, it would generate the value for the feat attribute of "feat1/rfeat2/rfeat3"... until all feats are listed, then it would end the loop. Do I have this correct?<xsl:if test="features/feats/feat"> <!-- FEATS --> <xsl:for-each select="features/feats/feat"> <xsl:variable name="Feat"> <xsl:choose> <xsl:when test="name = 'Armor Proficiency: heavy' and count(/character/features/class-features/class-feature[feature = 'Heavy armor proficiency'])"> <xsl:value-of select="''"/> </xsl:when> <xsl:when test="name = 'Armor Proficiency: medium' and count(/character/features/class-features/class-feature[feature = 'Medium armor proficiency'])"> <xsl:value-of select="''"/> </xsl:when> <xsl:when test="name = 'Armor Proficiency: light' and count(/character/features/class-features/class-feature[feature = 'Light armor proficiency'])"> <xsl:value-of select="''"/> </xsl:when> <xsl:when test="name = 'Shield Proficiency' and count(/character/features/class-features/class-feature[feature = 'Shield proficiency'])"> <xsl:value-of select="''"/> </xsl:when> <xsl:when test="name = 'Simple Weapon Proficiency' and count(/character/features/class-features/class-feature[feature = 'Simple weapon proficiency'])"> <xsl:value-of select="''"/> </xsl:when> <xsl:when test="starts-with(name, 'Martial Weapon Proficiency') and count(/character/features/class-features/class-feature[feature = 'Martial weapon proficiency: all'])"> <xsl:value-of select="''"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="name"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="position() = 1 and $feat = ''"></xsl:when> <xsl:when test="position() = 1 and $feat != ''"> <xsl:value-of select="$feat"/><xsl:text>/r</xsl:text> </xsl:when> <xsl:when test="position() = last() and $feat = ''"> </xsl:when> <xsl:when test="position() = last() and $feat != ''"> <xsl:value-of select="$feat"/><xsl:text>/r</xsl:text> </xsl:when> <xsl:when test="$feat = '' and position() != 1 and position() != last()"></xsl:when> <xsl:otherwise> <xsl:value-of select="$feat"/><xsl:text>/r</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:for-each></xsl:if> SandemanI have learned so much in the last couple of days that my head is swimming!
  16. Okay, I can see where you are going with this.Here is the amended code from above, using some variables:<!-- I think that I need to put in a <xsl:for-each command here --> <node name="$NODENAMEINCREMENT" /> <intvalue name="level"> <xsl:value-of select="$SPELLLevel" /> </intvalue> <!-- This can be used for spells known --> <stringvalue name="name"> <xsl:value-of select="$SpellName" /> </stringvalue> <!-- This can be used for spells prepared --> <intvalue name="prepared"> <xsl:value-of select="$SpellPrepared" /> </intvalue> <stringvalue name="shortdescription"> <xsl:value-of select="$SpellShortDescription" /> </stringvalue> </node> In the db.xml file this format always stays the same, the only difference is the value of $NODENAMEINCREMENT, and the values of each. What this does is put it into a table format that can be dynamically edited by the user. (For instance, the $SpellPrepared will be an integer, that can be updated in the GUI by using the middle mouse wheel. What I am concerned with is the initial value for when the player converts his character over from the database to the program.Now, the part that I am sort of having trouble with is how this is to be [li]repeatedthe node value incremented for each repetitionthe node value incremented in steps of +1 with a starting value of 00001[/li]Nothing too complicated. LOLwould I use the <xsl:for-each> command with the <xsl:test> command to check the database fist, then populate the nodes, then loop this until the spells in the characters files done?Also, how does a person "fix" the value of $NODENAMEINCREMENT to start at "00001" and increment to "00002", "00003" and so on? I can see how to make it "1" and then "2", but the zeroes in front need to be there. Thank you for your help on this.... I am getting closer, I can feel it!Man I love this stuff! <I am such a geek! I love it!>Sandeman
  17. Good morning all! Okay, lets start off with a bit of code. <node name="spell"> <node name="00001"> <intvalue name="level">0</intvalue> <!-- This can be used for spells known --> <stringvalue name="name"></stringvalue> <!-- This can be used for spells prepared --> <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> This is how the spell entries are shown in the db.xml for the GUI program, I can figure out how to populate the attributes well enough, what I am stuck with is how to show the <node name=”#####”> tag. What needs to happen is the xsl stylesheet needs to count off the spells in the character files and place the information into the respective tags. (With the <xsl:for-each command?) What I can’t figure out is how to make the <node name> attribute to increment by one for each entry. Also, how to make it so it increments like so, 00001, 00002 etc.I have declared a variable, <xsl:variable name="NODENAMEINCREMENT" select="" /> where I will put the formula in the select attribute. I am thinkg that you could define another variable, and increment it no? But can you put a variable inside a variable? Any ideas? Sandeman
  18. Good! Now all I have to do is declare the variables from the database, then populate the nodes with the <xsl:value-of select="$variablename". Right?As for the program to output, that is already covered in the database program that I am using. When you use the export function to html, you are using an xsl stylesheet to format the output.I will give this a try, and I will be so happy (and so will hundreds of others) if this works.Thank you for the help, and hopefully you will be here for me if anything else comes up.... LOLSandeman
  19. Okay, if I can be real dense for a moment.The xsl stylesheet is applied to the xml that is generated from the export of the database. (In this case, an access database.) The data is then displayed in a format that is readable, right?What I want to do is create the exporting xml in html format so I can cut and paste it into the xml file for the GUI program.Is it more efficient to create all the variables like you did first, then put them into the code? Does this have to be in order of all the nodes? Or can I do it first, then fill in the blanks? I guess it would look start like like so: <xsl:attribute name="ac" > <xsl:attribute name="acarmorbonus"> <xsl:attribute name="acbasehelper"> <xsl:attribute name="acdexbonus"> <xsl:attribute name="acmiscbonus"> <xsl:attribute name="acmisctitle"> <xsl:attribute name="acshieldbonus"> <xsl:attribute name="acsizebonus"> <xsl:attribute name="acsurprised"> <xsl:attribute name="age"> <xsl:attribute name="alignment"> <xsl:attribute name="appearance"> <xsl:attribute name="appraisemisc"> <xsl:attribute name="appraiseranks"> <xsl:attribute name="appraisestat"> <xsl:attribute name="appraisestate"> <xsl:attribute name="appraisetotal"> <xsl:attribute name="armorcheckpenalty"> <xsl:attribute name="armorcheckpenaltydbl"> <xsl:attribute name="arrows1"> <xsl:attribute name="arrows10"> <xsl:attribute name="arrows11"> <xsl:attribute name="arrows12"> <xsl:attribute name="arrows13"> <xsl:attribute name="arrows14"> <xsl:attribute name="arrows15"> <xsl:attribute name="arrows16"> <xsl:attribute name="arrows17"> <xsl:attribute name="arrows18"> <xsl:attribute name="arrows19"> <xsl:attribute name="arrows2"> <xsl:attribute name="arrows20"> <xsl:attribute name="arrows3"> <xsl:attribute name="arrows4"> <xsl:attribute name="arrows5"> <xsl:attribute name="arrows6"> <xsl:attribute name="arrows7"> <xsl:attribute name="arrows8"> <xsl:attribute name="arrows9"> <xsl:attribute name="balancemisc"> <xsl:attribute name="balanceranks"> <xsl:attribute name="balancestat"> <xsl:attribute name="balancestate"> <xsl:attribute name="balancetotal"> <xsl:attribute name="baseattackbonus"> <xsl:attribute name="blankskill1keyability"> <xsl:attribute name="blankskill1misc"> <xsl:attribute name="blankskill1ranks"> <xsl:attribute name="blankskill1stat"> <xsl:attribute name="blankskill1state"> <xsl:attribute name="blankskill1text"> <xsl:attribute name="blankskill1total"> <xsl:attribute name="blankskill2keyability"> <xsl:attribute name="blankskill2misc"> <xsl:attribute name="blankskill2ranks"> <xsl:attribute name="blankskill2stat"> <xsl:attribute name="blankskill2state"> <xsl:attribute name="blankskill2text"> <xsl:attribute name="blankskill2total"> <xsl:attribute name="blankskill3keyability"> <xsl:attribute name="blankskill3misc"> <xsl:attribute name="blankskill3ranks"> <xsl:attribute name="blankskill3stat"> <xsl:attribute name="blankskill3state"> <xsl:attribute name="blankskill3text"> <xsl:attribute name="blankskill3total"> <xsl:attribute name="blankskill4keyability"> <xsl:attribute name="blankskill4misc"> <xsl:attribute name="blankskill4ranks"> <xsl:attribute name="blankskill4stat"> <xsl:attribute name="blankskill4state"> <xsl:attribute name="blankskill4text"> <xsl:attribute name="blankskill4total"> <xsl:attribute name="blankskill5keyability"> <xsl:attribute name="blankskill5misc"> <xsl:attribute name="blankskill5ranks"> <xsl:attribute name="blankskill5stat"> <xsl:attribute name="blankskill5state"> <xsl:attribute name="blankskill5text"> <xsl:attribute name="blankskill5total"> <xsl:attribute name="blankskill6keyability"> <xsl:attribute name="blankskill6misc"> <xsl:attribute name="blankskill6ranks"> <xsl:attribute name="blankskill6stat"> <xsl:attribute name="blankskill6state"> <xsl:attribute name="blankskill6text"> <xsl:attribute name="blankskill6total"> <xsl:attribute name="blankskill7keyability"> <xsl:attribute name="blankskill7misc"> <xsl:attribute name="blankskill7ranks"> <xsl:attribute name="blankskill7stat"> <xsl:attribute name="blankskill7state"> <xsl:attribute name="blankskill7text"> <xsl:attribute name="blankskill7total"> <xsl:attribute name="blankskill8keyability"> <xsl:attribute name="blankskill8misc"> <xsl:attribute name="blankskill8ranks"> <xsl:attribute name="blankskill8stat"> <xsl:attribute name="blankskill8state"> <xsl:attribute name="blankskill8text"> <xsl:attribute name="blankskill8total"> <xsl:attribute name="bluffmisc"> <xsl:attribute name="bluffranks"> <xsl:attribute name="bluffstat"> <xsl:attribute name="bluffstate"> <xsl:attribute name="blufftotal"> <xsl:attribute name="bolts1"> <xsl:attribute name="bolts10"> <xsl:attribute name="bolts11"> <xsl:attribute name="bolts12"> <xsl:attribute name="bolts13"> <xsl:attribute name="bolts14"> <xsl:attribute name="bolts15"> <xsl:attribute name="bolts16"> <xsl:attribute name="bolts17"> <xsl:attribute name="bolts18"> <xsl:attribute name="bolts19"> <xsl:attribute name="bolts2"> <xsl:attribute name="bolts20"> <xsl:attribute name="bolts3"> <xsl:attribute name="bolts4"> <xsl:attribute name="bolts5"> <xsl:attribute name="bolts6"> <xsl:attribute name="bolts7"> <xsl:attribute name="bolts8"> <xsl:attribute name="bolts9"> <xsl:attribute name="camouflagemisc"> <xsl:attribute name="camouflageranks"> <xsl:attribute name="camouflagestat"> <xsl:attribute name="camouflagestate"> <xsl:attribute name="camouflagetotal"> <xsl:attribute name="charisma"> <xsl:attribute name="charismabonus"> <xsl:attribute name="charismadamage"> <xsl:attribute name="charismatotal"> <xsl:attribute name="class1"> <xsl:attribute name="class2"> <xsl:attribute name="class3"> <xsl:attribute name="climbmisc"> <xsl:attribute name="climbranks"> <xsl:attribute name="climbstat"> <xsl:attribute name="climbstate"> <xsl:attribute name="climbtotal"> <xsl:attribute name="clothing"> <xsl:attribute name="coinamount1"> <xsl:attribute name="coinamount2"> <xsl:attribute name="coinamount3"> <xsl:attribute name="coinamount4"> <xsl:attribute name="coinamount5"> <xsl:attribute name="coinamount6"> <xsl:attribute name="coinname1"> <xsl:attribute name="coinname2"> <xsl:attribute name="coinname3"> <xsl:attribute name="coinname4"> <xsl:attribute name="coinname5"> <xsl:attribute name="coinname6"> <xsl:attribute name="coinother"> <xsl:attribute name="concealmentac1"> <xsl:attribute name="concealmentac2"> <xsl:attribute name="concealmentac3"> <xsl:attribute name="concealmentac4"> <xsl:attribute name="concealmenthelper"> <xsl:attribute name="concealmentreflex1"> <xsl:attribute name="concealmentreflex2"> <xsl:attribute name="concealmentreflex3"> <xsl:attribute name="concealmentreflex4"> <xsl:attribute name="concentrationmisc"> <xsl:attribute name="concentrationranks"> <xsl:attribute name="concentrationstat"> <xsl:attribute name="concentrationstate"> <xsl:attribute name="concentrationtotal"> <xsl:attribute name="constitution">13> <xsl:attribute name="constitutionbonus"> <xsl:attribute name="constitutiondamage"> <xsl:attribute name="constitutiontotal"> <xsl:attribute name="craft1misc"> <xsl:attribute name="craft1ranks"> <xsl:attribute name="craft1stat"> <xsl:attribute name="craft1state"> <xsl:attribute name="craft1text"> <xsl:attribute name="craft1total"> <xsl:attribute name="craft2misc"> <xsl:attribute name="craft2ranks"> <xsl:attribute name="craft2stat"> <xsl:attribute name="craft2state"> <xsl:attribute name="craft2text"> <xsl:attribute name="craft2total"> <xsl:attribute name="craft3misc"> <xsl:attribute name="craft3ranks"> <xsl:attribute name="craft3stat"> <xsl:attribute name="craft3state"> <xsl:attribute name="craft3text"> <xsl:attribute name="craft3total"> <xsl:attribute name="craftmisc1"> <xsl:attribute name="craftmisc2"> <xsl:attribute name="craftname1"> <xsl:attribute name="craftname2"> <xsl:attribute name="craftranks1"> <xsl:attribute name="craftranks2"> <xsl:attribute name="craftstat"> <xsl:attribute name="craftstate"> <xsl:attribute name="crafttotal1"> <xsl:attribute name="crafttotal2"> <xsl:attribute name="decipherscriptmisc"> <xsl:attribute name="decipherscriptranks"> <xsl:attribute name="decipherscriptstat"> <xsl:attribute name="decipherscriptstate"> <xsl:attribute name="decipherscripttotal"> <xsl:attribute name="dexterity"> <xsl:attribute name="dexteritybonus"> <xsl:attribute name="dexteritydamage"> <xsl:attribute name="dexteritytotal"> <xsl:attribute name="diplomacymisc"> <xsl:attribute name="diplomacyranks"> <xsl:attribute name="diplomacystat"> <xsl:attribute name="diplomacystate"> <xsl:attribute name="diplomacytotal"> <xsl:attribute name="disabledevicemisc"> <xsl:attribute name="disabledeviceranks"> <xsl:attribute name="disabledevicestat"> <xsl:attribute name="disabledevicestate"> <xsl:attribute name="disabledevicetotal"> <xsl:attribute name="disguisemisc"> <xsl:attribute name="disguiseranks"> <xsl:attribute name="disguisestat"> <xsl:attribute name="disguisestate"> <xsl:attribute name="disguisetotal"> <xsl:attribute name="encumbranceheavyload"> <xsl:attribute name="encumbranceliftoffground"> <xsl:attribute name="encumbranceliftoverhead"> <xsl:attribute name="encumbrancelightload"> <xsl:attribute name="encumbranceload"> <xsl:attribute name="encumbrancemediumload"> <xsl:attribute name="encumbrancepushordrag"> <xsl:attribute name="equippedinventory"> <xsl:attribute name="escapeartistmisc"> <xsl:attribute name="escapeartistranks"> <xsl:attribute name="escapeartiststat"> <xsl:attribute name="escapeartiststate"> <xsl:attribute name="escapeartisttotal"> <xsl:attribute name="exp"> <xsl:attribute name="expneeded"> <xsl:attribute name="feats"> <xsl:attribute name="forgerymisc"> <xsl:attribute name="forgeryranks"> <xsl:attribute name="forgerystat"> <xsl:attribute name="forgerystate"> <xsl:attribute name="forgerytotal"> <xsl:attribute name="fortitudesave"> <xsl:attribute name="fortitudesavebase"> <xsl:attribute name="fortitudesavemisc"> <xsl:attribute name="fortitudesavestatbonus"> <xsl:attribute name="gatherinformationmisc"> <xsl:attribute name="gatherinformationranks"> <xsl:attribute name="gatherinformationstat"> <xsl:attribute name="gatherinformationstate"> <xsl:attribute name="gatherinformationtotal"> <xsl:attribute name="gender"> <xsl:attribute name="handleanimalmisc"> <xsl:attribute name="handleanimalranks"> <xsl:attribute name="handleanimalstat"> <xsl:attribute name="handleanimalstate"> <xsl:attribute name="handleanimaltotal"> <xsl:attribute name="healerskit1"> <xsl:attribute name="healerskit10"> <xsl:attribute name="healerskit11"> <xsl:attribute name="healerskit12"> <xsl:attribute name="healerskit13"> <xsl:attribute name="healerskit14"> <xsl:attribute name="healerskit15"> <xsl:attribute name="healerskit16"> <xsl:attribute name="healerskit17"> <xsl:attribute name="healerskit18"> <xsl:attribute name="healerskit19"> <xsl:attribute name="healerskit2"> <xsl:attribute name="healerskit20"> <xsl:attribute name="healerskit3"> <xsl:attribute name="healerskit4"> <xsl:attribute name="healerskit5"> <xsl:attribute name="healerskit6"> <xsl:attribute name="healerskit7"> <xsl:attribute name="healerskit8"> <xsl:attribute name="healerskit9"> <xsl:attribute name="healmisc"> <xsl:attribute name="healranks"> <xsl:attribute name="healstat"> <xsl:attribute name="healstate"> <xsl:attribute name="healtotal"> <xsl:attribute name="height"> <xsl:attribute name="hidemisc"> <xsl:attribute name="hideranks"> <xsl:attribute name="hidestat"> <xsl:attribute name="hidestate"> <xsl:attribute name="hidetotal"> <xsl:attribute name="hp">27> <xsl:attribute name="initiative"> <xsl:attribute name="initiativedexbonus"> <xsl:attribute name="initiativemiscbonus"> <xsl:attribute name="intelligence"> <xsl:attribute name="intelligencebonus"> <xsl:attribute name="intelligencedamage"> <xsl:attribute name="intelligencetotal"> <xsl:attribute name="intimidatemisc"> <xsl:attribute name="intimidateranks"> <xsl:attribute name="intimidatestat"> <xsl:attribute name="intimidatestate"> <xsl:attribute name="intimidatetotal"> <xsl:attribute name="inventory"> <xsl:attribute name="itemdescription"> <xsl:attribute name="jumpmisc"> <xsl:attribute name="jumpranks"> <xsl:attribute name="jumpstat"> <xsl:attribute name="jumpstate"> <xsl:attribute name="jumptotal"> <xsl:attribute name="knowledgearcanamisc"> <xsl:attribute name="knowledgearcanaranks"> <xsl:attribute name="knowledgearcanastat"> <xsl:attribute name="knowledgearcanastate"> <xsl:attribute name="knowledgearcanatotal"> <xsl:attribute name="knowledgedungeoneeringmisc"> <xsl:attribute name="knowledgedungeoneeringranks"> <xsl:attribute name="knowledgedungeoneeringstat"> <xsl:attribute name="knowledgedungeoneeringstate"> <xsl:attribute name="knowledgedungeoneeringtotal"> <xsl:attribute name="knowledgeengineeringmisc"> <xsl:attribute name="knowledgeengineeringranks"> <xsl:attribute name="knowledgeengineeringstat"> <xsl:attribute name="knowledgeengineeringstate"> <xsl:attribute name="knowledgeengineeringtotal"> <xsl:attribute name="knowledgegeographymisc"> <xsl:attribute name="knowledgegeographyranks"> <xsl:attribute name="knowledgegeographystat"> <xsl:attribute name="knowledgegeographystate"> <xsl:attribute name="knowledgegeographytotal"> <xsl:attribute name="knowledgehistorymisc"> <xsl:attribute name="knowledgehistoryranks"> <xsl:attribute name="knowledgehistorystat"> <xsl:attribute name="knowledgehistorystate"> <xsl:attribute name="knowledgehistorytotal"> <xsl:attribute name="knowledgelocalmisc"> <xsl:attribute name="knowledgelocalranks"> <xsl:attribute name="knowledgelocalstat"> <xsl:attribute name="knowledgelocalstate"> <xsl:attribute name="knowledgelocaltotal"> <xsl:attribute name="knowledgenaturemisc"> <xsl:attribute name="knowledgenatureranks"> <xsl:attribute name="knowledgenaturestat"> <xsl:attribute name="knowledgenaturestate"> <xsl:attribute name="knowledgenaturetotal"> <xsl:attribute name="knowledgenobilitymisc"> <xsl:attribute name="knowledgenobilityranks"> <xsl:attribute name="knowledgenobilitystat"> <xsl:attribute name="knowledgenobilitystate"> <xsl:attribute name="knowledgenobilitytotal"> <xsl:attribute name="knowledgereligionmisc"> <xsl:attribute name="knowledgereligionranks"> <xsl:attribute name="knowledgereligionstat"> <xsl:attribute name="knowledgereligionstate"> <xsl:attribute name="knowledgereligiontotal"> <xsl:attribute name="knowledgetheplanesmisc"> <xsl:attribute name="knowledgetheplanesranks"> <xsl:attribute name="knowledgetheplanesstat"> <xsl:attribute name="knowledgetheplanesstate"> <xsl:attribute name="knowledgetheplanestotal"> <xsl:attribute name="languages"> <xsl:attribute name="level1"> <xsl:attribute name="level2"> <xsl:attribute name="level3"> <xsl:attribute name="listenmisc"> <xsl:attribute name="listenranks"> <xsl:attribute name="listenstat"> <xsl:attribute name="listenstate"> <xsl:attribute name="listentotal"> <xsl:attribute name="location1label"> <xsl:attribute name="location1text"> <xsl:attribute name="location2label"> <xsl:attribute name="location2text"> <xsl:attribute name="location3label"> <xsl:attribute name="location3text"> <xsl:attribute name="location4label"> <xsl:attribute name="location4text"> <xsl:attribute name="meleeattackbasemod"> <xsl:attribute name="meleeattackbonus"> <xsl:attribute name="meleeattackstrmod"> <xsl:attribute name="misc1"> <xsl:attribute name="misc10"> <xsl:attribute name="misc11"> <xsl:attribute name="misc12"> <xsl:attribute name="misc13"> <xsl:attribute name="misc14"> <xsl:attribute name="misc15"> <xsl:attribute name="misc16"> <xsl:attribute name="misc17"> <xsl:attribute name="misc18"> <xsl:attribute name="misc19"> <xsl:attribute name="misc2"> <xsl:attribute name="misc20"> <xsl:attribute name="misc3"> <xsl:attribute name="misc4"> <xsl:attribute name="misc5"> <xsl:attribute name="misc6"> <xsl:attribute name="misc7"> <xsl:attribute name="misc8"> <xsl:attribute name="misc9"> <xsl:attribute name="motivationmisc"> <xsl:attribute name="motivationranks"> <xsl:attribute name="motivationstat"> <xsl:attribute name="motivationstate"> <xsl:attribute name="motivationtotal"> <xsl:attribute name="movesilentlymisc"> <xsl:attribute name="movesilentlyranks"> <xsl:attribute name="movesilentlystat"> <xsl:attribute name="movesilentlystate"> <xsl:attribute name="movesilentlytotal"> <xsl:attribute name="name"> <xsl:attribute name="notes1"> <xsl:attribute name="notes2"> <xsl:attribute name="openlockmisc"> <xsl:attribute name="openlockranks"> <xsl:attribute name="openlockstat"> <xsl:attribute name="openlockstate"> <xsl:attribute name="openlocktotal"> <xsl:attribute name="otherresists"> <xsl:attribute name="performmisc1"> <xsl:attribute name="performmisc2"> <xsl:attribute name="performname1"> <xsl:attribute name="performname2"> <xsl:attribute name="performranks1"> <xsl:attribute name="performranks2"> <xsl:attribute name="performstat"> <xsl:attribute name="performstate"> <xsl:attribute name="performtotal1"> <xsl:attribute name="performtotal2"> <xsl:attribute name="professionmisc1"> <xsl:attribute name="professionmisc2"> <xsl:attribute name="professionname1"> <xsl:attribute name="professionname2"> <xsl:attribute name="professionranks1"> <xsl:attribute name="professionranks2"> <xsl:attribute name="professionstat"> <xsl:attribute name="professionstate"> <xsl:attribute name="professiontotal1"> <xsl:attribute name="professiontotal2"> <xsl:attribute name="progression"> <xsl:attribute name="race">Halfling> <xsl:attribute name="rangeattackbasemod"> <xsl:attribute name="rangeattackbonus"> <xsl:attribute name="rangeattackdexmod"> <xsl:attribute name="rations1"> <xsl:attribute name="rations10"> <xsl:attribute name="rations11"> <xsl:attribute name="rations12"> <xsl:attribute name="rations13"> <xsl:attribute name="rations14"> <xsl:attribute name="rations2"> <xsl:attribute name="rations3"> <xsl:attribute name="rations4"> <xsl:attribute name="rations5"> <xsl:attribute name="rations6"> <xsl:attribute name="rations7"> <xsl:attribute name="rations8"> <xsl:attribute name="rations9"> <xsl:attribute name="readlipsmisc"> <xsl:attribute name="readlipsranks"> <xsl:attribute name="readlipsstat"> <xsl:attribute name="readlipsstate"> <xsl:attribute name="readlipstotal"> <xsl:attribute name="reflexsave"> <xsl:attribute name="reflexsavebase"> <xsl:attribute name="reflexsavemisc"> <xsl:attribute name="reflexsavestatbonus"> <xsl:attribute name="ridemisc"> <xsl:attribute name="rideranks"> <xsl:attribute name="ridestat"> <xsl:attribute name="ridestate"> <xsl:attribute name="ridetotal"> <xsl:attribute name="run"> <xsl:attribute name="searchmisc"> <xsl:attribute name="searchranks"> <xsl:attribute name="searchstat"> <xsl:attribute name="searchstate"> <xsl:attribute name="searchtotal"> <xsl:attribute name="sensemotivemisc"> <xsl:attribute name="sensemotiveranks"> <xsl:attribute name="sensemotivestat"> <xsl:attribute name="sensemotivestate"> <xsl:attribute name="sensemotivetotal"> <xsl:attribute name="size"> <xsl:attribute name="sleightofhandmisc"> <xsl:attribute name="sleightofhandranks"> <xsl:attribute name="sleightofhandstat"> <xsl:attribute name="sleightofhandstate"> <xsl:attribute name="sleightofhandtotal"> <xsl:attribute name="speaklanguage1misc"> <xsl:attribute name="speaklanguage1ranks"> <xsl:attribute name="speaklanguage1stat"> <xsl:attribute name="speaklanguage1state"> <xsl:attribute name="speaklanguage1text"> <xsl:attribute name="speaklanguage1total"> <xsl:attribute name="speaklanguage2misc"> <xsl:attribute name="speaklanguage2ranks"> <xsl:attribute name="speaklanguage2stat"> <xsl:attribute name="speaklanguage2state"> <xsl:attribute name="speaklanguage2text"> <xsl:attribute name="speaklanguage2total"> <xsl:attribute name="speaklanguage3misc"> <xsl:attribute name="speaklanguage3ranks"> <xsl:attribute name="speaklanguage3stat"> <xsl:attribute name="speaklanguage3state"> <xsl:attribute name="speaklanguage3text"> <xsl:attribute name="speaklanguage3total"> <xsl:attribute name="speaklanguage4misc"> <xsl:attribute name="speaklanguage4ranks"> <xsl:attribute name="speaklanguage4stat"> <xsl:attribute name="speaklanguage4state"> <xsl:attribute name="speaklanguage4text"> <xsl:attribute name="speaklanguage4total"> <xsl:attribute name="speaklanguage5misc"> <xsl:attribute name="speaklanguage5ranks"> <xsl:attribute name="speaklanguage5stat"> <xsl:attribute name="speaklanguage5state"> <xsl:attribute name="speaklanguage5text"> <xsl:attribute name="speaklanguage5total"> <xsl:attribute name="speaklanguageranks"> <xsl:attribute name="speaklanguagestate"> <xsl:attribute name="speaklanguagetotal"> <xsl:attribute name="specialabilities"> <xsl:attribute name="speed"> <node name="spell"> <holder name="" /> </node> <xsl:attribute name="spellcraftmisc"> <xsl:attribute name="spellcraftranks"> <xsl:attribute name="spellcraftstat"> <xsl:attribute name="spellcraftstate"> <xsl:attribute name="spellcrafttotal"> <xsl:attribute name="spelldclevel0"> <xsl:attribute name="spelldclevel1"> <xsl:attribute name="spelldclevel2"> <xsl:attribute name="spelldclevel3"> <xsl:attribute name="spelldclevel4"> <xsl:attribute name="spelldclevel5"> <xsl:attribute name="spelldclevel6"> <xsl:attribute name="spelldclevel7"> <xsl:attribute name="spelldclevel8"> <xsl:attribute name="spelldclevel9"> <xsl:attribute name="spellmisclabel"> <xsl:attribute name="spellmisclevel0"> <xsl:attribute name="spellmisclevel1"> <xsl:attribute name="spellmisclevel2"> <xsl:attribute name="spellmisclevel3"> <xsl:attribute name="spellmisclevel4"> <xsl:attribute name="spellmisclevel5"> <xsl:attribute name="spellmisclevel6"> <xsl:attribute name="spellmisclevel7"> <xsl:attribute name="spellmisclevel8"> <xsl:attribute name="spellmisclevel9"> <xsl:attribute name="spellsperdaylevel0"> <xsl:attribute name="spellsperdaylevel1"> <xsl:attribute name="spellsperdaylevel2"> <xsl:attribute name="spellsperdaylevel3"> <xsl:attribute name="spellsperdaylevel4"> <xsl:attribute name="spellsperdaylevel5"> <xsl:attribute name="spellsperdaylevel6"> <xsl:attribute name="spellsperdaylevel7"> <xsl:attribute name="spellsperdaylevel8"> <xsl:attribute name="spellsperdaylevel9"> <xsl:attribute name="spotmisc"> <xsl:attribute name="spotranks"> <xsl:attribute name="spotstat"> <xsl:attribute name="spotstate"> <xsl:attribute name="spottotal"> <xsl:attribute name="strength"> <xsl:attribute name="strengthbonus"> <xsl:attribute name="strengthdamage"> <xsl:attribute name="strengthtotal"> <xsl:attribute name="subdual"> <xsl:attribute name="surehandedmisc"> <xsl:attribute name="surehandedranks"> <xsl:attribute name="surehandedstat"> <xsl:attribute name="surehandedstate"> <xsl:attribute name="surehandedtotal"> <xsl:attribute name="survivalmisc"> <xsl:attribute name="survivalranks"> <xsl:attribute name="survivalstat"> <xsl:attribute name="survivalstate"> <xsl:attribute name="survivaltotal"> <xsl:attribute name="swimmisc"> <xsl:attribute name="swimranks"> <xsl:attribute name="swimstat"> <xsl:attribute name="swimstate"> <xsl:attribute name="swimtotal"> <xsl:attribute name="treasure1label"> <xsl:attribute name="treasure1text"> <xsl:attribute name="treasure2label"> <xsl:attribute name="treasure2text"> <xsl:attribute name="treasure3label"> <xsl:attribute name="treasure3text"> <xsl:attribute name="treasure4label"> <xsl:attribute name="treasure4text"> <xsl:attribute name="treasuremisc"> <xsl:attribute name="tumblemisc"> <xsl:attribute name="tumbleranks"> <xsl:attribute name="tumblestat"> <xsl:attribute name="tumblestate"> <xsl:attribute name="tumbletotal"> <xsl:attribute name="usemagicdevicemisc"> <xsl:attribute name="usemagicdeviceranks"> <xsl:attribute name="usemagicdevicestat"> <xsl:attribute name="usemagicdevicestate"> <xsl:attribute name="usemagicdevicetotal"> <xsl:attribute name="useropemisc"> <xsl:attribute name="useroperanks"> <xsl:attribute name="useropestat"> <xsl:attribute name="useropestate"> <xsl:attribute name="useropetotal"> <xsl:attribute name="weapon1"> <xsl:attribute name="weapon1attackbonus"> <xsl:attribute name="weapon1attackbonus2"> <xsl:attribute name="weapon1attackbonus3"> <xsl:attribute name="weapon1attackbonus4"> <xsl:attribute name="weapon1critical"> <xsl:attribute name="weapon1damage"> <xsl:attribute name="weapon2">dagger> <xsl:attribute name="weapon2attackbonus"> <xsl:attribute name="weapon2attackbonus2"> <xsl:attribute name="weapon2attackbonus3"> <xsl:attribute name="weapon2attackbonus4"> <xsl:attribute name="weapon2critical"> <xsl:attribute name="weapon2damage"> <xsl:attribute name="weapon3"> <xsl:attribute name="weapon3attackbonus"> <xsl:attribute name="weapon3attackbonus2"> <xsl:attribute name="weapon3attackbonus3"> <xsl:attribute name="weapon3attackbonus4"> <xsl:attribute name="weapon3critical"> <xsl:attribute name="weapon3damage"> <xsl:attribute name="weapon4"> <xsl:attribute name="weapon4attackbonus"> <xsl:attribute name="weapon4attackbonus2"> <xsl:attribute name="weapon4attackbonus3"> <xsl:attribute name="weapon4attackbonus4"> <xsl:attribute name="weapon4critical"> <xsl:attribute name="weapon4damage"> <xsl:attribute name="weapon5"> <xsl:attribute name="weapon5attackbonus"> <xsl:attribute name="weapon5attackbonus2"> <xsl:attribute name="weapon5attackbonus3"> <xsl:attribute name="weapon5attackbonus4"> <xsl:attribute name="weapon5critical"> <xsl:attribute name="weapon5damage"> <xsl:attribute name="weight"> <xsl:attribute name="willsave"> <xsl:attribute name="willsavebase"> <xsl:attribute name="willsavemisc"> <xsl:attribute name="willsavestatbonus"> <xsl:attribute name="wisdom"> <xsl:attribute name="wisdombonus"> <xsl:attribute name="wisdomdamage"> <xsl:attribute name="wisdomtotal"> <xsl:attribute name="wounds"> For each, I could add select="@nameindatabase?Then after all the variables are made, then I could put them into the corresponding nodes?for example: <stringvalue name="wounds">{$wounds}</stringvalue> Am I on the right track here? This would make things soooooo much easier! :)Sandeman
  20. I am wondering if you fine folks could point me in the right direction here...I am trying to make a converter between 2 applications, one is a database that creates an output to use for a roleplaying game. The other is a GUI tabletop interface with a back end of C++ and XML.The database program has the capability to export the information to html via xsl stylesheets, or an xml file.The tabletop GUI stores the character information in a central XML file that is "checked" against other xml files for validation. (Kind of like a schema I guess..)Problem is, the two apps have different namespace tags for the elements. Now, on to my question.here is an example code snippet from the database app: <xsl:template match="character"> <font face="Courier" style="font-size:11pt"> <b> <xsl:value-of select="name"/> <xsl:choose> <xsl:when test="gender != ''"> <xsl:text>, </xsl:text> <xsl:value-of select="gender"/> <xsl:text> </xsl:text> <xsl:value-of select="race"/> <xsl:text> </xsl:text> <xsl:value-of select="classes/string"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="class"/> </xsl:otherwise> </xsl:choose> <xsl:if test="number(number) > 1"> <xsl:text> </xsl:text>( <xsl:value-of select="./number"/>) </xsl:if> <xsl:text>:</xsl:text> </b> <xsl:text> </xsl:text> <xsl:if test="challenge-rating != 0"> CR <xsl:value-of select="challenge-rating"/>; </xsl:if> as you can see, what this is doing is pulling the information from an access database and creating an HTML file with the values of the information.Now, for the GUI program, the code looks like so: <node name="charsheet"> <node name="Roscoe"> <holder name="Brad" /> <intvalue name="ac">0</intvalue> <intvalue name="acarmorbonus">2</intvalue> <intvalue name="acbasehelper">0</intvalue> <intvalue name="acdexbonus">0</intvalue> <intvalue name="acmiscbonus">0</intvalue> <stringvalue name="acmisctitle"></stringvalue> ... </node> Now, after looking at the XSL tutorials and scratching my head, I know that I could take the information from the original database and output it to the format that the GUI program takes. Problem that I am running into is: <node name="charsheet"> <node> <xsl:attribute name="name"> <xsl:value-of select="name"/> </xsl:attribute> ... This is not seeming to work for me. What I need to do is have this: <node name=""> with the value between the "" populated with the <xsl:value-of select="name"/> So, it would pull the information out of the access database and place it inbetween the "".All of the attributes for each character is not repeated, but the elements are. There are three elements: <stringvalue><intvalue><textvalue> and all are attributed with name="nameofattribute"Is there any way to do this? Or am I dreaming?Thank you for your help,Sandeman
×
×
  • Create New...