Transformation « xslt « Java XML Q&A

Home
Java XML Q&A
1.convert
2.Development
3.document
4.dom
5.dom4j
6.dtd
7.element
8.jaxb
9.jaxp
10.jdom
11.jsoup
12.namespace
13.Node
14.parse
15.parser
16.pdf
17.sax
18.schema
19.stax
20.tag
21.transform
22.Validation
23.xalan
24.xmlbeans
25.xpath
26.xsd
27.xslt
28.xstream
Java XML Q&A » xslt » Transformation 

1. Java XSLT Transformation Failing due to xsl:include    stackoverflow.com

I have a Java maven project which includes XSLT transformations. I load the stylesheet as follows:

TransformerFactory tFactory = TransformerFactory.newInstance();

DocumentBuilderFactory dFactory = DocumentBuilderFactory
    .newInstance();

dFactory.setNamespaceAware(true);

DocumentBuilder dBuilder = dFactory.newDocumentBuilder();

ClassLoader cl = ...

2. XSL Transformation in Java with parameters    stackoverflow.com

I have a xsl file where i need to use parameters from an external source. I am using Java and my code looks something like this:

TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer xsltTransformer = ...

3. What XSLT processor should I use for Java transformation?    stackoverflow.com

What XSLT processor should I use for Java transformation? There are SAXON, Xalan and TrAX. What is the criteria for my choice? I need simple transformation without complicated logical transformations. Need ...

4. Exception during processing XSLT transformation!    stackoverflow.com

I'm using this code to generate contents file.

try {
        StreamResult result = new StreamResult();
        TransformerFactory tf ...

5. Java / XSL: Transformation result different between jre 1.5 and jre 1.6    stackoverflow.com

I have just been working on an old Java app and switched the jre from 1.5 to 1.6. The app uses xsl to transform xml to html and this had been ...

6. Improve XSLT transformation    stackoverflow.com

I have a lot of xml (JUnit test results) that i want to transform with Xslt 2.0. I am currently using the net.sf.saxon.TransformerFactoryImpl to perform the transform and the fn:collection() in my ...

7. Extremely slow XSLT transformation in Java    stackoverflow.com

I try to transform XML document using XSLT. As an input I have www.wordpress.org XHTML source code, and XSLT is dummy example retrieving site's title (actually it could do nothing - ...

8. XSLT Parameter not working    stackoverflow.com

I am using a XSLT Transformer in Java. I am sure the problem is in the way I'm typing in the XSLT syntax. Basically, I have to see if an attribute ...

9. Use Result of java XSL transformation as a Stylesheet of a subsequent transformation    stackoverflow.com

I am trying to use the result of an java xsl transform (from XMLSource1.xml and StyleSheet1.xsl) as a stylesheet for another transform (from XMLSource2) and then output the result. I read an ...

10. XML Transformation from Java Code    stackoverflow.com

I am doing transformation of an XML File using XSL through Java code. I used this tutorial for the same. Now the problem is that the output file is ...

11. Help with approach to XSLT transformation of XML received via http    coderanch.com

I need a little guidance on a Java problem I am tackling. I hope you can spare a moment for some advice. I am working with a server that outputs some complex XML over http(s). By complex I mean that a lot of the items contain attributes. I have a need to build a servlet that will be able to receive ...

12. xslt transformation    forums.oracle.com

Hi, I have some xml files which I need to transform to html with xslt. I have code that looks like the following: javax.xml.transform.TransformerFactory tFactory = TransformerFactory.newInstance(); javax.xml.transform.Transformer transformer = tFactory.newTransformer(new StreamSource(xslFilename)); java.io.ByteArrayOutputStream baos = new ByteArrayOutputStream(); transformer.transform(new StreamSource(xmlFilepath, new StreamResult(baos)); String s = baos.toString("UTF-8"); I get an exception with some xml files, I'm not sure why, but I think it's ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.