Thorsten Scherler wrote:
El lun, 04-09-2006 a las 10:48 +0200, Josias Thöny escribió:
On Mon, 2006-09-04 at 10:15 +0200, Thorsten Scherler wrote:
svn log -v
https://svn.apache.org/repos/asf/lenya/sandbox/ac-restricted-1.4-src
Or, to see all the changes in the ac branch since its creation:
svn diff -r 432497:HEAD
http://svn.apache.org/repos/asf/lenya/sandbox/ac-restricted-1.4-src


I merged the ac with trunk now, you can see all files changed/added in http://svn.apache.org/viewvc?view=rev&rev=439983

for those of you with larger publications to migrate, here's a stylesheet and shell snippet to ease the job (tested on linux with Xalan installed, any other xslt processor should work just as well):

cd /YOUR/PATH/TO/YOURPUB
for i in `find -name usecase-policies.xml -o -name *acml` ; do \
   echo -n "Converting $i..." && \
   Xalan /YOUR/PATH/TO/ac-add-method.xsl $i > $i.new && \
   mv $i.new $i && \
   echo "successful." || echo "failed." ; \
done

the stylesheet template matches only roles that do not yet contain a "method" attribute, so it's safe to run multiple times in case something goes wrong.


--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736
<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet 
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:uc="http://apache.org/cocoon/lenya/ac/1.0";
>

<xsl:output indent="yes"/>

<xsl:template match="uc:role[not(@method)]">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    <xsl:attribute name="method">grant</xsl:attribute>
  </xsl:copy>
</xsl:template>

<xsl:template match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>

</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to