-
OUTPUT MULTIPLE HTML FILES WITH XSLT ?????
using the microsoft parser 3 how can i output multiple html file from an xslt
file ?
-
Re: OUTPUT MULTIPLE HTML FILES WITH XSLT ?????
You can either supply different source XML documents to the XSLT template or
you can extract different items from a single XML document by passing
different document fragments to the template or by setting parameter values
to change the way the template processes the data.
HTH,
Russell Jones
Sr. Web Development Editor,
DevX.com
"hassan" <mirzahassan@hotmail.com> wrote in message
news:3b2592b1$1@news.devx.com...
>
> using the microsoft parser 3 how can i output multiple html file from an
xslt
> file ?
-
Re: OUTPUT MULTIPLE HTML FILES WITH XSLT ?????
huh ???
i have one xml doc and one xslt doc
<names>
<name>
Bill
<lastname>
Smith
<age>3</age>
</lastname>
</name>
<name>
Joe
<lastname>
Dirt
<age>111</age>
</lastname>
</name>
</names>
when i transform im adding data to each name element and i want the text
of each name element and its children to go into a separate html file.
for instance the first name element goes into firstname.html after the transformation.
and the second name element goes into secondname.html after the transformation.
how do i do that ??
"Russell Jones" <arj1@northstate.net> wrote:
>You can either supply different source XML documents to the XSLT template
or
>you can extract different items from a single XML document by passing
>different document fragments to the template or by setting parameter values
>to change the way the template processes the data.
>
>HTH,
>Russell Jones
>Sr. Web Development Editor,
>DevX.com
>
>"hassan" <mirzahassan@hotmail.com> wrote in message
>news:3b2592b1$1@news.devx.com...
>>
>> using the microsoft parser 3 how can i output multiple html file from
an
>xslt
>> file ?
>
>
-
Re: OUTPUT MULTIPLE HTML FILES WITH XSLT ?????
You can use the msxml command-line processor to write result trees to disk.
Use an XSLT file that outputs the html you want for each node. Call the
processor once for each <name> node. Alternatively, you can write a script
or program that loops through the <name> nodes calling the
TransformNodeToObject method. Store the result in a DOMDocument object and
use the Save method to save the document to disk.
"Hassan" <mirzahassan@hotmail.com> wrote in message
news:3b2629e5$1@news.devx.com...
>
> huh ???
>
> i have one xml doc and one xslt doc
>
> <names>
>
> <name>
> Bill
> <lastname>
> Smith
> <age>3</age>
> </lastname>
> </name>
>
> <name>
> Joe
> <lastname>
> Dirt
> <age>111</age>
> </lastname>
> </name>
>
> </names>
>
> when i transform im adding data to each name element and i want the text
> of each name element and its children to go into a separate html file.
>
> for instance the first name element goes into firstname.html after the
transformation.
> and the second name element goes into secondname.html after the
transformation.
>
> how do i do that ??
> "Russell Jones" <arj1@northstate.net> wrote:
> >You can either supply different source XML documents to the XSLT template
> or
> >you can extract different items from a single XML document by passing
> >different document fragments to the template or by setting parameter
values
> >to change the way the template processes the data.
> >
> >HTH,
> >Russell Jones
> >Sr. Web Development Editor,
> >DevX.com
> >
> >"hassan" <mirzahassan@hotmail.com> wrote in message
> >news:3b2592b1$1@news.devx.com...
> >>
> >> using the microsoft parser 3 how can i output multiple html file from
> an
> >xslt
> >> file ?
> >
> >
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks