Thursday, 15 July 2010

xml - Applying a XSLT on multiple files as if they were merged -


I have a question about XSLT's capabilities. I have a bunch of different XML files that all share a shared XSLT conversion that converts them to HTML. However, simply implementing changes on individual XML files does not get all the information about them. Some files have other shared XML files that help define them. Therefore, I need to be able to make changes on all these files as if they were actually a file without merging files. For example, we have a change file named "transform.xslt". We will call a shared XML file "common.xml" and a regular XML file "a.xml". We have another XML file "B.XML" and another file is "Other.exml". To effectively convert AxMM, generalize. XML and AMML Should be defined in the conversion. XSLTT performed on them as if they were single files. Similarly, BXML, normal. XML, B.XML and others. To change XML completely, all need to be changed as if they were merged single file, I'm really thinking whether I can create XSLT files that import the XSLT changes and specify which file Need to work together so, I can create an a.xslt, b.xslt, etc., which transforms XSLT does the changes, but on different groups of files and each XSLT (a.html, b.html, etc.).

If this will help someone, then the specific use case is to create a document page for WSDL. Some additional information, such as common data structures and types, is a common one. Are declared in Xsd. In addition, some WSDL references other XSDs which are not related to every WSDL reference.

If this question is not clear then I also really apologize. For some reason, I'm actually making a hard time what I want to do.

For the case:

  • Input (defined in a.xslt)

    • a.xml < Li> common.xml
    • Changes (imported into a.xslt)

      • transform.xslt Case 2:
      • For output
        • a.html

          Ul>

        • Input (defined in BXLT)
          • bxml
          • general.exml
          • Other. XML
          • Changes (imported into b.xslt)
            • transform.xslt
            • Output
              • b.html

                If someone is still confused, please tell me I will try to explain it more clearly.

                Thank you!

                There is an XPath function named doc Code> xsl: variable allows you to keep the content of a file, then you can work on variables, i.e. it's and lt; Xsl: apply-templates & gt; Pass on , or apply an XPath expression for it If you need more solid support, then post a sample of your actual data and I will install XSLT for you. Are you using XSLT / XPath version 1, 2, or 3?

No comments:

Post a Comment