dbertoni    2003/03/10 13:12:17

  Modified:    c/src/XalanTransformer XalanCAPI.cpp XalanCAPI.h
  Log:
  Added API to set stylesheet parameters with UTF-16 encoded strings.
  
  Revision  Changes    Path
  1.27      +14 -1     xml-xalan/c/src/XalanTransformer/XalanCAPI.cpp
  
  Index: XalanCAPI.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XalanTransformer/XalanCAPI.cpp,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- XalanCAPI.cpp     25 Nov 2002 20:01:19 -0000      1.26
  +++ XalanCAPI.cpp     10 Mar 2003 21:12:16 -0000      1.27
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 2000-2002 The Apache Software Foundation.  All rights 
  + * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights 
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -474,6 +474,19 @@
                        const char*             key,
                        const char*             expression,
                        XalanHandle             theXalanHandle)
  +{
  +     getTransformer(theXalanHandle)->setStylesheetParam(
  +             key,
  +             expression);
  +}
  +
  +
  +
  +XALAN_TRANSFORMER_EXPORT_FUNCTION(void)
  +XalanSetStylesheetParamUTF(
  +                             const XalanUTF16Char*   key,
  +                             const XalanUTF16Char*   expression,
  +                             XalanHandle                             theXalanHandle)
   {
        getTransformer(theXalanHandle)->setStylesheetParam(
                XalanDOMString(key),
  
  
  
  1.19      +20 -0     xml-xalan/c/src/XalanTransformer/XalanCAPI.h
  
  Index: XalanCAPI.h
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XalanTransformer/XalanCAPI.h,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- XalanCAPI.h       30 Aug 2002 23:58:54 -0000      1.18
  +++ XalanCAPI.h       10 Mar 2003 21:12:16 -0000      1.19
  @@ -100,6 +100,11 @@
        typedef const char*             XalanCCharPtr;
   
        /**
  +      * This is a typedef for characters encoded in UTF-16.
  +      */
  +     typedef unsigned short  XalanUTF16Char;
  +
  +     /**
         * Initialize Xerces and Xalan.
         *
         * Should be called only once per process before making
  @@ -399,6 +404,21 @@
                                const char*             key,
                                const char*             expression,
                                XalanHandle             theXalanHandle);
  +
  +     /**
  +      * Set a top-level stylesheet parameter.  This value can be evaluated via
  +      * xsl:param-variable.  The key and expression parameters must be
  +      * encoded in UTF-16.
  +      *
  +      * @param key name of the param
  +      * @param expression expression that will be evaluated
  +      * @param theXalanHandle        handle of XalanTransformer instance.
  +      */
  +     XALAN_TRANSFORMER_EXPORT_FUNCTION(void)
  +     XalanSetStylesheetParamUTF(
  +                             const XalanUTF16Char*   key,
  +                             const XalanUTF16Char*   expression,
  +                             XalanHandle                             
theXalanHandle);
   
        /**
         * Returns the last error that occurred as a 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to