Jump to content

mbr

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mbr

  • Rank
    Newbie
  1. <xsl:value-of select="/DATAPACKET/ROWDATA/ROW[@gruppe='lecker*&*fein']/@NAME"/> Mit der eckigen Klammer kannst du "Predicates" setzten , d.h. deine Auswahl einschränken. Du kannst z.B. bestimmte Attributwerte nennen oder einen Wert abfragen, also so etwas wie "immer wenn der Preis höher als 10 Euro ist" etc.Mit dem /@name wählst du dann lediglich noch die gewünschte Ausgabe....Die If Abfrage ist somit hinfällig, da du schon bei"value-of" entsprechend selektierst...
  2. Hey, maybe u guys can help me.I have a XSD wich contains different elements.These Elements contain some simpleTypes and some complexTypes. When i select one Element, i would like to display all complexTypes it contains... but how to do this?there is no attribute wich tells me if a item is complex or simple.... so how can i do it? example: <xs:element name="Order"> <xs:element name="Date" type="OurDate"> <xs:element name="Nr" type="OurNummbers"> <xs:element name="Body" type="OrderBody"> </xs:element> ____________________________________________________
  3. Hi there, in my other thread i was told to use xsl:params to solve my problem.See: http://w3schools.invisionzone.com/index.php?showtopic=46945. I am a starter and i have never worked with them before. I tried to teach my selve how to usethem, but it seems like i cant get it going. My goal was to use the param as a variable that passes a set ofstrings to the next template. With that, i wantet to check if a certain element was allready processed or not(by checking its "name"). See my other post.... But it seems like that my current problem is pretty basic.I declared my param global(?) at the top
  4. ...ok i will try this out. Untill now i just worked with xsl:variables (wich act like constants), so it was not possible to string "names" together.Maybe it can be done with parameters.... i will see!
  5. Hi there,i am a xslt starter and i need some help - thanx in advance!My goal is to create a html-documentation of an XSD file. I just want to list allcomplexTypes/simpleTypes and their attributes in tables and add some comments.I just looped through them with a simple for-each statement and used the different templates.Everything works fine - bingo! What i am now trying to do is the same thing, but in an "recursive-ish" way.I do the following now: I pick my first complexType, process/display it and theni call the complexType template again for every complexType i find within it.And so on... Wo
×
×
  • Create New...