Click here to Skip to main content
14,841,092 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Question.net XMLSerializer - multiple namespace problem Pin
AndyPeacock27-Jan-10 2:49
MemberAndyPeacock27-Jan-10 2:49 
AnswerRe: .net XMLSerializer - multiple namespace problem Pin
SeMartens27-Jan-10 20:25
MemberSeMartens27-Jan-10 20:25 
GeneralRe: .net XMLSerializer - multiple namespace problem Pin
AndyPeacock27-Jan-10 21:58
MemberAndyPeacock27-Jan-10 21:58 
QuestionSOAP C# Tutorial/Example Pin
ffowler26-Jan-10 10:32
Memberffowler26-Jan-10 10:32 
AnswerRe: SOAP C# Tutorial/Example Pin
SeMartens26-Jan-10 20:43
MemberSeMartens26-Jan-10 20:43 
GeneralRe: SOAP C# Tutorial/Example Pin
ffowler27-Jan-10 2:05
Memberffowler27-Jan-10 2:05 
Questionadd element unique Id XSLT Pin
mvujica18-Jan-10 5:43
Membermvujica18-Jan-10 5:43 
AnswerRe: add element unique Id XSLT Pin
mvujica19-Jan-10 5:13
Membermvujica19-Jan-10 5:13 
I have got the answer from daniweb (thanks fpmurphy) :

1.      <?xml version="1.0"?>
  2.      <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
  3.      <xsl:output method="xml" indent="yes"/>
  4.
  5.      <xsl:template match="/">
  6.      <xsl:apply-templates/>
  7.      </xsl:template>
  8.
  9.      <xsl:template match="*">
 10.      <xsl:variable name="name" select="name()" />
 11.      <xsl:element name="{name()}">
 12.      <xsl:attribute name="id">
 13.      <xsl:value-of select="count(preceding::*[name()=$name]) + 1" />
 14.      </xsl:attribute>
 15.      <xsl:apply-templates />
 16.      </xsl:element>
 17.      </xsl:template>
 18.
 19.      </xsl:stylesheet>

QuestionXML file compression Pin
dalbhide bipin18-Jan-10 1:28
Memberdalbhide bipin18-Jan-10 1:28 
AnswerRe: XML file compression Pin
mvujica18-Jan-10 5:51
Membermvujica18-Jan-10 5:51 
GeneralRe: XML file compression Pin
dalbhide bipin18-Jan-10 18:18
Memberdalbhide bipin18-Jan-10 18:18 
QuestionI need an ebay program Pin
totolcm13-Jan-10 2:26
Membertotolcm13-Jan-10 2:26 
AnswerRe: I need an ebay program Pin
JustWorking13-Jan-10 2:43
MemberJustWorking13-Jan-10 2:43 
GeneralRe: I need an ebay program Pin
Ashfield14-Jan-10 1:26
MemberAshfield14-Jan-10 1:26 
JokeRe: I need an ebay program [modified] Pin
The Man from U.N.C.L.E.14-Jan-10 6:43
MemberThe Man from U.N.C.L.E.14-Jan-10 6:43 
QuestionUsing unparsed entities in schemas Pin
rusgregor12-Jan-10 21:46
Memberrusgregor12-Jan-10 21:46 
AnswerRe: Using unparsed entities in schemas Pin
Stuart Dootson13-Jan-10 0:26
professionalStuart Dootson13-Jan-10 0:26 
GeneralRe: Using unparsed entities in schemas Pin
rusgregor13-Jan-10 4:18
Memberrusgregor13-Jan-10 4:18 
GeneralRe: Using unparsed entities in schemas Pin
Stuart Dootson13-Jan-10 4:25
professionalStuart Dootson13-Jan-10 4:25 
GeneralRe: Using unparsed entities in schemas Pin
rusgregor14-Jan-10 3:23
Memberrusgregor14-Jan-10 3:23 
GeneralRe: Using unparsed entities in schemas Pin
Stuart Dootson14-Jan-10 4:44
professionalStuart Dootson14-Jan-10 4:44 
GeneralRe: Using unparsed entities in schemas Pin
rusgregor14-Jan-10 21:24
Memberrusgregor14-Jan-10 21:24 
GeneralRe: Using unparsed entities in schemas Pin
Stuart Dootson14-Jan-10 22:00
professionalStuart Dootson14-Jan-10 22:00 
GeneralRe: Using unparsed entities in schemas Pin
rusgregor18-Jan-10 2:09
Memberrusgregor18-Jan-10 2:09 
QuestionXQuery Pin
Lutosław9-Jan-10 23:40
MemberLutosław9-Jan-10 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.