Jump to content

scopley

Members
  • Content Count

    28
  • Joined

  • Last visited

Community Reputation

0 Neutral

About scopley

  • Rank
    Newbie
  1. Does anyone know of a way to extract graphic entity paths from XML files using XSLT or any other type of language? Here is a portion of the XML I want to extract the !ENTITY PATH information from: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mpc SYSTEM "C:xmlmpcxmlmpc.dtd" [ <!ENTITY mh65d2210032a31 SYSTEM "G:MH65DPublication IllustrationsMPCm2214501.cgm" NDATA cgm> ]> <mpc model="65" mpcid="m2214501" type="gen"> <reas>Administrative/Operational use</reas> <office>the appropriate asset product line</office> <idinfo&
  2. YOU ARE WITHOUT A DOUBT THE BOMB!! Thank you so much!! I took out the line and it worked great. And YES I am a very basic beginner when it comes to AJAX. Thanks so much and have a great day!!!
  3. Thanks so much for your response. I have looked until my brain is tired and I can't seem to make this work.My HTML to execute this file is <input type="text" id="perfTxt" name="perfTxt" onkeyup="ajax_showOptions(this, 'tempVar', event);" /> Here is my entire file. Sorry for it being so lengthy. Hope this makes sense.:var ajaxBox_offsetX = 0;var ajaxBox_offsetY = 0;//path to external filevar ajax_list_externalFile = 'gethint.php';//number of letters entered before a lookup is performedvar minimumLettersBeforeLookup = 1;var ajax_list_objects = new Array();var ajax_list_cachedLists = new Ar
  4. I hope this is the right place to post this so here goes.I'm using AJAX to autopopulate a dropdown list as the user types in e-mail address. This all works great it pulls the values, creates the dropdown as the user is typing, however as soon as the user types enough letters to make the value unique the dropdown disappears.For example I have these 3 values:John.W.SmithJohn.W.KittelJohn.A.RountreeAs soon as the user gets to the A in the name the dropdown disappears.Here is my PHP code: function getEmail($conn){ $query = "select EMAIL_ADR from COMMON.EMAILS order by EMAIL_ADR"; $emailResults =
  5. When I have a figure in the middle of a chapter than needs to be set to an 11x17 pagesize and then go back to 8 1/2 x 11 pagesize it resets the page number to 1. I know that it is because my Chapter template has initial-page-number set to 1 but is there a way to work around that. Can I save the page number in a variable so that I can test for the value? Thanks for your help.Here is a snippet of the XML File:<mmchapter chapnbr="4" id="ch04" revdate="00/00/00"><mmfigure id="fig100"><mmsheet foldout="1"><mmeffect>ALL</mmeffect><mmgraphic chg="u" gnbr="c130h7930007
  6. I'm looking for a way to style a section with different page sizes throughout. Through the use of an attribute I'm able to switch between different pagemasters and get the sizing that I want however when it switches back to the 8.5x11 it resets page number back to one.I know that it is because I have my initial page number set to 1 on my chapter template so when it goes back to that page set it resets it to 1. Is there a way to make the initial page number attribute conditional or is there a better way to switch page sizes within a section?Any help would be greatly appreciated.
  7. Thanks so much for your response. I didn't think you could but thought I would give it a try. I'm try to create a different footer on the last page of a section IF the last page is odd. I've tried it with pagemasters but can only get it to work on page-postion first, it won't recognize page-position last.Oh Well back to the drawing board. Thanks again.
  8. I need to test the value of the last page number in a section. I have the fo:page-number-citation ref-id set and it is pulling the correct value, however I would like to save that value into a variable so that I can use it in xsl:if. Is there a way to save that into a variable?Any help would be greatly appreciated.
  9. I'm trying to create a footer that will only display on the last odd page of a section. I have tried different variations of the repeatable pagemasters but the best I can accomplish is a different first odd page footer. I understand that the processor formats in the first true instance of the pagemasters that is finds but how can I work around this to produce a different last odd page footer.I have even tried adding another fo:repeatable-page-master-alternatives with a maximum repeat of 1 still all I can accomplish the the first odd page footer in the section.Here is my pagemasters: <fo:pa
  10. I have created an XSL FO stylesheet that utilizes the blank page pagemaster. What I'm trying to do, with no luck is, if a chapter ends on page 3 that the page number would read Page 3/4 blank. Does XSL FO have any type of object that would produce this type of result. This is pretty common in Technical publications so I'm hoping there is something.If someone could help me that would be great.
  11. This is going to be a little long but here goes: <xsl:template match="imm:imm"> <fo:root> <fo:layout-master-set> <fo:simple-page-master master-name="coverpg" margin-top="0.75in" margin-bottom="0.50in" margin-left="0.75in" margin-right="0.75in" page-height="11in" page-width="8.5in"> <fo:region-body region-name="cvr-body" margin-top="1.0in" margin-bottom="0.75in"/> <fo:region-before region-name="header-cvr" extent="1.0in"/> <fo:region-after region-name="footer-cvr" extent="1.0in"/> </fo:simple-page-master> <fo:simple-pag
  12. I'm writing an xsl:fo stylesheet but for some reason as soon as I add an apply templates I get this error message "Expecting 'fo:page-sequence' but found 'fo:block' which is not a valid child of 'fo:root' ".Here is the code that seems to be the problem. As soon as I add the apply-templates under the fo:block I get the error <xsl:template match="imm:foreword"><fo:page-sequence master-reference="master" initial-page-number="1" format="i"><fo:flow flow-name="body"><fo:block xsl:use-attribute-sets="headfoot" text-align="center" font-size="14pt" space-after="25pt" break-before
  13. Thanks so much for your response. The calstable.xsd is a generic table schema that I want to import into several other schemas that utilize the same table structure.
  14. I have created 2 schemas. I would like to import one into the other without a namespace. I believe that i have my xsd:schema tag set correctly for the import however when I open the schema it can't find the elements that are referenced inside the imported schema.Here is the top part of the original schema: <?xml version="1.0"?><xsd:schema xmlns="http://cgweb.arsc.uscg.mil/custom/doctypes/mm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://cgweb.arsc.uscg.mil/custom/doctypes/mm" elementFormDefault="unqualified"> <xsd:import schemaLocation="calstable.xsd"/>
  15. Have you tried the <xsl:sort> and set it to sort on the lowest price node??
×
×
  • Create New...