Note that there are some explanatory texts on larger screens.

plurals
  1. POXSLT transform fails in .NET
    primarykey
    data
    text
    <p>I have run into a weird problem. I have a XSLT file that is applied on a source XML to produce a target XML. Here's the code that I am using </p> <pre><code> XslCompiledTransform myXslTransform; myXslTransform = new XslCompiledTransform(); string xsltPath = @"..\Support\CustomerXMlTransform.xslt"; myXslTransform.Load(xsltPath); string tempPath = "C:\Transformed.XML"; myXslTransform.Transform(xmlFilePath, tempPath); </code></pre> <p>This works perfectly fine when run through Visual Studio (running VS 2010). When I try to run the app from an installer(created from VS) and passed an XML, the transformed XML just has one tag and all the values from the source tags are spitted out like so ...</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ProjectManagement&gt; 004 Some Project Description 7230652 898808 676 2003 003 Customer Article Description &lt;/ProjectManagement&gt; </code></pre> <p>There are more values but I have deleted them here. No tags are shown for the values reported, it's like a partial output.</p> <p>Anyone knows what's going on here? Regards.</p> <p>Have checked the installation folder and found that the System.Xml and System.Xml.Linq.dll files were missing. These are the files referred in the project. Copied those two files manually to the installation folder. Still the same result without nodes!!!</p> <p>Here's the XSLT which works fine from VS 2010 but fails with the installer:</p> <pre><code>&lt;?xml version="1.0" ?&gt; &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:output method="xml" indent="yes"/&gt; &lt;xsl:template match="/"&gt; &lt;ProjectManagement&gt; &lt;xsl:apply-templates/&gt; &lt;/ProjectManagement&gt; &lt;/xsl:template&gt; &lt;xsl:template match="kalkulation"&gt; &lt;Project&gt; &lt;ProjectCategoryName&gt;WellTeam&lt;/ProjectCategoryName&gt; &lt;ProjectNumber&gt; &lt;xsl:attribute name="attributename"&gt;ProjectNumber&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="projektnummer"/&gt; &lt;/ProjectNumber&gt; &lt;ProjectName&gt; &lt;xsl:if test="string-length(projektnummer)!=0"&gt; &lt;xsl:if test ="string-length(kunden_kurzbezeichnung)!=0"&gt; &lt;xsl:if test ="string-length(kunden_artikel_bezeichnung)!=0"&gt; &lt;xsl:value-of select="concat(projektnummer,'',kunden_kurzbezeichnung,'',kunden_artikel_bezeichnung)"/&gt; &lt;/xsl:if&gt; &lt;/xsl:if&gt; &lt;/xsl:if&gt; &lt;/ProjectName&gt; &lt;TemplateName&gt; &lt;xsl:choose&gt; &lt;xsl:when test="u_firma=003 and material_gruppe = 0321"&gt;Group1&lt;/xsl:when&gt; &lt;xsl:when test="u_firma=004 and material_gruppe = 0321"&gt;Group2&lt;/xsl:when&gt; &lt;xsl:otherwise&gt;Group1&lt;/xsl:otherwise&gt; &lt;/xsl:choose&gt; &lt;/TemplateName&gt; &lt;CalculationNumber&gt; &lt;xsl:attribute name="attributename"&gt;CalculationNumber&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="kalkulationsnummer"/&gt; &lt;/CalculationNumber&gt; &lt;CalculationSubNumber&gt; &lt;xsl:attribute name="attributename"&gt;CalculationSubNumber&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="kalkulations_u_nummer"/&gt; &lt;/CalculationSubNumber&gt; &lt;Mandator&gt; &lt;xsl:attribute name="attributename"&gt;Mandant&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;676&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(mandant,0,3)"/&gt; &lt;/Mandator&gt; &lt;CompanyName&gt; &lt;xsl:attribute name="attributename"&gt;CompanyName&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;IO&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;100&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(firma,0,4)"/&gt; &lt;/CompanyName&gt; &lt;CompanySubName&gt; &lt;xsl:attribute name="attributename"&gt;CompanySubName&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;IO&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(u_firma,0,4)"/&gt; &lt;/CompanySubName&gt; &lt;ArticleIndication&gt; &lt;xsl:attribute name="attributename"&gt;ArticleIndication&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;IO&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(bezeichnung,0,40)"/&gt; &lt;/ArticleIndication&gt; &lt;PartNumber&gt; &lt;xsl:attribute name="attributename"&gt;PartNumber&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;0&lt;/xsl:attribute&gt; &lt;xsl:value-of select="teilenummer"/&gt; &lt;/PartNumber&gt; &lt;DueDate&gt; &lt;xsl:attribute name="attributename"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="faelligkeitsdatum"/&gt; &lt;/DueDate&gt; &lt;InsideSalesPerson1&gt; &lt;xsl:attribute name="attributename"&gt;InsideSalesPerson1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(sachbearbeiter1,0,20)"/&gt; &lt;/InsideSalesPerson1&gt; &lt;InsideSalesPerson2&gt; &lt;xsl:attribute name="attributename"&gt;InsideSalesPerson2&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(sachbearbeiter2,0,20)"/&gt; &lt;/InsideSalesPerson2&gt; &lt;SalesPerson&gt; &lt;xsl:attribute name="attributename"&gt;SalesPerson&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(vertreter_kunde,0,60)"/&gt; &lt;/SalesPerson&gt; &lt;Status&gt; &lt;xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyz'" /&gt; &lt;xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" /&gt; &lt;xsl:variable name="status" select="translate(status, $smallcase,$uppercase)" /&gt; &lt;xsl:choose&gt; &lt;xsl:when test="$status='NEW' or $status= 'NEU'"&gt;1&lt;/xsl:when&gt; &lt;xsl:when test="$status='READY' or $status='FERTIG'"&gt;2&lt;/xsl:when&gt; &lt;xsl:when test="$status='IN BEARBEITUNG'"&gt;3&lt;/xsl:when&gt; &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt; &lt;/xsl:choose&gt; &lt;/Status&gt; &lt;StatusText&gt; &lt;xsl:value-of select="status"/&gt; &lt;/StatusText&gt; &lt;CustomerNo&gt; &lt;xsl:value-of select="substring(kunden_nummer,0,7)"/&gt; &lt;/CustomerNo&gt; &lt;CustomerSubNo&gt; &lt;xsl:attribute name="attributename"&gt;CustomerSubNumber&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;IO&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="kunden_u_nr"/&gt; &lt;/CustomerSubNo&gt; &lt;CustomerShortDesc&gt; &lt;xsl:attribute name="attributename"&gt;CustomerDescription&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;IO&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(kunden_kurzbezeichnung,0,20)"/&gt; &lt;/CustomerShortDesc&gt; &lt;CustomerArticleDescription&gt; &lt;xsl:attribute name="attributename"&gt;CustomerArticleDescription&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;IO&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(kunden_artikel_bezeichnung,0,255)"/&gt; &lt;/CustomerArticleDescription&gt; &lt;CustomerArticleNumber&gt; &lt;xsl:attribute name="attributename"&gt;CustomerArticleNumber&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(kunden_artikel_nummer,0,30)"/&gt; &lt;/CustomerArticleNumber&gt; &lt;TaskType&gt; &lt;xsl:attribute name="attributename"&gt;TaskType&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(aufgabe_art,0,3)"/&gt; &lt;/TaskType&gt; &lt;TaskCreator&gt; &lt;xsl:attribute name="attributename"&gt;TaskCreator&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(aufgabe_ersteller,0,20)"/&gt; &lt;/TaskCreator&gt; &lt;TaskDate&gt; &lt;xsl:attribute name="attributename"&gt;TaskDate&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="aufgabe_erstellt_am"/&gt; &lt;/TaskDate&gt; &lt;TaskInfo&gt; &lt;xsl:attribute name="attributename"&gt;TaskInformation&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(aufgabe_information,0,255)"/&gt; &lt;/TaskInfo&gt; &lt;DesignerId&gt; &lt;xsl:attribute name="attributename"&gt;TaskSpecialist&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(aufgabe_sachbearbeiter,0,3)"/&gt; &lt;/DesignerId&gt; &lt;MixFactor&gt; &lt;xsl:attribute name="attributename"&gt;MixedFactor&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="format-number(mengen_faktor,'0.00')"/&gt; &lt;/MixFactor&gt; &lt;DivideNumber&gt; &lt;xsl:attribute name="attributename"&gt;DivideNumber&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(teilenummer,0,3)"/&gt; &lt;/DivideNumber&gt; &lt;ProjectDesc&gt; &lt;xsl:attribute name="attributename"&gt;ProjectDescription&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="Projektbezeichnung"/&gt; &lt;/ProjectDesc&gt; &lt;MaterialGroup&gt; &lt;xsl:attribute name="attributename"&gt;MaterialGroup&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;I&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(material_gruppe,0,3)"/&gt; &lt;/MaterialGroup&gt; &lt;MaterialDescription&gt; &lt;xsl:attribute name="attributename"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;IO&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="material_bezeichnung"/&gt; &lt;/MaterialDescription&gt; &lt;Inactively&gt; &lt;xsl:attribute name="attributename"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;IO&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;0&lt;/xsl:attribute&gt; &lt;xsl:value-of select="inaktiv"/&gt; &lt;/Inactively&gt; &lt;ShipManually&gt; &lt;xsl:attribute name="attributename"&gt;ShipManually&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;IO&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:value-of select="verlade_manuell"/&gt; &lt;/ShipManually&gt; &lt;xsl:text&gt; &lt;/xsl:text&gt; &lt;/Project&gt; &lt;Documents&gt; &lt;CadDocs&gt; &lt;DesignParams&gt; &lt;Design&gt; &lt;DesignName&gt; &lt;xsl:value-of select="substring(cad_nummer,0,9)"/&gt; &lt;/DesignName&gt; &lt;DesignCategoryName&gt;DEFAULT DESIGN CATEGORY&lt;/DesignCategoryName&gt; &lt;StandardName&gt; &lt;xsl:value-of select="substring(fefco_nr,0,15)"/&gt; &lt;/StandardName&gt; &lt;Board Code=""&gt; &lt;Sort&gt; &lt;xsl:value-of select="substring(sorte_nummer,0,15)"/&gt; &lt;/Sort&gt; &lt;Quality&gt; &lt;xsl:value-of select="boardquality"/&gt; &lt;/Quality&gt; &lt;Grammage&gt; &lt;xsl:value-of select="boardgrammage"/&gt; &lt;/Grammage&gt; &lt;/Board&gt; &lt;FluteDirection&gt; &lt;xsl:value-of select="designflutedirection"/&gt; &lt;/FluteDirection&gt; &lt;GrainDirection&gt; &lt;xsl:value-of select="designgraindirection"/&gt; &lt;/GrainDirection&gt; &lt;MatType&gt; &lt;xsl:value-of select="substring(material_typ,0,3)"/&gt; &lt;/MatType&gt; &lt;Length&gt; &lt;xsl:value-of select="laenge"/&gt; &lt;/Length&gt; &lt;Width&gt; &lt;xsl:value-of select="breite"/&gt; &lt;/Width&gt; &lt;Depth&gt; &lt;xsl:value-of select="hoehe"/&gt; &lt;/Depth&gt; &lt;/Design&gt; &lt;/DesignParams&gt; &lt;xsl:text&gt; &lt;/xsl:text&gt; &lt;/CadDocs&gt; &lt;/Documents&gt; &lt;DesignOutput&gt; &lt;StandardUsed&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="substring(fefco_nr,0,15)"/&gt; &lt;/StandardUsed&gt; &lt;BlankArea&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="0"/&gt; &lt;/BlankArea&gt; &lt;AreaRatio&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="0"/&gt; &lt;/AreaRatio&gt; &lt;BlankLength&gt; &lt;xsl:attribute name="attributename"&gt;BlankLength&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="laengen_zuschnitt"/&gt; &lt;/BlankLength&gt; &lt;BlankWidth&gt; &lt;xsl:attribute name="attributename"&gt;BlankWidth&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="breiten_zuschnitt"/&gt; &lt;/BlankWidth&gt; &lt;ManualCutLength&gt; &lt;xsl:attribute name="attributename"&gt;ManualCutLength&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="breiten_laengen_zuschnitt_manuell"/&gt; &lt;/ManualCutLength&gt; &lt;FoldedBoxLength&gt; &lt;xsl:attribute name="attributename"&gt;LengthOfFoldedBox&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="verlade_laenge"/&gt; &lt;/FoldedBoxLength&gt; &lt;FoldedBoxWidth&gt; &lt;xsl:attribute name="attributename"&gt;WidthOfFoldedBox&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="verlade_breite"/&gt; &lt;/FoldedBoxWidth&gt; &lt;FoldedBoxHeight&gt; &lt;xsl:attribute name="attributename"&gt;HeightOfFoldedBox&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="verlade_hoehe"/&gt; &lt;/FoldedBoxHeight&gt; &lt;CreaseLength1&gt; &lt;xsl:attribute name="attributename"&gt;CreaseLength1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="bz_riller"/&gt; &lt;/CreaseLength1&gt; &lt;CreaseWidth1&gt; &lt;xsl:attribute name="attributename"&gt;CreaseWidth1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="lz_riller"/&gt; &lt;/CreaseWidth1&gt; &lt;CreaseLength2&gt; &lt;xsl:attribute name="attributename"&gt;CreaseLength2&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="bz_schlitzer"/&gt; &lt;/CreaseLength2&gt; &lt;CreaseWidth2&gt; &lt;xsl:attribute name="attributename"&gt;CreaseWidth2&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;1&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="lz_schlitzer"/&gt; &lt;/CreaseWidth2&gt; &lt;ARDFile&gt; &lt;xsl:value-of select="0"/&gt; &lt;/ARDFile&gt; &lt;PDFFile&gt; &lt;xsl:value-of select="0"/&gt; &lt;/PDFFile&gt; &lt;/DesignOutput&gt; &lt;LayoutParams&gt; &lt;LayoutCategoryID&gt;DEFAULT MANUFACTURING CATEGORY&lt;/LayoutCategoryID&gt; &lt;MfgFile Name=""&gt; &lt;TrimTop&gt; &lt;xsl:value-of select="trimtop"/&gt; &lt;/TrimTop&gt; &lt;TrimRight&gt; &lt;xsl:value-of select="trimright"/&gt; &lt;/TrimRight&gt; &lt;TrimLeft&gt; &lt;xsl:value-of select="trimleft"/&gt; &lt;/TrimLeft&gt; &lt;TrimBottom&gt; &lt;xsl:value-of select="trimbottom"/&gt; &lt;/TrimBottom&gt; &lt;SheetSizeX&gt; &lt;xsl:value-of select="breiten_zuschnitt_vernutzt"/&gt; &lt;/SheetSizeX&gt; &lt;SheetSizeY&gt; &lt;xsl:value-of select="laengen_zuschnitt_vernutzt"/&gt; &lt;/SheetSizeY&gt; &lt;GutterX&gt; &lt;xsl:value-of select="gutterx"/&gt; &lt;/GutterX&gt; &lt;GutterY&gt; &lt;xsl:value-of select="guttery"/&gt; &lt;/GutterY&gt; &lt;GrainDir&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="layoutgraindirection"/&gt; &lt;/GrainDir&gt; &lt;WastePercentage&gt; &lt;xsl:value-of select="abfall_netto_bogen"/&gt; &lt;/WastePercentage&gt; &lt;/MfgFile&gt; &lt;/LayoutParams&gt; &lt;LayoutOutput&gt; &lt;TrimTop&gt; &lt;xsl:attribute name="attributeid"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="trimtop"/&gt; &lt;/TrimTop&gt; &lt;TrimRight&gt; &lt;xsl:attribute name="attributeid"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="trimright"/&gt; &lt;/TrimRight&gt; &lt;TrimLeft&gt; &lt;xsl:attribute name="attributeid"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="trimleft"/&gt; &lt;/TrimLeft&gt; &lt;TrimBottom&gt; &lt;xsl:attribute name="attributeid"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="trimbottom"/&gt; &lt;/TrimBottom&gt; &lt;SheetSizeX&gt; &lt;xsl:attribute name="attributeid"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="breiten_zuschnitt_vernutzt"/&gt; &lt;/SheetSizeX&gt; &lt;SheetSizeY&gt; &lt;xsl:attribute name="attributeid"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="laengen_zuschnitt_vernutzt"/&gt; &lt;/SheetSizeY&gt; &lt;EdgePunchingLength&gt; &lt;xsl:attribute name="attributeid"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="laengen_zuschnitt_stanzrand"/&gt; &lt;/EdgePunchingLength&gt; &lt;EdgePunchingWidth&gt; &lt;xsl:attribute name="attributeid"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="type"&gt;O&lt;/xsl:attribute&gt; &lt;xsl:attribute name="defaultvalue"&gt;&lt;/xsl:attribute&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="breiten_zuschnitt_stanzrand"/&gt; &lt;/EdgePunchingWidth&gt; &lt;NumUps&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="vernutzung"/&gt; &lt;/NumUps&gt; &lt;CutSizeX&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="nutzen_breite"/&gt; &lt;/CutSizeX&gt; &lt;CutSizeY&gt; &lt;xsl:attribute name="expressionname"&gt;&lt;/xsl:attribute&gt; &lt;xsl:value-of select="nutzen_laenge"/&gt; &lt;/CutSizeY&gt; &lt;MFGFile&gt; &lt;xsl:value-of select="0"/&gt; &lt;/MFGFile&gt; &lt;PDFFile&gt; &lt;xsl:value-of select="0"/&gt; &lt;/PDFFile&gt; &lt;CF2File&gt; &lt;xsl:value-of select="0"/&gt; &lt;/CF2File&gt; &lt;/LayoutOutput&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>here's the XML tested with VS 2010 (which works fine) and the installer:</p> <pre><code>&lt;box_xml&gt; &lt;bsi_cad2box&gt; &lt;projektnummer&gt;004&lt;/projektnummer&gt; &lt;Projektbezeichnung&gt;Project Description&lt;/Projektbezeichnung&gt; &lt;kalkulationsnummer&gt;7230652&lt;/kalkulationsnummer&gt; &lt;kalkulations_u_nummer&gt;898808&lt;/kalkulations_u_nummer&gt; &lt;mandant&gt;676&lt;/mandant&gt; &lt;firma&gt;2003&lt;/firma&gt; &lt;u_firma&gt;003&lt;/u_firma&gt; &lt;bezeichnung&gt;Customer Article Description&lt;/bezeichnung&gt; &lt;teilenummer&gt;1&lt;/teilenummer&gt; &lt;faelligkeitsdatum&gt;2012-01-12T00:00:00&lt;/faelligkeitsdatum&gt; &lt;sachbearbeiter1&gt;3009&lt;/sachbearbeiter1&gt; &lt;sachbearbeiter2&gt;30&lt;/sachbearbeiter2&gt; &lt;vertreter_kunde&gt;201&lt;/vertreter_kunde&gt; &lt;status&gt;neu&lt;/status&gt; &lt;kunden_nummer&gt;716523&lt;/kunden_nummer&gt; &lt;kunden_u_nr&gt;1001&lt;/kunden_u_nr&gt; &lt;kunden_kal_key&gt;132132&lt;/kunden_kal_key&gt; &lt;kunden_kurzbezeichnung&gt;Maier&lt;/kunden_kurzbezeichnung&gt; &lt;kunden_artikel_bezeichnung&gt;Customer Article Description&lt;/kunden_artikel_bezeichnung&gt; &lt;kunden_artikel_nummer&gt;TestKdNr 12345&lt;/kunden_artikel_nummer&gt; &lt;aufgabe_art&gt;100&lt;/aufgabe_art&gt; &lt;aufgabe_erstellt_am&gt;2012-01-12T00:00:00&lt;/aufgabe_erstellt_am&gt; &lt;aufgabe_ersteller&gt;100&lt;/aufgabe_ersteller&gt; &lt;aufgabe_information&gt;Aufgabeninfo&lt;/aufgabe_information&gt; &lt;aufgabe_sachbearbeiter&gt;100&lt;/aufgabe_sachbearbeiter&gt; &lt;cad_nummer&gt;00725&lt;/cad_nummer&gt; &lt;fefco_nr&gt;2201&lt;/fefco_nr&gt; &lt;mengen_faktor&gt;0.00&lt;/mengen_faktor&gt; &lt;vernutzung&gt;0&lt;/vernutzung&gt; &lt;breite&gt;205.00&lt;/breite&gt; &lt;laenge&gt;360.00&lt;/laenge&gt; &lt;hoehe&gt;75.00&lt;/hoehe&gt; &lt;breiten_zuschnitt&gt;3602&lt;/breiten_zuschnitt&gt; &lt;laengen_zuschnitt&gt;2052&lt;/laengen_zuschnitt&gt; &lt;breiten_laengen_zuschnitt_manuell&gt;0&lt;/breiten_laengen_zuschnitt_manuell&gt; &lt;nutzen_breite&gt;0.00&lt;/nutzen_breite&gt; &lt;nutzen_laenge&gt;0.00&lt;/nutzen_laenge&gt; &lt;breiten_zuschnitt_vernutzt&gt;4&lt;/breiten_zuschnitt_vernutzt&gt; &lt;laengen_zuschnitt_vernutzt&gt;1100&lt;/laengen_zuschnitt_vernutzt&gt; &lt;breiten_zuschnitt_stanzrand&gt;0&lt;/breiten_zuschnitt_stanzrand&gt; &lt;laengen_zuschnitt_stanzrand&gt;4&lt;/laengen_zuschnitt_stanzrand&gt; &lt;sorte_nummer&gt;M-SBS-300&lt;/sorte_nummer&gt; &lt;inaktiv&gt;0&lt;/inaktiv&gt; &lt;material_typ&gt;&lt;/material_typ&gt; &lt;material_nummer&gt;&lt;/material_nummer&gt; &lt;material_gruppe&gt;0321&lt;/material_gruppe&gt; &lt;material_bezeichnung&gt;&lt;/material_bezeichnung&gt; &lt;verlade_breite&gt;0.00&lt;/verlade_breite&gt; &lt;verlade_laenge&gt;0.00&lt;/verlade_laenge&gt; &lt;verlade_hoehe&gt;0.00&lt;/verlade_hoehe&gt; &lt;verlade_manuell&gt;0&lt;/verlade_manuell&gt; &lt;bz_riller&gt;&lt;/bz_riller&gt; &lt;lz_riller&gt;&lt;/lz_riller&gt; &lt;bz_schlitzer&gt;&lt;/bz_schlitzer&gt; &lt;lz_schlitzer&gt;&lt;/lz_schlitzer&gt; &lt;abfall_netto_bogen&gt;19.50&lt;/abfall_netto_bogen&gt; &lt;kaschierbogen_sorte_nummer&gt; &lt;/kaschierbogen_sorte_nummer&gt; &lt;kaschierbogen_breiten_zuschnitt&gt;0.00&lt;/kaschierbogen_breiten_zuschnitt&gt; &lt;kaschierbogen_laengen_zuschnitt&gt;0.00&lt;/kaschierbogen_laengen_zuschnitt&gt; &lt;kaschierbogen_breite_zuschnitt_rand&gt;0.00&lt;/kaschierbogen_breite_zuschnitt_rand&gt; &lt;kaschierbogen_laengen_zuschnitt_rand&gt;0.00&lt;/kaschierbogen_laengen_zuschnitt_rand&gt; &lt;legevariante_nummer&gt; &lt;/legevariante_nummer&gt; &lt;druck_ff_nummer&gt; &lt;/druck_ff_nummer&gt; &lt;druck_ff_art&gt; &lt;/druck_ff_art&gt; &lt;druck_ff_womit&gt; &lt;/druck_ff_womit&gt; &lt;ver_ff_nummer&gt; &lt;/ver_ff_nummer&gt; &lt;ver_ff_art&gt; &lt;/ver_ff_art&gt; &lt;ver_ff_womit&gt; &lt;/ver_ff_womit&gt; &lt;stanzen_ff_nummer&gt; &lt;/stanzen_ff_nummer&gt; &lt;stanzen_ff_art&gt; &lt;/stanzen_ff_art&gt; &lt;stanzen_ff_womit&gt; &lt;/stanzen_ff_womit&gt; &lt;kasch_ff_nummer&gt; &lt;/kasch_ff_nummer&gt; &lt;kasch_ff_art&gt; &lt;/kasch_ff_art&gt; &lt;kasch_ff_womit&gt; &lt;/kasch_ff_womit&gt; &lt;bsi_cad2box_ff&gt; &lt;typ&gt;gsm&lt;/typ&gt; &lt;text&gt;14.16&lt;/text&gt; &lt;n_wert&gt;14.16&lt;/n_wert&gt; &lt;/bsi_cad2box_ff&gt; &lt;bsi_cad2box_ff&gt; &lt;typ&gt;dru&lt;/typ&gt; &lt;text&gt; &lt;/text&gt; &lt;n_wert&gt;0.00&lt;/n_wert&gt; &lt;/bsi_cad2box_ff&gt; &lt;bsi_cad2box_ff&gt; &lt;typ&gt;kas&lt;/typ&gt; &lt;text&gt; &lt;/text&gt; &lt;n_wert&gt;0.00&lt;/n_wert&gt; &lt;/bsi_cad2box_ff&gt; &lt;DOKUMENT&gt; &lt;typ&gt; &lt;/typ&gt; &lt;name&gt; &lt;/name&gt; &lt;version&gt; &lt;/version&gt; &lt;erstellungs_datum&gt; &lt;/erstellungs_datum&gt; &lt;url&gt; &lt;/url&gt; &lt;/DOKUMENT&gt; &lt;/bsi_cad2box&gt; &lt;/box_xml&gt; </code></pre> <p>Found the bug, yeah!!! First of all thanks to Marc for pointing in the right direction. The problem was in the XSLT. The tag which should have the value as 'bsi_cad2box' actually has 'kalkulation'. So there you go, I was under a time crunch so could not think out of the box. Thanks again for everyone.</p> <p>Regards.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload