I am creating an SPS file from Altova StyleVision. I want to get the values from an XML file to set the variables' value to be displayed in my PDF report.
Set the variables' value from XML using Altova Stylevision
964 Views Asked by bachie At
1
There are 1 best solutions below
Related Questions in XML
- Impose component restriction to a series of parsys-CQ
- Wrong xml being inflated android
- Shorten the XSD
- Writing/Overwriting to specific XML file from ASP.NET code behind
- Magento custom block. Can't get block's file
- Layout not shifting up when keyboard is open
- CSV to XML XSLT: How to quote excape
- Getting deeply embedded XML element values
- Saving FileSystemInfo Array to File
- how to apply templates within xsl:for-each
- Spring - configure Jboss Intros for xml with java config?
- Problems with implementing custom actionbar android
- Can Apache Ant be told to cache its XML files?
- Is Log4j2 xml configuration case sensitive?
- How to get a specific node value in XML Pull Parser
Related Questions in PDF
- Itext get special letters from pdf
- Carrierwave file upload with different file types
- Get text from a section of a pdf page with IcePdf
- itext pdf to image convert
- PDF to Text extractor in nodejs without OS dependencies
- PDF to ByteArray Conversion
- Opening PDF file in SWT Browser - XulRunner default viewer
- Generate TCPDF output to a shared drive folder
- Combine base and ggplot graphics in R figure window in different pages
- Updating a PDF Barcode Field in iOS and Android Device
- Prevent PDFsharp from saving an image file?
- Adding attachment links between lines in itext for pdf
- Crop Pdf from each edge using itextshap
- How to create a PDF with iText+XMLWorker from servlet using custom font?
- how to create a pdf editor for grails
Related Questions in PDF-GENERATION
- Prevent PDFsharp from saving an image file?
- Bulletins and Character numbering in PDF using iTextSharp c#
- PdfBox issue while changing page
- Microsoft Word -> PDF image quality
- Using PDFTK, input pdf is not an acroform, how to make it an acroform
- SSJS or Java generate PDF
- PDF Parsing -- Extract single page
- Can Tesseract be set to OCR only (no image modification) when producing a PDF?
- wkhtmltopdf on openSuSE: cannot connect to X server
- PDF to Image using PDFBox 1.8.9 text overlapped
- Apache Batik Conversion SVG To PDF Not Formatting Text Style
- Generate PDF with base64 encode string
- Ghostscript - Wrong CMYK Color Conversion - 100% Yellow convert to 98% Yellow?
- C# converting to jpeg to pdf using iTextSharp dll results in black background color
- Export separate pdfs from SSRS generated report
Related Questions in ALTOVA
- Altova Stylevision 2011 inserting ​ zero width space blocks
- how to convert Json array to XSD
- Get node value from two dependent xml files
- Find same node value from main root in xquery
- search and get value from String
- measure execution time of XSLT 2.0 program in mapForce
- How to use XPath to select Cartesian Product set of non null sibling nodes?
- Unique Particle Attribution error
- Swap the transformation flow between two XSD schemas in MapForce
- Change Xmlspy editor background color
- Check if a parameter exists in XSLT before using it
- Set the variables' value from XML using Altova Stylevision
- XBRL Formula Feature in Altova Xmlspy
- Convert string field to decimal in Altova Mapforce
- How do I recode an XML document in XMLSpy to use entities
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In your SPS, it is possible to declare a variable which can contain the value of a selected element or attribute. Declare the variable on the relevant template, for example $Names, and then give it the path to the value like $XML/Personnel/Department/Managers/@Name
It will now contain the value of this path in your working xml file, and the same path but a different value if you use the sps with a different xml-file, or when you pass the generated xslt aother xml-file.
Working with variables is relatively easy, once you get the hang
The parameters work in a similar way, only they are static in the sps. You can give it a default value like "John" or "5", but not access xml-file data. But what you can do, is overwrite the value of the parameter when processing the xslt or sps through the command line in Altova XML or StyleVisionBatch. See this page in the manual: SPS Parameters for Sources
You can use XPath expressions here, and thus making the value of you parameter change with the value of the processed xml-file.