Hallo Ihr,
ich bin zu doof! Ich habe eine XML Datei, welche ich gerne per xsl drucken möchte. Das funktioniert soweit auch ganz gut. Leider wird aber der Tabellenkopf nicht auf jeder Seite wiederholt.
Dies wäre der letzte Punkt um die Sache richtig rund zu machen. Beim Suchen im www bin ich auf die verschiedensten Ansätze gestoßen, aber leide bekomme ich dies nicht auf mein Problem adaptiert.
Meine XML sieht in etwa so aus:
Die XSL dazu ist im zweiten Post.
Im Ergebnis sieht es nun so aus wie ich es möchte, doch es sollte der Tabellenkopf auf jeder Seite erscheinen (siehe Anhang).
Kann mir bitte jemand eine Stups in die Richtung geben, wie ich dies hinbekommen kann. Als ich versucht habe dies mit fo:table zu machen und die Element umschlossen habe, habe ich immer den Fehler bekommen, dass ich die Elemente nicht verwenden kann.
Ich bin für jede Hilfe dankebar!!
ich bin zu doof! Ich habe eine XML Datei, welche ich gerne per xsl drucken möchte. Das funktioniert soweit auch ganz gut. Leider wird aber der Tabellenkopf nicht auf jeder Seite wiederholt.
Dies wäre der letzte Punkt um die Sache richtig rund zu machen. Beim Suchen im www bin ich auf die verschiedensten Ansätze gestoßen, aber leide bekomme ich dies nicht auf mein Problem adaptiert.
Meine XML sieht in etwa so aus:
Code:
<?xml version="1.0" encoding="windows-1252" ?> <TODOLIST FILENAME="D:\Programme\ToDoList 5.7\Resources\Introduction.tdl" PROJECTNAME="Sample Tasklist" FILEFORMAT="9" NEXTUNIQUEID="26" LASTMODIFIED="2009-07-17" FILEVERSION="92" EARLIESTDUEDATE="0.00000000" CHECKEDOUTTO="PC-THE2"> <TASK TITLE="This a Task" ID="1" ICONINDEX="-1" COMMENTS="New tasks can be created using" POS="1" LASTMOD="40011.57346065" LASTMODSTRING="17.07.2009 13:45" NUMPERSON="1" PERSON="Mary" ALLOCATEDBY="Frank" STATUS="Delayed" NUMCATEGORY="1" CATEGORY="Work" PRIORITY="5" RISK="0" PERCENTDONE="0" COST="0.00000000" CALCCOST="0.00000000" TIMEESTIMATE="0.00000000" TIMEESTUNITS="I" TIMESPENT="0.00000000" TIMESPENTUNITS="M" STARTDATE="39739.00000000" STARTDATESTRING="18.10.2008" CREATIONDATE="39739.00000000" CREATIONDATESTRING="18.10.2008" COMMENTSTYPE="PLAIN_TEXT" PRIORITYCOLOR="15732480" PRIORITYWEBCOLOR="#000FF0"/> <TASK TITLE="A Task can contain..." ID="2" ICONINDEX="-1" POS="2" LASTMOD="40011.57333333" LASTMODSTRING="17.07.2009 13:45" NUMPERSON="1" PERSON="Mary" ALLOCATEDBY="Frank" STATUS="Cancelled" NUMCATEGORY="1" CATEGORY="Work" PRIORITY="5" RISK="0" PERCENTDONE="0" COST="0.00000000" CALCCOST="0.00000000" TIMEESTIMATE="0.00000000" TIMEESTUNITS="I" TIMESPENT="0.00000000" TIMESPENTUNITS="M" STARTDATE="39739.00000000" STARTDATESTRING="18.10.2008" CREATIONDATE="39739.00000000" CREATIONDATESTRING="18.10.2008" PRIORITYCOLOR="15732480" PRIORITYWEBCOLOR="#000FF0"> <TASK TITLE="Subtasks" ID="3" ICONINDEX="-1" COMMENTS="Any task can become a subtask by dragging it " POS="1" LASTMOD="40011.57353009" LASTMODSTRING="17.07.2009 13:45" NUMPERSON="1" PERSON="Pete" ALLOCATEDBY="Frank" STATUS="Delayed" NUMCATEGORY="1" CATEGORY="Work" PRIORITY="10" RISK="0" PERCENTDONE="0" COST="0.00000000" CALCCOST="0.00000000" TIMEESTIMATE="0.00000000" TIMEESTUNITS="I" TIMESPENT="0.00000000" TIMESPENTUNITS="M" STARTDATE="39739.00000000" STARTDATESTRING="18.10.2008" CREATIONDATE="39739.00000000" CREATIONDATESTRING="18.10.2008" COMMENTSTYPE="PLAIN_TEXT" PRIORITYCOLOR="255" PRIORITYWEBCOLOR="#FF0000"/> <TASK TITLE="Which in turn can contain other ..." ID="4" ICONINDEX="-1" POS="2" LASTMOD="40011.57329861" LASTMODSTRING="17.07.2009 13:45" NUMPERSON="1" PERSON="Pete" ALLOCATEDBY="Frank" STATUS="Approved" NUMCATEGORY="1" CATEGORY="Work" PRIORITY="10" RISK="0" PERCENTDONE="0" COST="0.00000000" CALCCOST="0.00000000" TIMEESTIMATE="0.00000000" TIMEESTUNITS="I" TIMESPENT="0.00000000" TIMESPENTUNITS="M" STARTDATE="39739.00000000" STARTDATESTRING="18.10.2008" CREATIONDATE="39739.00000000" CREATIONDATESTRING="18.10.2008" PRIORITYCOLOR="255" PRIORITYWEBCOLOR="#FF0000"> <TASK TITLE="Subtasks" ID="5" ICONINDEX="-1" COMMENTS="And this is the means by which complex " POS="1" LASTMOD="40011.57357639" LASTMODSTRING="17.07.2009 13:45" NUMPERSON="1" PERSON="Pete" ALLOCATEDBY="Frank" STATUS="Delayed" NUMCATEGORY="1" CATEGORY="Work" PRIORITY="10" RISK="0" PERCENTDONE="0" COST="0.00000000" CALCCOST="0.00000000" TIMEESTIMATE="0.00000000" TIMEESTUNITS="I" TIMESPENT="0.00000000" TIMESPENTUNITS="M" STARTDATE="39739.00000000" STARTDATESTRING="18.10.2008" CREATIONDATE="39739.00000000" CREATIONDATESTRING="18.10.2008" COMMENTSTYPE="PLAIN_TEXT" PRIORITYCOLOR="255" PRIORITYWEBCOLOR="#FF0000"/> </TASK> </TASK> <TASK TITLE="This is a completed task" ID="9" ICONINDEX="-1" COMMENTS="A task can be marked as complete in a number " POS="3" LASTMOD="40011.57364583" LASTMODSTRING="17.07.2009 13:46" NUMPERSON="1" PERSON="Pete" ALLOCATEDBY="Frank" STATUS="Delayed" NUMCATEGORY="1" CATEGORY="Work" PRIORITY="5" RISK="0" PERCENTDONE="100" CALCPERCENTDONE="100" COST="0.00000000" CALCCOST="0.00000000" DONEDATE="39739.00000000" DONEDATESTRING="18.10.2008" STARTDATE="39739.00000000" STARTDATESTRING="18.10.2008" CREATIONDATE="39739.00000000" CREATIONDATESTRING="18.10.2008" COMMENTSTYPE="PLAIN_TEXT" TEXTCOLOR="12632256" TEXTWEBCOLOR="#C0C0C0" PRIORITYCOLOR="57630" PRIORITYWEBCOLOR="#1EE100"> <TASK TITLE="Subtasks" ID="10" ICONINDEX="-1" COMMENTS="whose parent tasks are complete are displayed " POS="1" LASTMOD="40011.57371528" LASTMODSTRING="17.07.2009 13:46" NUMPERSON="1" PERSON="Pete" ALLOCATEDBY="Frank" NUMCATEGORY="1" CATEGORY="Work" PRIORITY="5" RISK="0" PERCENTDONE="0" COST="0.00000000" CALCCOST="0.00000000" STARTDATE="39739.00000000" STARTDATESTRING="18.10.2008" CREATIONDATE="39739.00000000" CREATIONDATESTRING="18.10.2008" COMMENTSTYPE="PLAIN_TEXT" PRIORITYCOLOR="15732480" PRIORITYWEBCOLOR="#000FF0"/> </TASK> <CATEGORY CATEGORY0="Home" CATEGORY1="Work" CATEGORY2="Travel" CATEGORY3="Groceries"/> <STATUS STATUS0="Cancelled" STATUS1="Awaiting Confirmation" STATUS2="Delayed" STATUS3="Approved"/> <PERSON PERSON0="Bob" PERSON1="Jane" PERSON2="Pete" PERSON3="Mary"/> <ALLOCATEDBY ALLOCATEDBY0="Frank" ALLOCATEDBY1="Margaret"/> </TODOLIST>
Im Ergebnis sieht es nun so aus wie ich es möchte, doch es sollte der Tabellenkopf auf jeder Seite erscheinen (siehe Anhang).
Kann mir bitte jemand eine Stups in die Richtung geben, wie ich dies hinbekommen kann. Als ich versucht habe dies mit fo:table zu machen und die Element umschlossen habe, habe ich immer den Fehler bekommen, dass ich die Elemente nicht verwenden kann.
Ich bin für jede Hilfe dankebar!!
Comment