# HG changeset patch # User Bob Rosenberg # Date 1279798222 -3600 # Node ID a47fc547d2e32efbbb3a0aa889823bb94881537c # Parent 4811411c8b66e68008b1a33dec8b5c1d0a9df969 Simplify and add hacks for some XSLT processors: simpler xpath expressions in filtering.xsl and qt hack in mergesysdef.xsl. Move path processing XSLT templates to separate module so it can be used in both joining and merging. Add .bat files for each of the PERL and XSLT scripts so they can be more esily called from the command line (joinsysdef.bat calls joinsysdef.pl, not joinsysdef.xsl). diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/filter-module.xsl --- a/sysdeftools/filter-module.xsl Tue Jul 20 11:48:29 2010 +0100 +++ b/sysdeftools/filter-module.xsl Thu Jul 22 12:30:22 2010 +0100 @@ -46,7 +46,7 @@ - + diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/filtering.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysdeftools/filtering.bat Thu Jul 22 12:30:22 2010 +0100 @@ -0,0 +1,16 @@ +@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of the License "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem +@setlocal +@ java -jar %~dp0xalan.jar -xsl %~dpn0.xsl %* diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/joinsysdef-module.xsl --- a/sysdeftools/joinsysdef-module.xsl Tue Jul 20 11:48:29 2010 +0100 +++ b/sysdeftools/joinsysdef-module.xsl Thu Jul 22 12:30:22 2010 +0100 @@ -488,96 +488,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - / - - - - - - - - - - - - - - - - - - - - - ../ - - - - - - - - - - - / - - - - - - - - - - - - - - - - - - - - - / - - - - - - - - - - + diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/joinsysdef.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysdeftools/joinsysdef.bat Thu Jul 22 12:30:22 2010 +0100 @@ -0,0 +1,17 @@ +@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of the License "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem +@setlocal +@perl %~dpn0.pl %* + diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/mergesysdef-module.xsl --- a/sysdeftools/mergesysdef-module.xsl Tue Jul 20 11:48:29 2010 +0100 +++ b/sysdeftools/mergesysdef-module.xsl Thu Jul 22 12:30:22 2010 +0100 @@ -10,7 +10,10 @@ Nokia Corporation - initial contribution. Contributors: Description: - XSLT module for merging only two sysdef files according to the 3.0.0 rules. Old syntax not supported and must be converetd before calling. + XSLT module for merging only two sysdef files according to the 3.0.1 rules. + 2.x and older syntax not supported and must be converetd before calling. + + Requires the including XSLT to also include path-module.xsl --> http://www.symbian.org/system-definition @@ -290,7 +293,7 @@ don't copy if the before ID is found in $base --> - + @@ -381,7 +384,7 @@ - + @@ -407,7 +410,7 @@ - + @@ -417,7 +420,7 @@ - + @@ -476,7 +479,7 @@ - + @@ -492,7 +495,7 @@ - + @@ -505,7 +508,6 @@ - @@ -543,8 +545,6 @@ - - @@ -553,6 +553,7 @@ + @@ -613,7 +614,21 @@ - + + + + + + + + + + + + + + + @@ -627,28 +642,12 @@ - - - / + + + + - - - - - - - - - - - - - - - - - diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/mergesysdef.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysdeftools/mergesysdef.bat Thu Jul 22 12:30:22 2010 +0100 @@ -0,0 +1,16 @@ +@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of the License "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem +@setlocal +@ java -jar %~dp0xalan.jar -xsl %~dpn0.xsl %* -XSLTC diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/mergesysdef.xsl --- a/sysdeftools/mergesysdef.xsl Tue Jul 20 11:48:29 2010 +0100 +++ b/sysdeftools/mergesysdef.xsl Thu Jul 22 12:30:22 2010 +0100 @@ -119,5 +119,14 @@ + + + + + + + + + diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/path-module.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysdeftools/path-module.xsl Thu Jul 22 12:30:22 2010 +0100 @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + + + + + + + + + + + + + + + + + + + + + ../ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + + + + + + + diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/readme.txt --- a/sysdeftools/readme.txt Tue Jul 20 11:48:29 2010 +0100 +++ b/sysdeftools/readme.txt Thu Jul 22 12:30:22 2010 +0100 @@ -1,28 +1,36 @@ Filtering tools: filtering.xsl - Filter a sysdef in the 2.0 or 3.0 syntax +filtering.bat - Call filtering.xsl using xalan-j filter-module.xsl - XSLT module which contains the logic to process the filter attribute in the system definition Joining tools: joinsysdef.pl - Create a stand-alone sysdef from a linked set of fragments. Supports confguring via an .hrh file. +joinsysdef.bat - Call joinsysdef.pl joinsysdef.xsl - Create a stand-alone sysdef from a linked set of fragments joinandparesysdef.xsl - Create a stand-alone sysdef from a linked set of fragments, paring down to just a set of items of the desired rank. joinsysdef-module.xsl - XSLT module which contains the logic to join a system definition file Merging tools: mergesysdef.xsl - Merge two 3.x syntax stand-alone system definitions +mergesysdef.bat - Call mergesysdef.xsl using xalan-j mergesysdef-module.xsl - XSLT module for merging only two sysdef files according to the 3.0.0 rules Other tools: -sysdefdowngrade.xsl - Convert a 3.0.0 sysdef to 2.0.1 sytnax +sysdefdowngrade.xsl - Convert a 3.0.x sysdef to 2.0.1 sytnax +sysdefdowngrade.bat - Call sysdefdowngrade.xsl using xalan-j rootsysdef.pl - Generate a root system definition from a template root sysdef and a set of wildcard paths to look for pkgdef files +rootsysdef.bat - Call rootsysdef.pl XSLT Processing: xalan.jar xercesImpl.jar xml-apis.jar +serializer.jar Validation tools: validate/checklinks.pl - check all referenced files in units exist at the specified locations -validate/modelcheck.xsl - Validate a sysdef file, reporting any errors in HTML format. Can validate a sysdef in a web browser by using +validate/checklinks.bat - call checklinks.pl +validate/modelcheck.xsl - Validate a sysdef file, reporting any errors in HTM format. Can validate a sysdef in a web browser by using validate/validate-sysdef.xsl - Validate a sysdef file, reporting any errors as plain text +validate/validate-sysdef.bat - Call validate-sysdef.xsl using xalan-j validate/test-model.xsl - common module which actually does the validation diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/rootsysdef.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysdeftools/rootsysdef.bat Thu Jul 22 12:30:22 2010 +0100 @@ -0,0 +1,17 @@ +@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of the License "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem +@setlocal +@perl %~dpn0.pl %* + diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/sysdefdowngrade.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysdeftools/sysdefdowngrade.bat Thu Jul 22 12:30:22 2010 +0100 @@ -0,0 +1,16 @@ +@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of the License "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem +@setlocal +@ java -jar %~dp0xalan.jar -xsl %~dpn0.xsl %* -XSLTC diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/validate/checklinks.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysdeftools/validate/checklinks.bat Thu Jul 22 12:30:22 2010 +0100 @@ -0,0 +1,17 @@ +@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of the License "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem +@setlocal +@perl %~dpn0.pl %* + diff -r 4811411c8b66 -r a47fc547d2e3 sysdeftools/validate/validate-sysdef.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysdeftools/validate/validate-sysdef.bat Thu Jul 22 12:30:22 2010 +0100 @@ -0,0 +1,16 @@ +@rem Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +@rem All rights reserved. +@rem This component and the accompanying materials are made available +@rem under the terms of the License "Eclipse Public License v1.0" +@rem which accompanies this distribution, and is available +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". +@rem +@rem Initial Contributors: +@rem Nokia Corporation - initial contribution. +@rem +@rem Contributors: +@rem +@rem Description: +@rem +@setlocal +@ java -jar %~dp0..\xalan.jar -xsl %~dpn0.xsl %*