Click here to Skip to main content
15,913,027 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: I want to get some example of ASP using XML Pin
Paul Conrad20-Jul-06 17:00
professionalPaul Conrad20-Jul-06 17:00 
Questionhow to get value from XML Pin
sharma sanjeev22-May-06 0:58
sharma sanjeev22-May-06 0:58 
AnswerRe: how to get value from XML Pin
led mike22-May-06 12:14
led mike22-May-06 12:14 
Questionabout xml efficiency Pin
HeartFriend22-May-06 0:25
HeartFriend22-May-06 0:25 
QuestionOPEN XML Pin
NICE TO MEET19-May-06 3:14
NICE TO MEET19-May-06 3:14 
QuestionHow to use insert , update , del operations on XML file used as database Pin
ArjunMK18-May-06 5:09
ArjunMK18-May-06 5:09 
AnswerRe: How to use insert , update , del operations on XML file used as database Pin
George L. Jackson18-May-06 16:00
George L. Jackson18-May-06 16:00 
QuestionXSL Transformation--ignore previous post Pin
subbakka18-May-06 3:10
subbakka18-May-06 3:10 
I am new to XSL and I need help.

I have the following xml:

<Documents>
<Document>
<DocId>1</DocId>
<Status>1</Status>
<Page>1</Page>
</Document>
<Document>
<DocId>1</DocId>
<Status>1</Status>
<Page>2</Page>
</Document>
<Document>
<DocId>1</DocId>
<Status>2</Status>
<Page>1</Page>
</Document>
<Document>
<DocId>2</DocId>
<Status>1</Status>
<Page>1</Page>
</Document>
<Document>
<DocId>2</DocId>
<Status>2</Status>
<Page>1</Page>
</Document>
<Document>
<DocId>2</DocId>
<Status>3</Status>
<Page>1</Page>
</Document>
<Document>
<DocId>3</DocId>
<Status>1</Status>
<Page>1</Page>
</Document>
<Document>
<DocId>3</DocId>
<Status>1</Status>
<Page>2</Page>
</Document>
<Document>
<DocId>3</DocId>
<Status>1</Status>
<Page>3</Page>
</Document>
</Documents>

I have to sort the documents with DocId and Status. I would like to transform this xml to:

<Documents>
<Document>
<DocId>1</DocId>
<Pages>
<Page>
<Status>1</Status>
<Page>1</Page>
</Page>
<Page>
<Status>1</Status>
<Page>2</Page>
</Page>
</Pages>
</Document>
<Document>
<DocId>1</DocId>
<Pages>
<Page>
<Status>2</Status>
<Page>1</Page>
</Page>
</Pages>
</Document>
<Document>
<DocId>2</DocId>
<Pages>
<Page>
<Status>1</Status>
<Page>1</Page>
</Page>
</Pages>
</Document>
<Document>
<DocId>2</DocId>
<Pages>
<Page>
<Status>2</Status>
<Page>1</Page>
</Page>
</Pages>
</Document>
<Document>
<DocId>2</DocId>
<Pages>
<Page>
<Status>3</Status>
<Page>1</Page>
</Page>
</Pages>
</Document>
<Document>
<DocId>3</DocId>
<Pages>
<Page>
<Status>1</Status>
<Page>1</Page>
</Page>
<Page>
<Status>1</Status>
<Page>2</Page>
</Page>
<Page>
<Status>1</Status>
<Page>3</Page>
</Page>
</Pages>
</Document>
</Documents>

Please help!!!

Subbakka
QuestionXSL Transformation Pin
subbakka18-May-06 3:10
subbakka18-May-06 3:10 
AnswerRe: XSL Transformation Pin
Colin Angus Mackay18-May-06 4:34
Colin Angus Mackay18-May-06 4:34 
QuestionXML to XSLT Transformation Pin
nitskale17-May-06 22:25
nitskale17-May-06 22:25 
QuestionHyperlink in XML Pin
JoJuPi0117-May-06 11:03
JoJuPi0117-May-06 11:03 
AnswerRe: Hyperlink in XML Pin
ThatsAlok31-May-06 0:20
ThatsAlok31-May-06 0:20 
AnswerRe: Hyperlink in XML Pin
George L. Jackson17-May-06 10:38
George L. Jackson17-May-06 10:38 
QuestionCan I use IXMLDOMDocumentPtr object in VC++6 Pin
Cyber Friend17-May-06 2:02
Cyber Friend17-May-06 2:02 
AnswerRe: Can I use IXMLDOMDocumentPtr object in VC++6 Pin
George L. Jackson17-May-06 8:43
George L. Jackson17-May-06 8:43 
QuestionExport xml to excel using servlet Pin
vidya dumbel16-May-06 18:40
vidya dumbel16-May-06 18:40 
QuestionXML and sorting Pin
donkaiser16-May-06 8:39
donkaiser16-May-06 8:39 
AnswerRe: XML and sorting Pin
donkaiser16-May-06 8:42
donkaiser16-May-06 8:42 
AnswerRe: XML and sorting Pin
George L. Jackson16-May-06 17:30
George L. Jackson16-May-06 17:30 
GeneralRe: XML and sorting Pin
donkaiser17-May-06 3:41
donkaiser17-May-06 3:41 
AnswerRe: XML and sorting Pin
George L. Jackson17-May-06 4:34
George L. Jackson17-May-06 4:34 
GeneralRe: XML and sorting Pin
donkaiser18-May-06 3:20
donkaiser18-May-06 3:20 
GeneralRe: XML and sorting Pin
George L. Jackson18-May-06 11:59
George L. Jackson18-May-06 11:59 
AnswerRe: XML and sorting Pin
led mike16-May-06 8:57
led mike16-May-06 8:57 

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.