Click here to Skip to main content
15,924,196 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Pausing SVG Pin
Paul Watson5-Sep-02 3:56
sitebuilderPaul Watson5-Sep-02 3:56 
QuestionXML editor? Pin
Rickard Andersson203-Sep-02 9:07
Rickard Andersson203-Sep-02 9:07 
AnswerRe: XML editor? Pin
Philip Fitzsimons23-Sep-02 7:19
Philip Fitzsimons23-Sep-02 7:19 
GeneralRe: XML editor? Pin
Rickard Andersson2023-Sep-02 22:20
Rickard Andersson2023-Sep-02 22:20 
QuestionCDATA in element attributes? Pin
Zyxil3-Sep-02 8:43
Zyxil3-Sep-02 8:43 
AnswerRe: CDATA in element attributes? Pin
Paul Watson3-Sep-02 23:43
sitebuilderPaul Watson3-Sep-02 23:43 
GeneralGroup problem Pin
Ahmet Orkun GEDiK26-Aug-02 11:32
sussAhmet Orkun GEDiK26-Aug-02 11:32 
GeneralRe: Group problem Pin
Ranjan Banerji28-Aug-02 7:18
Ranjan Banerji28-Aug-02 7:18 
One way is to create an XSL and then transform the XML. This can be done by creating two DOM Documents. Load the XML in one and the XSL in one. call TranformNode for the XML by passing the XSL. The XSL could look something like:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes">

<xsl:template match="/">
<xsl:apply-templates select="/A">


<xsl:template match="A">
<xsl:for-each select="B">
<xsl:value-of select="/A/@id">
<xsl:text>
<xsl:value-of select="/A/@id">
<xsl:apply-templates select="C">



<xsl:template match="C">
<xsl:text>
<xsl:value-of select="@id">
<xsl:apply-templates select="D">


<xsl:template match="D">
<xsl:text>
<xsl:value-of select="E">





I like this approoach because if you wish to chnage the format of your data later on all you have to do is change the XSL and your code remains the same.
GeneralGroup problem Pin
Ahmet Orkun GEDiK26-Aug-02 11:29
sussAhmet Orkun GEDiK26-Aug-02 11:29 
Generalsorting Pin
Sonu Kapoor26-Aug-02 9:36
Sonu Kapoor26-Aug-02 9:36 
GeneralRe: sorting Pin
Ranjan Banerji26-Aug-02 9:52
Ranjan Banerji26-Aug-02 9:52 
GeneralRe: sorting Pin
Sonu Kapoor26-Aug-02 20:17
Sonu Kapoor26-Aug-02 20:17 
GeneralRe: sorting Pin
12-Sep-02 4:23
suss12-Sep-02 4:23 
GeneralXSLT grouping Pin
Catimus22-Aug-02 10:50
Catimus22-Aug-02 10:50 
GeneralRe: XSLT grouping Pin
Zdenek Navratil22-Aug-02 21:40
Zdenek Navratil22-Aug-02 21:40 
GeneralProblem with 'contains' function Pin
SigEpUCI19-Aug-02 14:39
SigEpUCI19-Aug-02 14:39 
GeneralRe: Problem with 'contains' function Pin
Michael A. Barnhart20-Aug-02 1:53
Michael A. Barnhart20-Aug-02 1:53 
QuestionAttribute value choking parser? Pin
SigEpUCI16-Aug-02 17:07
SigEpUCI16-Aug-02 17:07 
AnswerRe: Attribute value choking parser? Pin
Michael A. Barnhart17-Aug-02 9:48
Michael A. Barnhart17-Aug-02 9:48 
AnswerRe: Attribute value choking parser? Pin
Zdenek Navratil21-Aug-02 3:04
Zdenek Navratil21-Aug-02 3:04 
GeneralXPath query Pin
Jan R Hansen15-Aug-02 5:00
Jan R Hansen15-Aug-02 5:00 
GeneralRe: XPath query Pin
Christopher Lord15-Aug-02 7:27
Christopher Lord15-Aug-02 7:27 
GeneralRe: XPath query Pin
Jan R Hansen15-Aug-02 22:13
Jan R Hansen15-Aug-02 22:13 
GeneralRe: XPath query Pin
Philip Fitzsimons16-Aug-02 0:28
Philip Fitzsimons16-Aug-02 0:28 
QuestionWhat wrong with this clause?? Pin
Tida13-Aug-02 9:51
Tida13-Aug-02 9:51 

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.