As i as said in the intial post: the first xsl transforms the <body.head>
and the second xsl is for transforming the <body.content>. A xml doc using
the NITF DTD has a structure like:
<nitf>
<head>
<!--
Metadata about the document as a whole
goes here.
-->
</head>
<body>
<body.head>
<!--
This section holds core news components,
such as headline and byline, that are commonly
displayed before the text of an article.
-->
</body.head>
<body.content>
<!--
This section holds the article,
generally consisting of paragraphs of text,
but perhaps with embedded tables, lists,
photos, and other items. These can also be
referenced by specifying a location on the
Internet or another computer.
-->
</body.content>
<body.end>
<!--
This section holds core news components
that are commonly displayed at the end of
an article.
-->
</body.end>
</body>
</nitf>
I am using the following to acheive the single transform:
Dim doc As New XmlDocument
doc.LoadXml(xmlText)
Dim xslDoc As New XslTransform
xslDoc.Load(xslpath)
Dim sw As New StringWriter
xslDoc.Transform(doc, Nothing, sw, Nothing)
PageContent.Text = sw.ToString
sw.Close()
How can i do a second transform?
"Dimitre Novatchev" <dn********@yahoo.com> wrote in message
news:be************@ID-152440.news.dfncis.de...
As you're not providing a source xml document, nor you're explaining what
you wish to achieve, the probability that someone can help you is quite
low.
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:us**************@TK2MSFTNGP10.phx.gbl... I tried that it didnt work
"Dimitre Novatchev" <dn********@yahoo.com> wrote in message
news:be***********@ID-152440.news.dfncis.de... A pure XSLT solution is to use xsl:import for the second xsl file.
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:O7**************@TK2MSFTNGP12.phx.gbl...
> I am using the NITF DTD for my xml files and i need to use 2 xsl
files to do
> the transform: one for the <body.head> and the second for the
> <body.content>. I've got this so far for transforming using 1 xsl
file: >
> Dim doc As New XmlDocument
> doc.LoadXml(xmlText)
> Dim xslDoc As New XslTransform
> xslDoc.Load(xslpath)
> Dim sw As New StringWriter
> xslDoc.Transform(doc, Nothing, sw, Nothing)
> PageContent.Text = sw.ToString
> sw.Close()
>
> Can i just pass the stringwriter to a new xml document and then do a
> transform like i did previously but using the second xsl file?
>
> Dim x2 As New XmlDocument
> x2.LoadXml(sw.ToString)
>
>