Jump to content

sancho

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by sancho

  1. Hi guys,I'm new to XML programming, and I was wondering what the quickest way to make the following program would be:If I had a XML file that had around 20 items:
    <newsML>     <item>          <text>Good morning</text>          <id>42567</id>     </item>     <item>          <text>Good evening</text>          <id>52567</id>     </item>...</newsML>

    and I wanted to split each <item> into individual XML files, what would be the best way to approach this? Thanks a lot!

  2. Hi everyone, I've got a little problem and hope one off you can help me out :-)Since two weeks i"ve been working with XML so i'm quite new to all off this! Today I started playing with XLink but I can't get it to work :-( Here's my xml:

    <?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="ketting.xsl"?><data cat="root" xmlns:xlink="http://www.w3.org/1999/xlink"><ketting id="06" cat="ketting" >  <foto xlink:type="simple" xlink:href="http://www.w3schools.com">Visit  W3Schools</foto>  <maat_ketting>45-47 cm</maat_ketting>  <kleur>Licht blauw met donker blauw</kleur></ketting><ketting id="06" cat="ketting">..... a.s.o .....

    and here's a part of my xslt:

               <xsl:for-each select="data/ketting">  <p>    <xsl:value-of select="foto" /><br />    <b>Maat ketting: </b>        <xsl:value-of select="maat_ketting" /><br />    <b>Kleur: </b>        <xsl:value-of select="kleur" /><br />  </p>    </xsl:for-each>

    I'm probebly making some very simple mistake but I can't find it :-( Any help would be helpful, thanks in advance

×
×
  • Create New...