Subject: Re: [xsl] XSLT Concepts From: Michael Kay <mike@xxxxxxxxxxxx> Date: Fri, 01 Oct 2010 14:37:23 +0100 |
Welcome.Hello Friends, I am an Amateur Developer in Xsl transformations. I work on Research Article XML conversions. I just want to be clear on some Concepts of XSLT.
1)When we apply a Template<xsl:apply-templates/> the whole text within the tags in input file data gets applied and new element are processed as we declare them.
So when we use<xsl:value of select=""/> ,additional data is processed.This results into extra junk data as i have noticed.How to avoid such circumstances.?
2)Also Suppose we tag the input data with new elements,the tags appear in the sequence of initial text in the data.How can we sequentially keep changing order of the data as we wish and apply templates accordingly. Example - we need to tag article title which appears at end in the input file but we wish to have it tagged first in the output file.ie change order of tags according to our requirements.
Yes. If you want different processing on different occasions, use modes. The usual example is a table of contents:
3)Can we template match a tag more than one time and process nodes within it sequentially?
<xsl:apply-templates select="*" mode="table-of-contents"/> <xsl:apply-templates select="*" mode="article-body"/>
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT Concepts, Martin Honnen | Thread | Re: [xsl] XSLT Concepts, chirag matkar |
Re: [xsl] XSLT Concepts, Martin Honnen | Date | Re: [xsl] XSLT Concepts, chirag matkar |
Month |