Re: [xml] libxslt question


I have a large xml document that I want to break down and transform into many smaller files. For each occurrence of "/foo", I want to create a new file that is built using an xsl transformation based on the foo-Node.

However, xsltApplyStylesheet gets the entire document and stylesheet passed in, and writing match="/" in the stylesheet produces transformations for all the nodes, not the specific one that I want, of course. How can I trick it into transforming just one specific node?

I've only started using libxslt yesterday, so if that's a really stupid question, I wouldn't know it :-)

        It's a XSLT question, not a libxslt question. Take a look at
<xsl:document> element at XSLT specs.



Lucas Brasilino
brasilino recife pe gov br
Emprel -        Empresa Municipal de Informatica (pt_BR)
                Municipal Computing Enterprise (en_US)
Recife - Pernambuco - Brasil
Fone: +55-81-34167078

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]